feat(游戏事件): 添加复活成功事件并优化英雄死亡逻辑
- 在GameEvent枚举中添加ReviveSuccess事件 - 在SingletonModuleComp中添加score字段用于记录分数 - 移除HeroViewComp中无用的战斗结束相关代码 - 优化英雄死亡逻辑,只有主角死亡才触发游戏结束判定
This commit is contained in:
@@ -65,6 +65,7 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
max_mission:4,//最大关卡
|
||||
coin:0,
|
||||
time:15*60,//游戏时间
|
||||
score:0,
|
||||
},
|
||||
hero:{
|
||||
name:'',
|
||||
|
||||
Reference in New Issue
Block a user