Chrome Dinosaur HACKED Advanced

126,553

14

18

Introduction: Chrome Dinosaur HACKED Advanced

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

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

    • Plastic Challenge

      Plastic Challenge
    • Robots Contest

      Robots Contest
    • Halloween Contest

      Halloween Contest

    18 Comments

    0
    WeAreNumberOne
    WeAreNumberOne

    2 years ago

    I have seen better hacks

    0
    congaterori
    congaterori

    Reply 4 months ago

    when i jump it teleport to the left side

    window.addEventListener("keydown", checkKeyPressed, false);
    function checkKeyPressed(e) {
    if (e.keyCode == "37" && Runner.instance_.tRex.xPos>>4) {
    Runner.instance_.tRex.xPos = Runner.instance_.tRex.xPos - 5;}}
    window.addEventListener("keydown", checkKeyPressed1, false); function checkKeyPressed1(f) {
    if (f.keyCode == "39" && Runner.instance_.tRex.xPos<=553) {
    Runner.instance_.tRex.xPos = Runner.instance_.tRex.xPos - -5;}};

    0
    congaterori
    congaterori

    Reply 4 months ago

    you code not work it say undefined
    //saving clear function
    b = Runner.instance_.clearCanvas;
    //checking for left arrow
    window.addEventListener("keydown", checkKeyPressed, false); function checkKeyPressed(l) { if (l.keyCode == "39" ) {drawline()}};
    function drawline() {
    //making sure there’s obstacles to shoot!
    if (Runner.instance_.horizon.obstacles.length>0){
    //Removing clear function so line can draw
    Runner.instance_.clearCanvas=function(){};
    //drawing line
    Runner.instance_.canvasCtx.beginPath();
    Runner.instance_.canvasCtx.moveTo(Runner.instance_.tRex.xPos+23,Runner.instance_.tRex.yPos+20);
    Runner.instance_.canvasCtx.lineTo(Runner.instance_.horizon.obstacles[0].xPos+10,Runner.instance_.horizon.obstacles[0].yPos+10);
    Runner.instance_.canvasCtx.stroke();
    //restoring clear function
    setTimeout(function(){Runner.instance_.clearCanvas = b;}, 15);
    Runner.instance_.horizon.removeFirstObstacle();}}

    0
    congaterori
    congaterori

    Reply 4 months ago

    i work but can't jump high
    window.addEventListener("keydown", W, false);
    function W(w) {
    if (w.keyCode == "87") {
    Runner.instance_.distanceRan = Runner.instance_.distanceRan + 499
    }
    }
    window.addEventListener("keydown", a, false);
    function a(A) {
    if (A.keyCode == "65" && Runner.instance_.tRex.config.GRAVITY > 0.2) {
    Runner.instance_.tRex.config.INIITAL_JUMP_VELOCITY = Runner.instance_.tRex.config.INIITAL_JUMP_VELOCITY - 1;
    Runner.instance_.tRex.config.GRAVITY = Runner.instance_.tRex.config.GRAVITY- 0.1;
    }}
    window.addEventListener("keydown", d, false);
    function d(D) {
    if (D.keyCode == "68" && Runner.instance_.tRex.config.GRAVITY < 1) {
    Runner.instance_.tRex.config.INIITAL_JUMP_VELOCITY = Runner.instance_.tRex.config.INIITAL_JUMP_VELOCITY - -1;
    Runner.instance_.tRex.config.GRAVITY = Runner.instance_.tRex.config.GRAVITY- -0.1;
    }};

    0
    IswitchedI
    IswitchedI

    Reply 2 years 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
    pro211668
    pro211668

    Question 6 months ago

    How to work it on phone please

    0
    nightwing4741
    nightwing4741

    1 year 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 2 years 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 2 years ago

    pleeeease tell me how can i make 30 digit scoreboard

    0
    johnb1053
    johnb1053

    Tip 2 years ago

    have fun

    0
    IswitchedI
    IswitchedI

    Reply 2 years ago

    Thanks

    0
    kyleturneyhackerpro
    kyleturneyhackerpro

    Tip 2 years 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 2 years ago

    i did this is my frist hack

    0
    IswitchedI
    IswitchedI

    Reply 3 years ago

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

    0
    IswitchedI
    IswitchedI

    3 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);}}