Last active
August 26, 2019 08:14
-
-
Save markknol/86f2ef61c9c3306b0557 to your computer and use it in GitHub Desktop.
Google chrome dino game runner hack - add screenshakes ( chrome://dino )
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
// open F12, paste this in the console. screenshakes!! | |
window.oldJump = Runner.instance_.tRex.startJump | |
Runner.instance_.tRex.startJump = function() { | |
window.oldJump.call(Runner.instance_.tRex, null); | |
for(i=0;i<30;i++) { | |
setTimeout(function() { | |
Runner.instance_.tRex.canvas.style.marginTop = (-10+Math.random()*20) + "px"; | |
Runner.instance_.tRex.canvas.style.marginLeft = (-10+Math.random()*20) + "px"; | |
}, 500 + i * 10); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment