egres.io hax

movement using wasd teleport

目前为 2017-08-31 提交的版本。查看 最新版本

// ==UserScript==
// @name         egres.io hax
// @namespace    http://egres.io/
// @version      1.0
// @description  movement using wasd teleport
// @author       Meatman2tasty
// @match        http://egres.io/
// @grant        none
// ==/UserScript==


document.addEventListener("keydown", function(a) { // press 'w' to go to top y
    if (a.keyCode == 87) {
        CplayerY = 60;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 's' to go to bottom y
    if (a.keyCode == 83) {
        CplayerY = 500;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 'space' to go to middle x
    if (a.keyCode == 32) {
        CplayerX = 460;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 'a' to go to left x
    if (a.keyCode == 65) {
        CplayerX = 60;
    }
}, false);

document.addEventListener("keydown", function(a) { // press 'd' to go to right x
    if (a.keyCode == 68) {
        CplayerX = 830;
    }
}, false);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址