Add Spider Queen, Frost Giant, Necromancer and Dragon bosses

This commit is contained in:
2026-08-20 10:21:08 +02:00
parent 151b07cb4e
commit 2bffefb02c
10 changed files with 2563 additions and 19 deletions
+6
View File
@@ -35,6 +35,8 @@ export class Player {
pullTime = 0;
pullDir = new THREE.Vector3();
stunTime = 0;
rootTime = 0;
rootCooldown = 0;
stats: PlayerStats = {
maxHealth: 100,
regen: 0,
@@ -239,6 +241,8 @@ export class Player {
if (this.hurtCooldown > 0) this.hurtCooldown -= dt;
if (this.slowTimer > 0) this.slowTimer -= dt;
if (this.stunTime > 0) this.stunTime -= dt;
if (this.rootTime > 0) this.rootTime -= dt;
if (this.rootCooldown > 0) this.rootCooldown -= dt;
// Stun-Sterne animieren
this.stunStars.visible = this.stunTime > 0;
@@ -360,6 +364,8 @@ export class Player {
this.slowTimer = 0;
this.pullTime = 0;
this.stunTime = 0;
this.rootTime = 0;
this.rootCooldown = 0;
this.body.position.set(0, 0.5, 0);
this.velocity.set(0, 0, 0);
this.jumpVelocity = 0;