Hacking the Dino Game from Google Chrome

Image for post
Image for post

Game’s Logic

Once you open the game screen, right click and open inspect option or CTRL+SHIFT+I.

Image for post
Image for post

Hacking the game

Once you open the “Inspect Element” option from the menu. Go to the console and write the following lines.

var dummy = Runner.prototype.gameOver
Runner.prototype.gameOver = function(){
}
Image for post
Image for post

Dino Speed :

Let’s fiddle a bit with the speed of the game too. To do that we play with another function called “setSpeed()” which accepts a number. By changing the value we can change the speed of our dinosaur and get score faster. The maximum score the game gives you is 99999 before it resets back to 0.

Runner.instance_.setSpeed(6000)

Dino Jump Limit:

You can control how high should the dino jump. Change the number like 10,20,25 etc.

Runner.instance_.tRex.setJumpVelocity(10)

Stop the Game:

Since your game no longer has a collision stop mechanism, it will run forever. If you want to stop it, you need to employ the Console again.

Runner.prototype.gameOver = dummy

Written by

Tech Lead and Founder at @XenonStudio. #Mobile #AI. Visit :- https://xenonstudio.in

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store