From af78a3e02ba1ec4ce4c619360ddc3502de7175e5 Mon Sep 17 00:00:00 2001 From: panw Date: Wed, 8 Apr 2026 09:12:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E4=B8=80=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E4=B8=8E=E6=80=AA=E7=89=A9=E7=9A=84=E5=9F=BA=E7=A1=80=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8=E4=B8=BA1.15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整Hero.ts和Mon.ts中的size变量,将英雄尺寸从1.3下调,怪物尺寸从1.0上调,使两者基础尺寸统一为1.15,以平衡游戏中的视觉比例和碰撞体验。 --- assets/script/game/hero/Hero.ts | 2 +- assets/script/game/hero/Mon.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index 51969b8f..b2522f2e 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -69,7 +69,7 @@ export class Hero extends ecs.Entity { // 英雄等级在当前规则下上限为 3,避免超配表范围 if(hero_lv>3) hero_lv=3 // 英雄尺寸随等级做轻量放大,强化成长反馈 - let size=1.3 + let size=1.15 // 根据配置路径加载英雄预制体 var path = "game/heros/"+HeroInfo[uuid].path; var prefab: Prefab = oops.res.get(path, Prefab)!; diff --git a/assets/script/game/hero/Mon.ts b/assets/script/game/hero/Mon.ts index c3ddbbc9..9f1002c4 100644 --- a/assets/script/game/hero/Mon.ts +++ b/assets/script/game/hero/Mon.ts @@ -126,7 +126,7 @@ export class Monster extends ecs.Entity { // 怪物默认朝左,表现缩放固定为负向 scale=-1 // 当前怪物尺寸固定,保留变量便于后续扩展 - let size=1 + let size=1.15 var scene = smc.map.MapView.scene; // 根据配置读取怪物预制体路径 var path = "game/heros/"+HeroInfo[uuid].path;