Skip to content

ukupat/trex-runner-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Chrome Offline page "T-Rex Runner" game bot

TRex

Are you tired of failing like this? Try using this bot to show off to Your friends what "mad skills" you have in T-Rex Runner game.

Try it out

  1. Copy the minified source code,
  2. disconnect from the Internet,
  3. paste the code to the Chrome Dev tools Console and
  4. let the T-Rex run!
function TrexRunnerBot(){function n(){if(Runner&&Runner().horizon.obstacles[0]){var n=Runner().horizon.obstacles[0];e(n)&&o(n)&&r(n)}}function e(n){return 50!==n.yPos}function o(n){return n.xPos<=18*Runner().currentSpeed}function r(n){u(n)?t():c(n)}function u(n){return 75===n.yPos}function t(){Runner().onKeyDown(R),setTimeout(function(){Runner().onKeyUp(R)},500)}function c(n){i(n)?f():Runner().onKeyDown(s)}function i(n){var e=Runner().horizon.obstacles[1];return e&&e.xPos-n.xPos<=42*Runner().currentSpeed}function f(){Runner().onKeyDown(s),Runner().onKeyUp(s)}var s={keyCode:38},R={keyCode:40,preventDefault:function(){}};return{conquerTheGame:n}}var bot=TrexRunnerBot(),botInterval=setInterval(bot.conquerTheGame,2);

License

MIT

About

Chrome Offline page "T-Rex Runner" game bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published