Add main menu, ghost enemy, and sword slash trail

This commit is contained in:
2026-08-17 13:03:19 +02:00
parent 0b19c3d26b
commit 4751d428a7
8 changed files with 796 additions and 164 deletions
+9
View File
@@ -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');
}
}