Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Object.keys(window).filter(k => window[k] && window[k].game && k.indexOf("_") === 0).map(w => window[w].game).forEach(game => {
- // ________ ________ __ __ __ __
- // /_ __/ /_ ___ / ____/ /_ ____ _____/ / / / / /___ ______/ /_____ _____
- // / / / __ \/ _ \ / / / __ \/ __ `/ __ / / /_/ / __ `/ ___/ //_/ _ \/ ___/
- // / / / / / / __/ / /___/ / / / /_/ / /_/ / / __ / /_/ / /__/ ,< / __/ /
- ///_/ /_/ /_/\___/ \____/_/ /_/\__,_/\__,_/ /_/ /_/\__,_/\___/_/|_|\___/_/
- //
- // "Mario is for fags" - My dad at Nintendo
- //
- // Arrow Keys: Fly
- // X: God Mode (Will desync you at win)
- // T: Teleport to end (Desync)
- plname = "YOUR NAME HERE!!!";
- plpid = game.players.filter(item => item.name == plname)[0]["id"];
- function isNamepl(element){return element["name"].toLowerCase() == plname.toLowerCase();}
- window.addEventListener("keydown", function (event) {
- if (event.defaultPrevented) {
- return; // Do nothing if the event was already processed
- }
- idx = game.players.findIndex(isNamepl);
- gtplyr = game.getPlayer(idx);
- gtplyr["fallSpeed"] = 0;
- switch (event.key) {
- case "ArrowDown":
- gtplyr["pos"]["y"] += -2;
- break;
- case "ArrowUp":
- gtplyr["pos"]["y"] += 2;
- break;
- case "ArrowLeft":
- gtplyr["pos"]["x"] += -2;
- gtplyr["pos"]["y"] += 1;
- break;
- case "ArrowRight":
- gtplyr["pos"]["x"] += 2;
- gtplyr["pos"]["y"] += 1;
- break;
- case "x":
- gtplyr.star();
- gtplyr["starTimer"] = 9999;
- gtplyr["power"] = 2;
- game.lives = 9999;
- break;
- case "t":
- gtplyr["level"] = 3;
- gtplyr["pos"]["x"] = 150;
- default:
- return;
- }
- event.preventDefault();
- }, true);
- });
Add Comment
Please, Sign In to add comment