refactor(game): 统一游戏地平线高度并优化技能目标选择
将GameSet中的GAME_LINE从0调整为120,并在英雄和怪物位置配置中使用该常量 简化SACastSystem中的目标选择逻辑,移除未使用的治疗和BUFF目标选择方法 使用BoxSet.GAME_LINE作为技能目标的默认Y坐标
This commit is contained in:
@@ -14,19 +14,11 @@ export enum BoxSet {
|
||||
DEFAULT = 1,
|
||||
MONSTER = 2,
|
||||
HERO = 4,
|
||||
// MONSTER_SKILL = 8,
|
||||
// HERO_SKILL = 16,
|
||||
// PLAYER=32,
|
||||
// BOSS=64,
|
||||
|
||||
// BOX_WIDTH = 64,
|
||||
// BOX_HEIGHT = 64,
|
||||
//地图边界
|
||||
LETF_END = -420,
|
||||
RIGHT_END = 420,
|
||||
|
||||
//游戏地平线
|
||||
GAME_LINE = 0,
|
||||
GAME_LINE = 120,
|
||||
//攻击距离
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { v3 } from "cc"
|
||||
import { FacSet } from "./GameSet"
|
||||
import { BoxSet, FacSet } from "./GameSet"
|
||||
import { smc } from "../SingletonModuleComp"
|
||||
import { BuffConf } from "./SkillSet"
|
||||
|
||||
@@ -46,23 +46,23 @@ export const getMonList = ()=>{
|
||||
}
|
||||
|
||||
export const HeroPos={
|
||||
0:{pos:v3(-240,120,0)},
|
||||
1:{pos:v3(0,120,0)},
|
||||
2:{pos:v3(0,120,0)},
|
||||
0:{pos:v3(-240,BoxSet.GAME_LINE,0)},
|
||||
1:{pos:v3(0,BoxSet.GAME_LINE,0)},
|
||||
2:{pos:v3(0,BoxSet.GAME_LINE,0)},
|
||||
}
|
||||
export const MonSet = {
|
||||
0:{pos:v3(240,130,0)},
|
||||
1:{pos:v3(240,110,0)},
|
||||
2:{pos:v3(300,130,0)},
|
||||
3:{pos:v3(300,110,0)},
|
||||
4:{pos:v3(320,130,0)},
|
||||
5:{pos:v3(320,110,0)},
|
||||
6:{pos:v3(360,130,0)},
|
||||
7:{pos:v3(360,110,0)},
|
||||
8:{pos:v3(400,130,0)},
|
||||
9:{pos:v3(400,110,0)},
|
||||
10:{pos:v3(440,130,0)},
|
||||
11:{pos:v3(440,110,0)},
|
||||
0:{pos:v3(240,BoxSet.GAME_LINE+10,0)},
|
||||
1:{pos:v3(240,BoxSet.GAME_LINE-10,0)},
|
||||
2:{pos:v3(300,BoxSet.GAME_LINE+10,0)},
|
||||
3:{pos:v3(300,BoxSet.GAME_LINE-10,0)},
|
||||
4:{pos:v3(320,BoxSet.GAME_LINE+10,0)},
|
||||
5:{pos:v3(320,BoxSet.GAME_LINE-10,0)},
|
||||
6:{pos:v3(360,BoxSet.GAME_LINE+10,0)},
|
||||
7:{pos:v3(360,BoxSet.GAME_LINE-10,0)},
|
||||
8:{pos:v3(400,BoxSet.GAME_LINE+10,0)},
|
||||
9:{pos:v3(400,BoxSet.GAME_LINE-10,0)},
|
||||
10:{pos:v3(440,BoxSet.GAME_LINE+10,0)},
|
||||
11:{pos:v3(440,BoxSet.GAME_LINE-10,0)},
|
||||
}
|
||||
|
||||
export enum MonStart {
|
||||
|
||||
Reference in New Issue
Block a user