roundedBox for every themes

This commit is contained in:
2026-01-25 12:50:13 +01:00
parent 1e7d29d6e3
commit 1227a93475
4 changed files with 12 additions and 27 deletions

4
app.js
View File

@@ -135,7 +135,7 @@ let game = {
window.onblur = null
renderer.domElement.onfocus = null
menu.settings.domElement.onfocus = null
game.playing = false
this.playing = false
scene.music.pause()
stats.clock.stop()
messagesSpan.addNewChild("div", { className: "show-level-animation", innerHTML: `<h1>GAME<br/>OVER</h1>` })
@@ -347,5 +347,5 @@ window.addEventListener("resize", () => {
window.onbeforeunload = function (event) {
menu.save()
localStorage["teTraHighScore"] = stats.highScore
return !game.playing
if (game.playing) return false;
}