diff --git a/assets/script/game/hero/MoveComp.ts b/assets/script/game/hero/MoveComp.ts index 8220f657..ba973e17 100644 --- a/assets/script/game/hero/MoveComp.ts +++ b/assets/script/game/hero/MoveComp.ts @@ -49,10 +49,12 @@ interface MoveFacConfig { export class MoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate { /** 近战判定射程(来自 heroSet) */ private readonly meleeAttackRange = HeroDisVal[HType.Melee]; - private readonly heroFrontAnchorX = -50; - private readonly monFrontAnchorX = 50; - /** 常规同阵营横向最小间距 */ - private readonly allySpacingX = 65; + private readonly heroFrontAnchorX = -100; + private readonly monFrontAnchorX = 0; + /** 常规同阵营横向最小间距(英雄) */ + private readonly heroAllySpacingX = 100; + /** 常规同阵营横向最小间距(怪物) */ + private readonly monAllySpacingX = 75; /** 纵向判定为同排的最大 Y 差 */ private readonly minSpacingY = 30; /** 渲染层级重排节流,避免每帧排序 */ @@ -253,7 +255,8 @@ export class MoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate const currAttrs = laneAllies[i].get(HeroAttrsComp); const isPrevBoss = prevAttrs?.is_boss; const isCurrBoss = currAttrs?.is_boss; - const spacing = (isPrevBoss || isCurrBoss) ? 100 : this.allySpacingX; + const baseSpacing = model.fac === FacSet.MON ? this.monAllySpacingX : this.heroAllySpacingX; + const spacing = (isPrevBoss || isCurrBoss) ? 100 : baseSpacing; totalSpacing += spacing; } diff --git a/assets/script/game/map/MissionHeroComp.ts b/assets/script/game/map/MissionHeroComp.ts index 75f278ea..bb495a24 100644 --- a/assets/script/game/map/MissionHeroComp.ts +++ b/assets/script/game/map/MissionHeroComp.ts @@ -55,9 +55,9 @@ export class MissionHeroCompComp extends CCComp { /** 英雄出生时的掉落高度(从空中落到地面的像素差) */ private static readonly HERO_DROP_HEIGHT = 260 /** 近战英雄起始出生 X 坐标 */ - private static readonly HERO_SPAWN_START_MELEE_X = -280 + private static readonly HERO_SPAWN_START_MELEE_X = -320 /** 远程(含中程)英雄起始出生 X 坐标 */ - private static readonly HERO_SPAWN_START_RANGED_X = -280 + private static readonly HERO_SPAWN_START_RANGED_X = -320 // ======================== 运行时属性 ========================