添加技能动画

This commit is contained in:
2024-08-20 13:35:13 +08:00
parent dd4ec69fb6
commit 87a445c225
34 changed files with 1849 additions and 30 deletions

View File

@@ -55,6 +55,7 @@ export class MapViewComp extends CCComp {
}
protected update(dt: number): void {
if (this.monster_refresh_rtimer.update(dt)) {
// 刷新怪物定时器
this.monster_refresh()
}
if (this.game_timer.update(dt)) {
@@ -63,11 +64,11 @@ export class MapViewComp extends CCComp {
// this.shuaxin(dt)
this.gold_add(dt)
}
// 刷新怪物
monster_refresh(){
if(smc.monsters.length > 0 ){
this.addMonster(smc.monsters[0].uuid)
}
}
gold_add(dt: number) {
smc.vm_data.gold.time += dt;
@@ -102,7 +103,4 @@ export class MapViewComp extends CCComp {
smc.monsters.splice(0,1)
}
}