diff game/js/game.js @ 32:85d23328a215 0.10.0

added intro music, logic for browser audio triggering on splash screen
author ark
date 2026-10-20 18:39 +0200
parents 75deda08db90
children a464bd43b76c
line wrap: on
line diff
--- a/game/js/game.js	Tue Oct 20 17:58:10 2026 +0200
+++ b/game/js/game.js	Tue Oct 20 18:39:22 2026 +0200
@@ -30,6 +30,7 @@
         this.speedIndex = 0;
         this.result = null;     // "won" or "lost"
         this.splash = false;    // splash screen shown over the paused map
+        this.askSound = false;  // the splash screen's sound button covers play
         this.help = false;      // help popup shown over everything
         this.helpResume = false; // the game ran when the help popup opened
         // player selection: shop tower type, its snapped preview, a built tower