fix: 统一英雄与怪物的基础尺寸为1.15
调整Hero.ts和Mon.ts中的size变量,将英雄尺寸从1.3下调,怪物尺寸从1.0上调,使两者基础尺寸统一为1.15,以平衡游戏中的视觉比例和碰撞体验。
This commit is contained in:
@@ -69,7 +69,7 @@ export class Hero extends ecs.Entity {
|
|||||||
// 英雄等级在当前规则下上限为 3,避免超配表范围
|
// 英雄等级在当前规则下上限为 3,避免超配表范围
|
||||||
if(hero_lv>3) hero_lv=3
|
if(hero_lv>3) hero_lv=3
|
||||||
// 英雄尺寸随等级做轻量放大,强化成长反馈
|
// 英雄尺寸随等级做轻量放大,强化成长反馈
|
||||||
let size=1.3
|
let size=1.15
|
||||||
// 根据配置路径加载英雄预制体
|
// 根据配置路径加载英雄预制体
|
||||||
var path = "game/heros/"+HeroInfo[uuid].path;
|
var path = "game/heros/"+HeroInfo[uuid].path;
|
||||||
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
var prefab: Prefab = oops.res.get(path, Prefab)!;
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export class Monster extends ecs.Entity {
|
|||||||
// 怪物默认朝左,表现缩放固定为负向
|
// 怪物默认朝左,表现缩放固定为负向
|
||||||
scale=-1
|
scale=-1
|
||||||
// 当前怪物尺寸固定,保留变量便于后续扩展
|
// 当前怪物尺寸固定,保留变量便于后续扩展
|
||||||
let size=1
|
let size=1.15
|
||||||
var scene = smc.map.MapView.scene;
|
var scene = smc.map.MapView.scene;
|
||||||
// 根据配置读取怪物预制体路径
|
// 根据配置读取怪物预制体路径
|
||||||
var path = "game/heros/"+HeroInfo[uuid].path;
|
var path = "game/heros/"+HeroInfo[uuid].path;
|
||||||
|
|||||||
Reference in New Issue
Block a user