Alright mate, let's hack DINO game..

Swair AQ
3 min readApr 23, 2020

--

cause that's the most we can hack

Anyway, if you're bored or your internet is slow like ours, you might see yourself frequently playing THE MIGHTY DINO GAME. Now, it's a good time-killer and you might had a competition with your colleagues on that day when servers were down..? No? just us? okay..

t-rex vs something

The original game is just cool and all but sometimes we don't want our dino to dieeee, man.

Or wait, speed of dino is too slow for a pro like you.

Oh and wait there's more, you wanna jump highhhhh!!!

Let’s see how we can hack it all…

First thing first, close your internet connection, search something on Google, wait for Dino game, Right click anywhere on browser screen, select INSPECT.

You are officially in hacker zone now, now make sure Console Tab is selected and let's start coding:

P.S:

Remember to write all code precisely, it's case sensitive.

Press Enter after each command to execute it.

Dino Jump High

Runner.instance_.tRex.setJumpVelocity(15)

You can change value above to make your dino jump as high as you want or as low…

Dino Morality:

To stop your dino from banging into trees and birds you can overwrite gameOver function of game, making it invisible to any obstacles:

Runner.prototype.gameOver = function(){}

We just cleared the gameOver function and Voila, Immoral Dino.

Dino Score:

You can manually set the basic score to move forward from but that better be less than 99999, let's set our basic score to 50000

Runner.instance_.distanceRan = 50000 / Runner.instance_.distanceMeter.config.COEFFICIENT

Dino Speed:

You think your Dino is too slow or too fast? Well we have a solution for that:

Runner.instance_.setSpeed(1500)

Clear Obstacles:

Now this one's really cool one:

  • It clears all the obstacles all together
  • Make Dino immoral (Obviously)

Just twerk speed of Dino and give it a high number like 15000 or smt, than switch it back to whatever speed you like and VOILA!

RUN DINO RUN…!!

Okay, everything is cool, but now you realized your score won't save because you won't die and you won't die because well…

For that you can save original gameover function in a variable before applying any hacks like so:

var original = Runner.prototype.gameOver

and when you're done playing and winning at Dino life you can just write:

Runner.prototype.gameOver = original

Now your Dino can die in peace…

Alright mate, drop a clap!

--

--

Swair AQ
Swair AQ

Written by Swair AQ

Swair Arshad, React Native developer with a core in iOS. Software enthusiast focused on growth and helping developers become better together.

No responses yet