Unlimited Jump Hack

take over any game with unlimited jumps!

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Unlimited Jump Hack
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  take over any game with unlimited jumps!
// @author       noob 292
// @match        *://*/*
// @icon         https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.freeiconspng.com%2Fimages%2Fbinary-icon&psig=AOvVaw2wctA0HhLYiYq0gf4KMTtN&ust=1630608966642000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCJivvve53vICFQAAAAAdAAAAABAE
// @grant        none
// ==/UserScript==

(function(Phaser) {

const Game = function() {};

Game.prototype = {
    jump() {
      this.player.body.velocity.y = -450;
    },
    checkDoubleJump() {
      if (this.jumpCount < this.jumpMax) {
        this.jump();
        this.jumpCount++;
      }
    },
    create() {
      this.jumpMax = 999999999;
      this.jumpCount = 0;
      this.spacebar = this.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);
      this.spacebar.onDown(this.checkDoubleJump, this);
    }
  };
})(window.Phaser);