Skip to content

Commit

Permalink
Health bar dissappears on death
Browse files Browse the repository at this point in the history
  • Loading branch information
Parallaxes committed Feb 12, 2025
1 parent 0984f3b commit 97cecbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/platformer/BossFight.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class BossFight extends Character {
GameEnv.invincible = true; // Make invincible
this.canvas.style.display = "none"; // Hide the Titan's canvas (makes it disappear)
GameEnv.playSound("goombaDeath"); // Play the death sound
this.titanHealthBar.destroy();
}
}

Expand Down

0 comments on commit 97cecbf

Please # to comment.