refactor(game): 重构游戏地平线与怪物生成逻辑,并更新UI资源

- 将游戏地平线从120调整为-215,以改变战斗场景基线
- 移除多线路怪物生成逻辑,统一使用地平线作为y坐标
- 清理卡牌系统中的等级升级相关代码,简化事件处理
- 更新角色控制器UI布局和样式,调整组件位置和尺寸
- 替换纹理图集资源,移除旧版背景图,添加新版分层背景
- 删除多个未使用的meta配置文件
This commit is contained in:
walkpan
2026-01-29 22:51:16 +08:00
parent 4ac3d55990
commit bff20f0ded
14 changed files with 1844 additions and 1557 deletions

View File

@@ -8,7 +8,7 @@ import { GameEvent } from "../common/config/GameEvent";
// 导入肉鸽配置
import { getStageMonConfigs, MonType, generateMonstersFromBudget, getRogueConfig } from "./RogueConfig";
import { BuffConf } from "../common/config/SkillSet";
import { IndexSet, FacSet } from "../common/config/GameSet";
import { IndexSet, FacSet, BoxSet } from "../common/config/GameSet";
import { HeroAttrsComp } from "../hero/HeroAttrsComp";
import { Attrs } from "../common/config/HeroAttrs";
const { ccclass, property } = _decorator;
@@ -234,27 +234,27 @@ export class MissionMonCompComp extends CCComp {
// y 在线路之间交替0->SLINE_1, 1->SLINE_2, 2->SLINE_3, 3->SLINE_4
const x = MonStart.START_X + Math.floor(i / 4) * MonStart.START_I;
let y = MonStart.SLINE_1;
let y = BoxSet.GAME_LINE;
let lane = 0;
switch (i % 4) {
case 0:
y = MonStart.SLINE_1;
lane = 0;
break;
case 1:
y = MonStart.SLINE_2;
lane = 1;
break;
case 2:
y = MonStart.SLINE_3;
lane = 2;
break;
case 3:
y = MonStart.SLINE_4;
lane = 3;
break;
}
// switch (i % 4) {
// case 0:
// y = MonStart.SLINE_1;
// lane = 0;
// break;
// case 1:
// y = MonStart.SLINE_2;
// lane = 1;
// break;
// case 2:
// y = MonStart.SLINE_3;
// lane = 2;
// break;
// case 3:
// y = MonStart.SLINE_4;
// lane = 3;
// break;
// }
let pos: Vec3 = v3(x, y, 0);