diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/puzzle-dungeon/game.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/puzzle-dungeon/game.js b/js/puzzle-dungeon/game.js index 179ea4e..79a3f76 100644 --- a/js/puzzle-dungeon/game.js +++ b/js/puzzle-dungeon/game.js @@ -221,7 +221,8 @@ function checkForDamageOrTarget() { export function alertGameOver() { const gameStatsString = `Level: ${player.level}, Par: ${player.par} : ${levelPar}, Health: ${player.health}, Power: ${player.power}`; - alert('You have lost the game!' + '\n' + gameStatsString); + alert('Game Over' + '\n' + gameStatsString); + player.level = 0; initializeGame(); } |