新hero 基本完成

This commit is contained in:
2024-09-11 08:02:49 +08:00
parent a10e2a43be
commit 0f7f2ad49b
21 changed files with 722 additions and 1796 deletions

View File

@@ -172,7 +172,7 @@ export class HeroViewComp extends CCComp {
this.in_shield();
this.in_stop(dt);
this.in_act(dt);
// this.move(dt);
this.move(dt);
// if(this.m_timer.update(dt)){
// this.move_to()
// }
@@ -189,9 +189,9 @@ export class HeroViewComp extends CCComp {
if(this.scale===-1&&this.node.position.x <= BoxSet.HERO_START){
return;
}
// if(this.enemy){
// return
// }
if(this.enemy){
return
}
this.node.setPosition(this.node.position.x+dt*this.speed*this.scale, this.node.position.y, this.node.position.z);
}
move_to(){