Skip to content

Instantly share code, notes, and snippets.

@Aldaviva
Last active August 29, 2015 13:56
Show Gist options
  • Save Aldaviva/9012752 to your computer and use it in GitHub Desktop.
Save Aldaviva/9012752 to your computer and use it in GitHub Desktop.
Flappy Space Program Launch Control
  1. Go to Flappy Space Program
  2. Open Developer Tools (F12)
  3. Paste the contents of launchcontrol.js, below, into the Console tab
  4. When you want to launch a bird, run liftoff() in the Console tab
window.liftoff = function(){ var numFlaps = window.flapTimes.length; for(var i=0; i < numFlaps; ++i){ window.setTimeout(window.flap, window.flapTimes[i]); }}
window.flapTimes = [0, 100, 200, 400, 600, 800, 1000, 1200]
window.flap = function(){ $('#canvas').trigger('mousedown'); }
@bussiere
Copy link

nice one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment