Skip to content

Instantly share code, notes, and snippets.

View ramzialhaddad's full-sized avatar
👨‍💻
"Technologist" Emoji

Ramzi Al Haddad ramzialhaddad

👨‍💻
"Technologist" Emoji
  • Planet Earth
View GitHub Profile
// 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;
}