feat(关卡系统): 实现章节-关-节三级关卡推进机制

本次提交重构了关卡系统,实现了完整的小节级关卡推进流程:
1. 新增关卡配置表StageSet,定义章节-关-节三级结构与怪物数值公式
2. 重构刷怪逻辑,按小节配置生成对应怪物波次
3. 实现关卡进度存档与恢复,支持断点续玩
4. 新增结算弹窗分支逻辑,区分小节胜利/关卡通关/失败状态
5. 优化胜利按钮文案与显示逻辑,将"再来一局"改为"下一关"
6. 新增一套完整的关卡事件系统,驱动各模块协同工作
This commit is contained in:
pan
2026-09-10 17:30:37 +08:00
parent 270f734a6a
commit 7b9545e2a8
9 changed files with 804 additions and 308 deletions

View File

@@ -46,6 +46,12 @@ export interface GameDate {
talent_lv?: number,
/** 天赋当前等级已累计的经验值 */
talent_exp?: number,
/** 关卡进度存档:当前章节-关-节 */
stage_progress?: {
chapter: number,
stage: number,
section: number,
},
}
export interface CloudData {
openid: string;
@@ -145,6 +151,12 @@ export class SingletonModuleComp extends ecs.Comp {
talent_lv: 0,
/** 当前等级已累计经验 */
talent_exp: 0,
/** 关卡进度存档:默认从 1-1-1 开始 */
stage_progress: {
chapter: 1,
stage: 1,
section: 1,
},
}
vmdata: any = {