wobblyhead hg > minor_monsters
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 31:d1ae50439686 | 32:85d23328a215 |
|---|---|
| 28 this.paused = false; | 28 this.paused = false; |
| 29 this.speeds = cfg.controls.speeds; | 29 this.speeds = cfg.controls.speeds; |
| 30 this.speedIndex = 0; | 30 this.speedIndex = 0; |
| 31 this.result = null; // "won" or "lost" | 31 this.result = null; // "won" or "lost" |
| 32 this.splash = false; // splash screen shown over the paused map | 32 this.splash = false; // splash screen shown over the paused map |
| 33 this.askSound = false; // the splash screen's sound button covers play | |
| 33 this.help = false; // help popup shown over everything | 34 this.help = false; // help popup shown over everything |
| 34 this.helpResume = false; // the game ran when the help popup opened | 35 this.helpResume = false; // the game ran when the help popup opened |
| 35 // player selection: shop tower type, its snapped preview, a built tower | 36 // player selection: shop tower type, its snapped preview, a built tower |
| 36 this.shop = null; | 37 this.shop = null; |
| 37 this.preview = null; | 38 this.preview = null; |
