refactor(map,hero): 调整怪物出生参数与UI显示逻辑
1. 调整怪物出生点X坐标和掉落高度默认值 2. 修复英雄血条UI层级问题,强制置于顶层 3. 优化血条提示框的Y轴显示位置 4. 简化怪物死亡飞出动画,移除多余的角度重置 5. 重构怪物下落逻辑,拆分完成回调,处理无下落距离的情况
This commit is contained in:
@@ -52,11 +52,11 @@ export class MissionMonCompComp extends CCComp {
|
||||
// ======================== 常量 ========================
|
||||
|
||||
/** 怪物出生点起点 X */
|
||||
private static readonly MON_SPAWN_START_X = 280;
|
||||
private static readonly MON_SPAWN_START_X = 460;
|
||||
/** 怪物出生的 X 间距 */
|
||||
private static readonly MON_SPAWN_GAP_X = 50;
|
||||
/** 怪物出生掉落高度 */
|
||||
private static readonly MON_DROP_HEIGHT = 280;
|
||||
private static readonly MON_DROP_HEIGHT = 0;
|
||||
/** 6路高度偏移(在三路的y轴范围内,实现 6路 进军) */
|
||||
private static readonly LANE_Y_OFFSETS = [100, 60, 20, -20, -60, -100];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user