Add main menu, ghost enemy, and sword slash trail
This commit is contained in:
@@ -172,4 +172,13 @@ export class Player {
|
||||
die() {
|
||||
this.playAnimation('die', false);
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.health = this.MAX_HEALTH;
|
||||
this.body.position.set(0, 0.5, 0);
|
||||
this.velocity.set(0, 0, 0);
|
||||
this.jumpVelocity = 0;
|
||||
this.onGround = true;
|
||||
this.playAnimation('stand');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user