refactor(hero&mission): 调整英雄站位逻辑与配置

1.  修改游戏地平线Y轴偏移至100,适配新的UI布局
2.  为英雄属性组件添加分路与排位字段并初始化
3.  重构英雄站位分配逻辑,使用新增字段记录英雄位置
4.  更新地图与UI预制体的布局偏移适配新的游戏地平线
This commit is contained in:
walkpan
2026-05-13 00:15:38 +08:00
parent 518f15b1c3
commit 4305a4461e
7 changed files with 2204 additions and 2030 deletions

View File

@@ -255,6 +255,10 @@ export class MoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
const col = Math.floor(slotIndex / 3);
const laneIdx = lanePriority[slotIndex % 3];
// 动态更新英雄位置数据,为战斗面板排序提供依据
model.lane = laneIdx;
model.lane_index = col;
const targetY = BoxSet.GAME_LINE + laneOffsets[laneIdx];
const targetX = this.heroFrontAnchorX - col * this.heroAllySpacingX;