添加了几个英雄

This commit is contained in:
2024-09-09 10:48:52 +08:00
parent 3c2bf955a6
commit 0129c63bb9
279 changed files with 25842 additions and 6672 deletions

View File

@@ -37,6 +37,7 @@ export class MapMonsterComp extends CCComp {
setp_timer: Timer = new Timer(0.5);
target_timer: Timer = new Timer(0.1);
setp_num:number = 1;
game_over:boolean = false;
onLoad(){
// 监听全局事件
oops.message.on("other_add_monster", this.on_other_add_monster, this);
@@ -58,6 +59,9 @@ export class MapMonsterComp extends CCComp {
}
protected update(dt: number): void {
if(smc.vm_data.game_over){
return
}
if(this.setp_timer.update(dt)){
this.monster_refresh()
}