This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To use, paste this into the console in devtools on flippy bit website, then type `setInterval(pressButtons, 1)` | |
// Fails at ~350 because at around 100 score the game spawns an enemy every frame | |
function findEnemies() { | |
let rval = []; | |
for(c of game.children) { | |
if(c.id.startsWith("enemy")){rval.push(c)}; | |
} | |
return rval; | |
} |