Chrome Dinosaur HACKED Advanced

110,907

11

14

Introduction: Chrome Dinosaur HACKED Advanced

Ever wanted to amaze your friends or have some fun almost destroying the Dinosaur Game? Well look no further.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: How to Use the Cheats

You must inspect the dinosaur game by right clicking and clicking inspect. (On chromebook it is a two finger click) Or hit simultaneously; Ctrl Shift I. In the top left of the new box it will say: Elements.To the right of that, it says console. Click on that. It will bring you to another box that may have some code at the top. When you find a cheat below that you like, paste it in next to the blue arrow and hit enter. You may have to be in the middle of the game for some cheats to work.

Step 2: The Cheats

To discover your own cheat type Runner.config or Runner.prototype or Runner.instance_

Than hit the arrow to see what things you can change. Runner.config.ACCELERATION = 10000 Runner.___.____ = ___ Like that. Invincibility: Runner.prototype.gameOver = function() {console.log("died")}; Change speed (1000+ will make invincible) Runner.instance_.setSpeed(750) SET YOUR SCORE >:) Go up to a cactus and enter this right before you hit it and you should get a WR; Runner.instance_.distanceRan = 3999900. You can make it so no plants or pterodactyls ever spawn by typing Runner.config.GAMEOVER_CLEAR_TIME = 999999999999999999 Also, if you want to earn points really fast, type Runner.instance_.msPerFrame = _ and replace the underscore with whatever number. (It starts at 16.66666)New graphical hack!!!: Runner.imageSprite This will show a HTML box so right click and hit: edit as html. There will be a image address and delete that but nothing else. Replace it with another image address and hit the X button in the top right. Graphics should be rekt!!! Also, this a advanced technique I guess but type Runner.SpriteDefinition and there will be 2 boxes that appear. Click them both to expand them and you can see a bunch of things like: cactus x: --- y: --- so you change these numbers however for it to work, I discovered that you also have to change the value for the other box. (I don't know what it actually says but I know the first one starts with “H” and the second one starts with “L”) Ex: H--- Cactus x:10 y:2 L--- Cactus x:20 y:2 (The y will always be 2 --don't change it) You have to change both x values (not the same number though) So I might change it to; H--- Cactus x:43 y:2 L--- Cactus x:13 y:2 I experimented and changed the X values of the small cactus to the X values of the dinosaur and the cacti looked like dinosaurs. The other instructables really inspired me to created this since that is where I learned to hack this game from.

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Finish It Already Speed Challenge

      Finish It Already Speed Challenge

    14 Discussions

    0
    nightwing4741
    nightwing4741

    19 days ago

    I found this code would add a bot to the game!
    it's so cool! I used this to tell people who don't know any better that I'm "hacking".

    just go to chrome://dino
    go to inspect
    go to console
    and paste in this code

    function keyDown(e){Podium={};var n=document.createEvent("KeyboardEvent");Object.defineProperty(n,"keyCode",{get:function(){return this.keyCodeVal}}),n.initKeyboardEvent?n.initKeyboardEvent("keydown",!0,!0,document.defaultView,e,e,"","",!1,""):n.initKeyEvent("keydown",!0,!0,document.defaultView,!1,!1,!1,!1,e,0),n.keyCodeVal=e,document.body.dispatchEvent(n)}function keyUp(e){Podium={};var n=document.createEvent("KeyboardEvent");Object.defineProperty(n,"keyCode",{get:function(){return this.keyCodeVal}}),n.initKeyboardEvent?n.initKeyboardEvent("keyup",!0,!0,document.defaultView,e,e,"","",!1,""):n.initKeyEvent("keyup",!0,!0,document.defaultView,!1,!1,!1,!1,e,0),n.keyCodeVal=e,document.body.dispatchEvent(n)}setInterval(function(){Runner.instance_.horizon.obstacles.length>0&&(Runner.instance_.horizon.obstacles[0].xPos<25*Runner.instance_.currentSpeed-Runner.instance_.horizon.obstacles[0].width/2&&Runner.instance_.horizon.obstacles[0].yPos>75&&(keyUp(40),keyDown(38)),Runner.instance_.horizon.obstacles[0].xPos<30*Runner.instance_.currentSpeed-Runner.instance_.horizon.obstacles[0].width/2&&Runner.instance_.horizon.obstacles[0].yPos<=75&&keyDown(40))},5);

    0
    kyleturneyhackerpro
    kyleturneyhackerpro

    Tip 11 months ago

    Here is the code for ease:
    Runner.spriteDefinition = {
    LDPI: {
    CACTUS_LARGE: {x: 332, y: 2},
    CACTUS_SMALL: {x: 228, y: 2},
    CLOUD: {x: 86, y: 2},
    HORIZON: {x: 2, y: 54},
    MOON: {x: 484, y: 2},
    PTERODACTYL: {x: 134, y: 2},
    RESTART: {x: 2, y: 2},
    TEXT_SPRITE: {x: 655, y: 2},
    TREX: {x: 848, y: 2},
    STAR: {x: 645, y: 2}
    },
    HDPI: {
    CACTUS_LARGE: {x: 652, y: 2},
    CACTUS_SMALL: {x: 446, y: 2},
    CLOUD: {x: 166, y: 2},
    HORIZON: {x: 2, y: 104},
    MOON: {x: 954, y: 2},
    PTERODACTYL: {x: 260, y: 2},
    RESTART: {x: 2, y: 2},
    TEXT_SPRITE: {x: 1294, y: 2},
    TREX: {x: 1678, y: 2},
    STAR: {x: 1276, y: 2}
    }
    };
    0
    SohaibA24
    SohaibA24

    Reply 8 months ago

    pleeeease tell me how can i make 30 digit scoreboard

    0
    johnb1053
    johnb1053

    Tip 1 year ago

    have fun

    0
    IswitchedI
    IswitchedI

    Reply 10 months ago

    Thanks

    0
    WeAreNumberOne
    WeAreNumberOne

    1 year ago

    I have seen better hacks

    0
    IswitchedI
    IswitchedI

    Reply 10 months ago

    Try this dude. setInterval(function(){if(Runner.instance_.currentSpeed =11) {Runner.instance_.tRex.startJump(Runner.instance_.currentSpeed)}};};}, 1);
    setInterval(function(){if(Runner.instance_.tRex.status=="CRASHED"){Runner.instance_.restart()}}, 1);

    0
    kyleturneyhackerpro
    kyleturneyhackerpro

    Tip 11 months ago on Step 2

    The terms you were looking for to change the cactus are LDPI and HDPI . These are the two outer boxes. I will paste the code for you so it is easy for you to mess around with.

    0
    DIY Hacks and How Tos

    Fun hack. I am going to have to show this to my son.

    0
    johnb1053
    johnb1053

    Reply 1 year ago

    i did this is my frist hack

    0
    IswitchedI
    IswitchedI

    Reply 2 years ago

    Thank you so much! If you have any questions feel welcome to ask.

    0
    IswitchedI
    IswitchedI

    2 years ago

    Try; setInterval(function(){ Runner.instance_.horizon.obstacleHistory.length = 1; }, 1);Runner.instance_.horizon.duplicateObstacleCheck = function (i){bounce(); for(var s=0,e=0;e<this.obstacleHistory.length;e++)s=this.obstacleHistory[e]==i?s+1:0;return s>=this.config.MAX_OBSTACLE_DUPLICATION}

    function bounce() {setTimeout(function(){ sendit();}, 1540 - Math.pow(Runner.instance_.currentSpeed, 2.989))}

    function sendit() {if(Runner.instance_.horizon.obstacleHistory=="PTERODACTYL"){setTimeout(function(){Runner.instance_.tRex.setDuck(2)}, 100);; setTimeout(function(){ Runner.instance_.tRex.startJump(12.1); }, 270);}else{Runner.instance_.tRex.startJump(12.1);}}