fix: 调整怪物和英雄初始尺寸,优化胜利UI显示

将怪物和英雄的默认尺寸从1.15改为1,同时调整胜利UI的位置、大小、字体和精灵配置,统一界面显示效果
This commit is contained in:
pan
2026-09-01 10:46:42 +08:00
parent 4ad8b2e0b6
commit 6608cedb08
3 changed files with 18 additions and 15 deletions

View File

@@ -287,7 +287,7 @@
"__id__": 11
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 19
@@ -302,7 +302,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 470.965,
"y": 460.432,
"z": 0
},
"_lrot": {
@@ -355,7 +355,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -4.457999999999995,
"y": 5.418000000000003,
"z": 0
},
"_lrot": {
@@ -395,7 +395,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 144,
"width": 124,
"height": 54.4
},
"_anchorPoint": {
@@ -434,8 +434,8 @@
"_string": "战斗结束",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 35,
"_fontSize": 35,
"_actualFontSize": 30,
"_fontSize": 30,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
@@ -493,7 +493,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 77.758,
"_top": -3.6180000000000008,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
@@ -540,8 +540,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 377,
"height": 201
"width": 300,
"height": 58
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -577,12 +577,12 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@bc18e",
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@9a244",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_type": 1,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
@@ -592,7 +592,10 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_atlas": {
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
},
{

View File

@@ -80,7 +80,7 @@ export class Hero extends ecs.Entity {
// 英雄等级上限以配置为准,合成可升到 HERO_MAX_LV
if (hero_lv > FightSet.HERO_MAX_LV) hero_lv = FightSet.HERO_MAX_LV
// 英雄尺寸随等级做轻量放大,强化成长反馈
let size = 1.15
let size = 1
// 根据配置路径加载英雄预制体
var path = "game/heros/" + HeroInfo[uuid].path;
var prefab: Prefab = oops.res.get(path, Prefab)!;

View File

@@ -134,7 +134,7 @@ export class Monster extends ecs.Entity {
// 怪物默认朝左,表现缩放固定为负向
scale = -1
// 当前怪物尺寸固定,保留变量便于后续扩展
let size = 1.15
let size = 1
var scene = smc.map.MapView.scene;
// 根据配置读取怪物预制体路径
var path = "game/heros/" + HeroInfo[uuid].path;