僅供研究學習使用!請勿拿來愚弄他人。(也沒意思)
序#
自己寫和記錄了一些大佬的作弊邏輯和方法。
使用#
按下 "F12" 開啟控制台,選擇 "console" 開啟網頁終端面板,在終端複製貼上指令
作弊方法#
自動跳躍#
已優化:
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);
不動賺分數#
就是讓小恐龍跑,地面不跟著動了(原地踏步)
啟用:
Runner.instance_.playingIntro = true
關閉:
死亡記錄分數
Runner.instance_.playingIntro = false
加速#
因為瘋狂飛奔使得無法判定小恐龍是不是撞到東西上了。
Runner.instance_.setSpeed(9999);
刪除 "遊戲結束"#
刪掉計算小恐龍是否撞上去的程式碼
(無法記錄分數)
Runner.instance_.gameOver=function(){}