- Go to Flappy Space Program
- Open Developer Tools (F12)
- Paste the contents of
launchcontrol.js
, below, into the Console tab - When you want to launch a bird, run
liftoff()
in the Console tab
Last active
August 29, 2015 13:56
-
-
Save Aldaviva/9012752 to your computer and use it in GitHub Desktop.
Flappy Space Program Launch Control
This file contains hidden or 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
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'); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You made my day :)