Code Monkey home page Code Monkey logo

hack-dino's Introduction

Hacking the Chrome Dino Game

Google Chrome includes an endless runner Dinosaur game which appears in the absense of internet connection.

If you are unable to get the No Internet page, open a new tab and type chrome://dino and press enter.

Playing

  • Space Bar / Up: Jump (also to start the game)
  • Down: Duck (pterodactyls appear after 450 points)
  • Alt: Pause
  • The game enters a black background mode after every multiple of 700 points for the next 100 points.

Open Chrome Console

  • Make sure you are on the No Internet Connection page.
  • Right click anywhere on the page and select Inspect.
  • Go to Console tab. This is where we will enter the commands to tweak the game.

Tweaking Speed

Type the following command in Console and press enter. You can use any other speed in place of 1000.

  • When you want to run: Runner.instance_.setSpeed(1000)
  • When you want to stop: Runner.instance_.setSpeed(10)

Immortality

  • After every command press enter. All the commands are case-sensitive.
  • We store the original game over function in a variable: var original = Runner.prototype.gameOver
  • Then, we make the game over function empty: Runner.prototype.gameOver = function(){}

Stopping the game after using Immortality

  • When you want to stop the game, Revert back to the original game over function: Runner.prototype.gameOver = original

Setting the current score

  • Let’s set the score to 12345. You can set any other score less than 99999. The current score is reset on game over. Runner.instance_.distanceRan = 12345 / Runner.instance_.distanceMeter.config.COEFFICIENT

Stand still and gain points

  • It does not move but the score increases Runner.instance_.playingIntro = true;
  • Stopping the game Runner.instance_.playingIntro = false;

Auto Play

Paste all code from the file auto_dino.js

hack-dino's People

Contributors

bkk0711 avatar bkk711 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.