How to become invincible in the dinosaur game on Google Chrome?

How to become invincible in the dinosaur game on Google Chrome?

06/05/2022 0 By Matt
Rate this post

For the past few years, Google Chrome has included an endless little dinosaur video game that appears when there is no Internet connection on the browser.

If you can’t get the dinosaur game page, you can disconnect your Internet connection and open a page on Google Chrome to get the dinosaur game. If not, just open a new tab and paste it chrome://dino and hit enter.

If not, go to trex-chrome.com to play the dinosaur game without having to shut down the Internet and make your computer idle.

How to play the game?

To play the dinosaur game, you have to jump over the cactus and pass over or under the pterodactyls (big prehistoric birds), you will be able to use the up/down arrow on your keyboard and the space bar.

  • Space bar / up arrow: jump (also to start the game)
  • Down arrow: duck (pterodactyls appear after 450 points)
  • Alt: pause the game
  • The game switches to black background mode after each multiple of 700 points for the next 100 points

How to cheat in the dinosaur game on Google Chrome?

Cheating in a game is not good, everyone knows that! But cheating in the dinosaur game on Google Chrome is cool to brag to your friends!

Here is a little hack to become invincible in the dinosaur game on Google Chrome. Start by opening the dinosaur game page and open the Google Chrome Developer Console (right click then Inspect and click on the Console tab, or by pressing Ctrl + Shift + J).

Enter these two commands to become invincible to the dinosaur game on Google Chrome:

var original = Runner.prototype.gameOver;

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

How to undo the dinosaur game hack on Google Chrome?

You cheated on the dinosaur game on Google Chrome and got a more satisfactory score, you want to undo the game hack? It’s possible with the command below. Go back to the first steps, the ones to start cheating but this time you will have to use this command:

Runner.prototype.gameOver = original;

How to increase the speed of the dinosaur game on Google Chrome?

In the same way as the previous steps, you can increase the speed of the dinosaur game by typing this command in the Google Chrome console:

Runner.instance_.setSpeed(200);

How to jump higher in the dinosaur game on Google Chrome?

And to finish with the dinosaur game cheat codes, enter this command in Google Chrome console to jump higher:

Runner.instance_.tRex.setJumpVelocity(10);

A much smarter method than cheat codes

The second method is to create a small module in Arduino that detects obstacles, and makes the dinosaur jump at the right time.

What is the Arduino?

After reading the second point, you told yourself that you were a smart person. So if you are going to cheat, you might as well do it as intelligently as possible. So we’re going to go into a little more detail about Arduino.

You should know that Arduino is simply a programmable electronic board. It is equipped with :

  • a microcontroller
  • a USB port
  • input and output connectors. They are more or less numerous, depending on the board you buy.

This will allow you, for example, to manage motors, display systems or even sensors. All this can be very useful when developing prototypes for industry or in our case, to make the little dinosaur jump when it arrives near the cactus.

To make this card work, you will of course have to program it. It uses the C or C++ computer language. The principle is simple. You will need two photoresistance sensors. The first one must be positioned on a white area of the screen and the second one must be positioned on the line where the cactus are. The cactus being darker, the space bar will be triggered. Attention, for information, if you have never played it, there are also small cactuses.

In short, as you can see, it is quite simple to program and to implement. You can very well propose this exercise in a course of discovery to programming.

What if you don’t know this language?

As you can see, this little exercise is fun, but it is not very interesting. We’re not really sure that buying hardware is justified, just to make the dinosaur jump automatically. On the other hand, since we’re talking about automation, we encourage you to Google “create chatbot”. In our opinion, it is just as exciting and much more useful.

Indeed, you will have to program a robot that will be able to answer in a relevant way to the questions or actions of Internet users. If you want to see what it can look like, we invite you to visit the website of the company Botnation. You will discover that it is possible to set up chatbots:

  • For a customer service on a contact page
  • For lead collection on a landing page
  • For satisfaction surveys on a Facebook page

Good news, this time you don’t need to know any computer language to do it. Another good news is that this company allows you to set up a chatbot for free and in just a few minutes.

Of course, you will then have to work on your different scenarios to make your chatbot as efficient as possible. Moreover, thanks to it, you will no longer need to spend your time answering questions from Internet users. This will allow you to devote yourself entirely to beating your record on the dinosaur game or to develop your company’s turnover.