comparison game/js/game.js @ 14:7fda634d15ad

adjustments to wave logic, tower pivot points
author ark
date 2026-10-19 22:50 +0200
parents 8df95050fc8b
children c1c7e4f54bf6
comparison
equal deleted inserted replaced
13:8df95050fc8b 14:7fda634d15ad
20 this.monsters = []; 20 this.monsters = [];
21 this.towers = []; 21 this.towers = [];
22 this.projectiles = []; 22 this.projectiles = [];
23 this.flights = []; // coins flying to the counter 23 this.flights = []; // coins flying to the counter
24 this.puffs = []; // death puffs, {x, y, boss, t} 24 this.puffs = []; // death puffs, {x, y, boss, t}
25 this.waves = new MM.Waves(mapIndex, MM.util.clamp(firstWave - 1, 0, mc.waves.length - 1)); 25 this.waves = new MM.Waves(mapIndex, MM.util.clamp(firstWave - 1, 0, mc.waves.length - 1),
26 this.random);
26 this.time = 0; 27 this.time = 0;
27 this.paused = false; 28 this.paused = false;
28 this.speeds = cfg.controls.speeds.concat(dbg.extra_speeds); 29 this.speeds = cfg.controls.speeds.concat(dbg.extra_speeds);
29 this.speedIndex = 0; 30 this.speedIndex = 0;
30 this.result = null; // "won" or "lost" 31 this.result = null; // "won" or "lost"