For research and learning purposes only! Do not use to fool others. (It's not fun either)
Introduction#
I have written and documented some cheat logic and methods from the masters.
Usage#
Press "F12" to open the console, select "console" to open the web terminal panel, and copy and paste the command in the terminal.
Cheat Methods#
Auto Jump#
Optimized:
function TrexRunnerBot(){function f(){Runner().onKeyDown(d);setTimeout(function(){Runner().onKeyUp(d)},500)}var b=function(a){return{keyCode:a,preventDefault:function(){}}},c=b(38),d=b(40),e=b(32);Runner().playing||(Runner().onKeyDown(e),setTimeout(function(){Runner().onKeyUp(e)},500));return{conquerTheGame:function(){if(Runner&&Runner().horizon.obstacles[0]){var a=Runner().horizon.obstacles[0];if((!a.typeConfig||"SNACK"!==a.typeConfig.type)&&50!==a.yPos&&a.xPos<=18*Runner().currentSpeed)if(50=== a.yPos)f();else{var b=Runner().horizon.obstacles[1];if(b&&b.xPos-a.xPos<=42*Runner().currentSpeed)Runner().onKeyDown(c),Runner().onKeyUp(c);else Runner().onKeyDown(c)}}}}}var bot=TrexRunnerBot(),botInterval=setInterval(bot.conquerTheGame,2);
Stay Still and Earn Points#
Make the little dinosaur run without the ground moving (stay in place)
Enable:
Runner.instance_.playingIntro = true
Disable:
Record the score upon death
Runner.instance_.playingIntro = false
Speed Boost#
Because running too fast makes it impossible to determine if the little dinosaur has hit something.
Runner.instance_.setSpeed(9999);
Remove "Game Over"#
Delete the code that checks if the little dinosaur has collided.
(Unable to record score)
Runner.instance_.gameOver=function(){}