diff --git a/zombies.js b/zombies.js index 5b2556a..48b403b 100644 --- a/zombies.js +++ b/zombies.js @@ -79,9 +79,8 @@ function splatter(i, fanfare = true) { // the MAIN ball hit a zombie } // ---- horde wave: dense spawns + an auto-firing machine-gun racket (pellets, not the match ball) -function spawnHordeZombie() { - if (Math.random() < 0.5) spawnZombie((Math.random() * 2 - 1) * 5, -1.5 - Math.random(), Math.random() < 0.5 ? 'a' : 'b'); // far baseline - else spawnZombie(Math.random() < 0.5 ? -6 : 6, Math.random() * 8, Math.random() < 0.5 ? 'a' : 'b'); // in from the sides +function spawnHordeZombie() { // all from the far baseline, across the court — never off-screen at the sides + spawnZombie((Math.random() * 2 - 1) * 5, -1.5 - Math.random(), Math.random() < 0.5 ? 'a' : 'b'); } function firePellet() { const a = (Math.random() * 2 - 1) * 4 * Math.PI / 180, s = 26; // ±4° spread, straight up-court (-z)