lq_collide_config.ts 1.0 KB

123456789101112131415161718192021222324
  1. export enum LQCollideInfoList {
  2. default, role, role_bullet, enemy, enemy_bullet, prop
  3. }
  4. export class LQCollideConfig {
  5. public static switch_auto_run: boolean = true;
  6. public static switch_print_log: boolean = false;
  7. public static switch_quad_tree: boolean = true;
  8. public static max_node_len: number = 10;
  9. public static per_frame: number = 60;
  10. public static max_node_level: number = 4;
  11. public static active_area_x: number = 0;
  12. public static active_area_y: number = 0;
  13. public static active_area_width: number = 1000;
  14. public static active_area_height: number = 1000;
  15. public static collide_group_map = {
  16. "default": {id: 1, category: 1, index: 0, mask: 1},
  17. "role": {id: 2, category: 2, index: 1, mask: 56},
  18. "role_bullet": {id: 3, category: 4, index: 2, mask: 40},
  19. "enemy": {id: 4, category: 8, index: 3, mask: 6},
  20. "enemy_bullet": {id: 5, category: 16, index: 4, mask: 2},
  21. "prop": {id: 6, category: 32, index: 5, mask: 6},
  22. }
  23. }