EnyinLiu 发表于 2021-11-21 18:08:56

Google 恐龙小游戏作弊

新手上路,希望大家支持

#无敌
Runner.instance_.gameOver=function(){}
————————————————————————————
#设速(<var> 写数字)
Runner.instance_.setSpeed(<var>)
————————————————————————————
#跳跃高度(<var> 写数字)
Runner.instance_.tRex.setJumpVelocity(<var>)
————————————————————————————
#自动跳跃
function TrexRunnerBot() {
const makeKeyArgs = (keyCode) => {
    const preventDefault = () => void 0;
    return {keyCode, preventDefault};
};
const upKeyArgs = makeKeyArgs(38);
const downKeyArgs = makeKeyArgs(40);
const startArgs = makeKeyArgs(32);
if (!Runner().playing) {
    Runner().onKeyDown(startArgs);
    setTimeout(() => {
      Runner().onKeyUp(startArgs);
    }, 500);
}
function conquerTheGame() {
    if (!Runner || !Runner().horizon.obstacles) return;
    const obstacle = Runner().horizon.obstacles;
    if (obstacle.typeConfig && obstacle.typeConfig.type === 'SNACK') return;
    if (needsToTackle(obstacle) && closeEnoughToTackle(obstacle)) tackle(obstacle);
}
function needsToTackle(obstacle) {
    return obstacle.yPos !== 50;
}
function closeEnoughToTackle(obstacle) {
    return obstacle.xPos <= Runner().currentSpeed * 18;
}
function tackle(obstacle) {
    if (isDuckable(obstacle)) {
      duck();
    } else {
      jumpOver(obstacle);
    }
}
function isDuckable(obstacle) {
    return obstacle.yPos === 50;
}
function duck() {
    Runner().onKeyDown(downKeyArgs);
    setTimeout(() => {
      Runner().onKeyUp(downKeyArgs);
    }, 500);
}
function jumpOver(obstacle) {
    if (isNextObstacleCloseTo(obstacle))
      jumpFast();
    else
      Runner().onKeyDown(upKeyArgs);
}
function isNextObstacleCloseTo(currentObstacle) {
    const nextObstacle = Runner().horizon.obstacles;

    return nextObstacle && nextObstacle.xPos - currentObstacle.xPos <= Runner().currentSpeed * 42;
}
function jumpFast() {
    Runner().onKeyDown(upKeyArgs);
    Runner().onKeyUp(upKeyArgs);
}
return {conquerTheGame: conquerTheGame};
}
let bot = TrexRunnerBot();
let botInterval = setInterval(bot.conquerTheGame, 2);

EnyinLiu 发表于 2021-11-21 18:10:10

使用F12 打开控制台操作

EnyinLiu 发表于 2021-11-21 18:12:11


图片

EnyinLiu 发表于 2021-11-21 18:16:16

200支持发低伤害Bat,Vbs病毒
500支持指定
页: [1]
查看完整版本: Google 恐龙小游戏作弊