fix: 调整游戏战斗站位与UI显示参数

1. 修正游戏地平线GAME_LINE数值,调整英雄和怪物的出生站位
2. 修改shadow预制体的缩放、尺寸和填充模式参数
3. 调整地图预制体的元素位置和尺寸
4. 优化技能动画的缩放参数和编辑器冗余配置
This commit is contained in:
panFD
2026-07-20 22:52:43 +08:00
parent 551715ef44
commit 05dc771d4e
6 changed files with 47 additions and 61 deletions

View File

@@ -52,8 +52,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 1, "x": 1.6,
"y": 0.3, "y": 0.2,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -130,8 +130,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 284, "width": 200,
"height": 39 "height": 20
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -172,7 +172,7 @@
}, },
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
@@ -241,8 +241,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.3, "x": 0.2,
"y": 0.3, "y": 0.2,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,

View File

@@ -2480,7 +2480,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 180, "y": 183.281,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -2521,7 +2521,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 960, "width": 960,
"height": 200 "height": 270
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -2596,7 +2596,7 @@
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
"_bottom": 230, "_bottom": 233.281,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
@@ -11766,6 +11766,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "8aR4+WXvRJrJfyR9Sp7SqP", "fileId": "8aR4+WXvRJrJfyR9Sp7SqP",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {
@@ -11908,7 +11910,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 180, "y": 183.281,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -11949,7 +11951,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 960, "width": 960,
"height": 200 "height": 270
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -12024,7 +12026,7 @@
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
"_bottom": 230, "_bottom": 233.281,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
@@ -12188,6 +12190,8 @@
"__id__": 0 "__id__": 0
}, },
"fileId": "20WNwIV7RJjrst2VhRbe8x", "fileId": "20WNwIV7RJjrst2VhRbe8x",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null "nestedPrefabInstanceRoots": null
}, },
{ {

View File

@@ -392,43 +392,37 @@
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 0.30000001192092896, "value": 0.20000000298023224,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 0.4000000059604645, "value": 0.25,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 0.30000001192092896, "value": 0.20000000298023224,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
} }
], ],
"preExtrapolation": 1, "preExtrapolation": 1,
@@ -452,43 +446,37 @@
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 0.30000001192092896, "value": 0.20000000298023224,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 0.4000000059604645, "value": 0.25,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
"interpolationMode": 0, "interpolationMode": 0,
"tangentWeightMode": 0, "tangentWeightMode": 0,
"value": 0.30000001192092896, "value": 0.20000000298023224,
"rightTangent": 0, "rightTangent": 0,
"rightTangentWeight": 1, "rightTangentWeight": 1,
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
} }
], ],
"preExtrapolation": 1, "preExtrapolation": 1,
@@ -518,9 +506,7 @@
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
@@ -532,9 +518,7 @@
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
}, },
{ {
"__type__": "cc.RealKeyframeValue", "__type__": "cc.RealKeyframeValue",
@@ -546,9 +530,7 @@
"leftTangent": 0, "leftTangent": 0,
"leftTangentWeight": 1, "leftTangentWeight": 1,
"easingMethod": 0, "easingMethod": 0,
"__editorExtras__": { "__editorExtras__": null
"tangentMode": 0
}
} }
], ],
"preExtrapolation": 1, "preExtrapolation": 1,

View File

@@ -13,7 +13,7 @@ export enum BoxSet {
LETF_END = -360, LETF_END = -360,
RIGHT_END = 360, RIGHT_END = 360,
//游戏地平线 //游戏地平线
GAME_LINE = -90, GAME_LINE = 80,
} }
export enum FacSet { export enum FacSet {

View File

@@ -49,12 +49,12 @@ export class MissionHeroComp extends CCComp {
/** 硬编码的6个英雄占位点 */ /** 硬编码的6个英雄占位点 */
public static readonly HERO_POSITIONS: Vec3[] = [ public static readonly HERO_POSITIONS: Vec3[] = [
v3(-175, BoxSet.GAME_LINE + 100, 0), // index 0 (node_index 1): Top Front v3(-180, BoxSet.GAME_LINE, 0), // index 0 (node_index 1): Top Front 第二
v3(-170, BoxSet.GAME_LINE, 0), // index 1 (node_index 2): Mid Front v3(-80, 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, 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 + 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, 0), // index 4 (node_index 5): Mid Back
v3(-280, BoxSet.GAME_LINE - 100, 0), // index 5 (node_index 6): Bot Back // v3(-280, BoxSet.GAME_LINE - 100, 0), // index 5 (node_index 6): Bot Back
]; ];
/** 英雄出生时的掉落高度(从空中落到地面的像素差) */ /** 英雄出生时的掉落高度(从空中落到地面的像素差) */

View File

@@ -39,21 +39,21 @@ export class MissionMonCompComp extends CCComp {
/** 硬编码的 12 个怪物占位点 (3行4列) */ /** 硬编码的 12 个怪物占位点 (3行4列) */
public static readonly MON_POSITIONS: Vec3[] = [ public static readonly MON_POSITIONS: Vec3[] = [
// 第 1 列 (X=60) // 第 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, 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) // 第 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, 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) // 第 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, 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) // 第 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, 0), // index 10: Mid
v3(270, BoxSet.GAME_LINE - 100, 0), // index 11: Bot v3(270, BoxSet.GAME_LINE, 0), // index 11: Bot
]; ];
// ======================== 编辑器属性 ======================== // ======================== 编辑器属性 ========================