say game over

This commit is contained in:
2026-01-28 01:59:18 +01:00
parent 559d9dc9e6
commit 6d19817f77
3 changed files with 15 additions and 14 deletions

1
app.js
View File

@@ -138,6 +138,7 @@ let game = {
scene.music.pause()
stats.clock.stop()
messagesSpan.addNewChild("div", { className: "show-level-animation", innerHTML: `<h1>GAME<br/>OVER</h1>` })
stats.speak("Game Over")
menu.pauseButton.hide()
menu.startButton.name("Rejouer")