How To Hack Chrome Dinosaur Game

How to hack Chrome Dinosaur Advance Video




What is Chrome Dinosaur Game?

    Chrome Dinosaur game is also known as T-REX game. It is a simple infinite runner up game. Which is control by using Space key to jump and to start game also And press down arrow to duck.


  



When we get Chrome Dinosaur Game?

    By default, When we try to search something without Internet or when our Wi-Fi or internet service are shut down. At that time google Chrome redirect us at the chrome Dino game.

    You can also play it when your device is connected with internet. You can Open it by just typing
chrome://dino in your URL bar.
                                                
                                                    Chrome://dino

How to Hack Chrome Dino

    Once you opened chrome dino game by searching something without internet or Wi-Fi or just type Chrome://dino in google Chrome Url.



Press: Ctrl+Shift+I

    By pressing Ctrl+Shift+I you will be able to open Inspect frome Inspect select Console.


Then You Need to write:

           > var original = Runner.prototype.gameOver

            > Runner.prototype.gameOver = function(){}

And Press Enter after that click on dino or press space or up arrow.
After that you can see your dinosaur will going without crashing. 

But, here is a problem what if you want to jump then you need to press space. So if you want to make dino automation means it will automatically jump when it bird or cacti will come near to dinosaur. 
So, for that you need to write this code:   
                    
    const autoPlayLoop = function() {
const JUMP_SPEED = 50;
const DISTANCE_BEFORE_JUMP = 120;

const instance = window.Runner.instance_;
const tRex = instance.tRex;

if( tRex.jumping ) {
requestAnimationFrame(autoPlayLoop);
return;
}

const tRexPos = tRex.xPos;
const obstacles = instance.horizon.obstacles;

const nextObstacle = obstacles.find(o => o.xPos > tRexPos);

if( nextObstacle && ( nextObstacle.xPos - tRexPos ) <= DISTANCE_BEFORE_JUMP ) {
tRex.startJump(JUMP_SPEED)
}

requestAnimationFrame(autoPlayLoop);
}

requestAnimationFrame(autoPlayLoop);


After pasting or typing this code you will see your dino will run like original game. It will look like some expert one is playing. It will automatically jump and go down as per require, You don't need to touch any key or mouse.

NOTE: Code must same as it is here for that you can copy it from here or you can see video for better understanding. which are mentioned in the start of blog.



    


Comments

Popular posts from this blog

Android Hello World Application

Select, Insert, Delete, and Update using Stored Procedure in ASP.NET