comparison game/js/main.js @ 13:8df95050fc8b

no more build during pause; tower popup closes on any click outside it
author ark
date 2026-10-19 21:59 +0200
parents 2c4fed8baed9
children
comparison
equal deleted inserted replaced
12:dc314bfbb1cf 13:8df95050fc8b
25 var seed = cfg.debug.seed || (Math.random() * 4294967296) >>> 0; 25 var seed = cfg.debug.seed || (Math.random() * 4294967296) >>> 0;
26 game = new MM.Game(m, seed, m === FIRST ? cfg.debug.start_wave : 1); 26 game = new MM.Game(m, seed, m === FIRST ? cfg.debug.start_wave : 1);
27 resize(); 27 resize();
28 } 28 }
29 29
30 // the splash screen over the paused first map. the pause does not count 30 // the splash screen over the paused first map
31 // for the sell refund, as nothing can be bought on the splash screen.
32 function splash() { 31 function splash() {
33 startMap(FIRST); 32 startMap(FIRST);
34 game.splash = true; 33 game.splash = true;
35 game.paused = true; 34 game.paused = true;
36 } 35 }