Created
June 26, 2019 10:56
-
-
Save eviltester/7262f4d0e8226cd2fa57d750e3faff95 to your computer and use it in GitHub Desktop.
simple galaxian game hacks
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
| Found this little Galaxians game which is quite nice and hackable: | |
| http://michal.biniek.pl/games/galaxian.html | |
| ~~~~~~~~ | |
| var infiniteLivesBot = setInterval(function(){if(oLives.iLives<3){oLives.add();}},1000); | |
| ~~~~~~~~ | |
| ~~~~~~~~ | |
| var autofireBot = setInterval(function(){MyShip.shoot();},200) | |
| ~~~~~~~~ | |
| ~~~~~~~~ | |
| var machineGunner = setInterval(function(){new bullet({x: MyShip.x + aParams.width/2, y: MyShip.y - aParamsBullet.height, direction: -1});},200); | |
| ~~~~~~~~ | |
| And clear bost with clearInterval | |
| ~~~~~~~~ | |
| clearInterval(machineGunner) | |
| ~~~~~~~~ |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found this little Galaxians game which is quite nice and hackable:
http://michal.biniek.pl/games/galaxian.html
And clear bost with clearInterval