From 05dc771d4e004d3cd11debe56fec9a1a94784783 Mon Sep 17 00:00:00 2001 From: panFD Date: Mon, 20 Jul 2026 22:52:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E6=88=98=E6=96=97=E7=AB=99=E4=BD=8D=E4=B8=8EUI=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修正游戏地平线GAME_LINE数值,调整英雄和怪物的出生站位 2. 修改shadow预制体的缩放、尺寸和填充模式参数 3. 调整地图预制体的元素位置和尺寸 4. 优化技能动画的缩放参数和编辑器冗余配置 --- assets/resources/game/gui/shadow.prefab | 14 +++--- assets/resources/game/map/map_rpg.prefab | 16 ++++--- assets/resources/game/skill/anm/rand.anim | 48 +++++++-------------- assets/script/game/common/config/GameSet.ts | 2 +- assets/script/game/map/MissionHeroComp.ts | 12 +++--- assets/script/game/map/MissionMonComp.ts | 16 +++---- 6 files changed, 47 insertions(+), 61 deletions(-) diff --git a/assets/resources/game/gui/shadow.prefab b/assets/resources/game/gui/shadow.prefab index 05dabb31..670588c2 100644 --- a/assets/resources/game/gui/shadow.prefab +++ b/assets/resources/game/gui/shadow.prefab @@ -52,8 +52,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1, - "y": 0.3, + "x": 1.6, + "y": 0.2, "z": 1 }, "_mobility": 0, @@ -130,8 +130,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 284, - "height": 39 + "width": 200, + "height": 20 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -172,7 +172,7 @@ }, "_type": 0, "_fillType": 0, - "_sizeMode": 1, + "_sizeMode": 0, "_fillCenter": { "__type__": "cc.Vec2", "x": 0, @@ -241,8 +241,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 0.3, - "y": 0.3, + "x": 0.2, + "y": 0.2, "z": 1 }, "_mobility": 0, diff --git a/assets/resources/game/map/map_rpg.prefab b/assets/resources/game/map/map_rpg.prefab index 30c1ed7d..02dd57cd 100644 --- a/assets/resources/game/map/map_rpg.prefab +++ b/assets/resources/game/map/map_rpg.prefab @@ -2480,7 +2480,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 180, + "y": 183.281, "z": 0 }, "_lrot": { @@ -2521,7 +2521,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 960, - "height": 200 + "height": 270 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2596,7 +2596,7 @@ "_left": 0, "_right": 0, "_top": 0, - "_bottom": 230, + "_bottom": 233.281, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -11766,6 +11766,8 @@ "__id__": 0 }, "fileId": "8aR4+WXvRJrJfyR9Sp7SqP", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { @@ -11908,7 +11910,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 180, + "y": 183.281, "z": 0 }, "_lrot": { @@ -11949,7 +11951,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 960, - "height": 200 + "height": 270 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -12024,7 +12026,7 @@ "_left": 0, "_right": 0, "_top": 0, - "_bottom": 230, + "_bottom": 233.281, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, @@ -12188,6 +12190,8 @@ "__id__": 0 }, "fileId": "20WNwIV7RJjrst2VhRbe8x", + "instance": null, + "targetOverrides": null, "nestedPrefabInstanceRoots": null }, { diff --git a/assets/resources/game/skill/anm/rand.anim b/assets/resources/game/skill/anm/rand.anim index 1327db22..dc6d4e0a 100644 --- a/assets/resources/game/skill/anm/rand.anim +++ b/assets/resources/game/skill/anm/rand.anim @@ -392,43 +392,37 @@ "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0.30000001192092896, + "value": 0.20000000298023224, "rightTangent": 0, "rightTangentWeight": 1, "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0.4000000059604645, + "value": 0.25, "rightTangent": 0, "rightTangentWeight": 1, "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0.30000001192092896, + "value": 0.20000000298023224, "rightTangent": 0, "rightTangentWeight": 1, "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -452,43 +446,37 @@ "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0.30000001192092896, + "value": 0.20000000298023224, "rightTangent": 0, "rightTangentWeight": 1, "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0.4000000059604645, + "value": 0.25, "rightTangent": 0, "rightTangentWeight": 1, "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", "interpolationMode": 0, "tangentWeightMode": 0, - "value": 0.30000001192092896, + "value": 0.20000000298023224, "rightTangent": 0, "rightTangentWeight": 1, "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null } ], "preExtrapolation": 1, @@ -518,9 +506,7 @@ "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -532,9 +518,7 @@ "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null }, { "__type__": "cc.RealKeyframeValue", @@ -546,9 +530,7 @@ "leftTangent": 0, "leftTangentWeight": 1, "easingMethod": 0, - "__editorExtras__": { - "tangentMode": 0 - } + "__editorExtras__": null } ], "preExtrapolation": 1, diff --git a/assets/script/game/common/config/GameSet.ts b/assets/script/game/common/config/GameSet.ts index fd1e34a0..2f7de6cb 100644 --- a/assets/script/game/common/config/GameSet.ts +++ b/assets/script/game/common/config/GameSet.ts @@ -13,7 +13,7 @@ export enum BoxSet { LETF_END = -360, RIGHT_END = 360, //游戏地平线 - GAME_LINE = -90, + GAME_LINE = 80, } export enum FacSet { diff --git a/assets/script/game/map/MissionHeroComp.ts b/assets/script/game/map/MissionHeroComp.ts index cd6b88bc..2ecf339e 100644 --- a/assets/script/game/map/MissionHeroComp.ts +++ b/assets/script/game/map/MissionHeroComp.ts @@ -49,12 +49,12 @@ export class MissionHeroComp extends CCComp { /** 硬编码的6个英雄占位点 */ public static readonly HERO_POSITIONS: Vec3[] = [ - v3(-175, BoxSet.GAME_LINE + 100, 0), // index 0 (node_index 1): Top Front - v3(-170, BoxSet.GAME_LINE, 0), // index 1 (node_index 2): Mid Front - v3(-175, BoxSet.GAME_LINE - 100, 0), // index 2 (node_index 3): Bot Front - v3(-280, BoxSet.GAME_LINE + 100, 0), // index 3 (node_index 4): Top Back - v3(-280, BoxSet.GAME_LINE, 0), // index 4 (node_index 5): Mid Back - v3(-280, BoxSet.GAME_LINE - 100, 0), // index 5 (node_index 6): Bot Back + v3(-180, BoxSet.GAME_LINE, 0), // index 0 (node_index 1): Top Front 第二 + v3(-80, BoxSet.GAME_LINE, 0), // index 1 (node_index 2): Mid Front 第一 + v3(-280, BoxSet.GAME_LINE, 0), // index 2 (node_index 3): Bot Front 第三 + // v3(-280, BoxSet.GAME_LINE + 100, 0), // index 3 (node_index 4): Top Back + // v3(-280, BoxSet.GAME_LINE, 0), // index 4 (node_index 5): Mid Back + // v3(-280, BoxSet.GAME_LINE - 100, 0), // index 5 (node_index 6): Bot Back ]; /** 英雄出生时的掉落高度(从空中落到地面的像素差) */ diff --git a/assets/script/game/map/MissionMonComp.ts b/assets/script/game/map/MissionMonComp.ts index 48263d8b..b059773f 100644 --- a/assets/script/game/map/MissionMonComp.ts +++ b/assets/script/game/map/MissionMonComp.ts @@ -39,21 +39,21 @@ export class MissionMonCompComp extends CCComp { /** 硬编码的 12 个怪物占位点 (3行4列) */ public static readonly MON_POSITIONS: Vec3[] = [ // 第 1 列 (X=60) - v3(0, BoxSet.GAME_LINE + 100, 0), // index 0: Top + v3(0, BoxSet.GAME_LINE, 0), // index 0: Top v3(0, BoxSet.GAME_LINE, 0), // index 1: Mid - v3(0, BoxSet.GAME_LINE - 100, 0), // index 2: Bot + v3(0, BoxSet.GAME_LINE, 0), // index 2: Bot // 第 2 列 (X=140) - v3(90, BoxSet.GAME_LINE + 100, 0), // index 3: Top + v3(90, BoxSet.GAME_LINE, 0), // index 3: Top v3(90, BoxSet.GAME_LINE, 0), // index 4: Mid - v3(90, BoxSet.GAME_LINE - 100, 0), // index 5: Bot + v3(90, BoxSet.GAME_LINE, 0), // index 5: Bot // 第 3 列 (X=220) - v3(180, BoxSet.GAME_LINE + 100, 0), // index 6: Top + v3(180, BoxSet.GAME_LINE, 0), // index 6: Top v3(180, BoxSet.GAME_LINE, 0), // index 7: Mid - v3(180, BoxSet.GAME_LINE - 100, 0), // index 8: Bot + v3(180, BoxSet.GAME_LINE, 0), // index 8: Bot // 第 4 列 (X=300) - v3(270, BoxSet.GAME_LINE + 100, 0), // index 9: Top + v3(270, BoxSet.GAME_LINE, 0), // index 9: Top v3(270, BoxSet.GAME_LINE, 0), // index 10: Mid - v3(270, BoxSet.GAME_LINE - 100, 0), // index 11: Bot + v3(270, BoxSet.GAME_LINE, 0), // index 11: Bot ]; // ======================== 编辑器属性 ========================