refactor(hero): 优化英雄缩放逻辑和位置配置

重构英雄缩放逻辑,使用统一的缩放计算方法替代硬编码值
调整英雄和怪物的初始位置坐标
在Hero和Monster类中添加size变量控制缩放
This commit is contained in:
2025-11-04 10:38:20 +08:00
parent ed1b4f46a4
commit 5c9f299fd7
6 changed files with 55 additions and 38 deletions

View File

@@ -46,19 +46,19 @@ export const getMonList = ()=>{
}
export const HeroPos={
0:{pos:v3(-240,100,0)},
1:{pos:v3(0,100,0)},
2:{pos:v3(0,100,0)},
0:{pos:v3(-240,105,0)},
1:{pos:v3(0,105,0)},
2:{pos:v3(0,105,0)},
}
export const MonSet = {
0:{pos:v3(240,110,0)},
1:{pos:v3(240,90,0)},
2:{pos:v3(320,110,0)},
3:{pos:v3(320,90,0)},
4:{pos:v3(360,110,0)},
5:{pos:v3(360,90,0)},
6:{pos:v3(400,110,0)},
7:{pos:v3(400,90,0)},
0:{pos:v3(240,115,0)},
1:{pos:v3(240,95,0)},
2:{pos:v3(320,115,0)},
3:{pos:v3(320,95,0)},
4:{pos:v3(360,115,0)},
5:{pos:v3(360,95,0)},
6:{pos:v3(400,115,0)},
7:{pos:v3(400,95,0)},
}
export enum HeroConf{