amlkiller's studio

Google dino patches

字数统计: 350阅读时长: 1 min
2021/04/26

仅用于研究学习使用!请勿拿来愚弄他人。(也没意思)

自己写和记录了一些大佬的作弊逻辑和方法。

使用

按“F12”打开控制台,选择“console”打开网页终端面板,在终端复制粘贴指令

作弊方法

自动跳跃

已优化:

1
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);

不动赚分数

就是让小恐龙跑,地面不跟着动了(原地踏步)
启用:

1
Runner.instance_.playingIntro = true 

关闭:
死亡记录分数

1
Runner.instance_.playingIntro = false

加速

因为疯狂飞奔使得无法判定小恐龙是不是撞到东西上了。

1
Runner.instance_.setSpeed(9999);

删除“游戏结束”

删掉计算小恐龙是否撞上去的代码
(无法记录分数)

1
Runner.instance_.gameOver=function(){}
CATALOG
  1. 1.
  • 使用
  • 作弊方法
    1. 自动跳跃
    2. 不动赚分数
    3. 加速
    4. 删除“游戏结束”