Last active
June 13, 2023 04:06
-
-
Save BuddyBob/28cfa0a0722e06b34ca7617af3b38245 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Just a small fun script. Please make changes! **Note all scripts here do not deal with server side variables | |
//Just put these in your console | |
//Press z to zoom out, x to zoom in | |
var gsc = .6; //global scale | |
function updateGsc() { | |
console.log('Current gsc:', gsc); | |
window.gsc = gsc; | |
} | |
document.addEventListener('keydown', function(event) { | |
if (event.key === 'z') { | |
gsc -= 0.1; | |
updateGsc(); | |
} else if (event.key === 'x') { | |
gsc += 0.1; | |
updateGsc(); | |
} | |
}); | |
updateGsc(); | |
snake.xx = 24236; snake.yy = 24225 //position of snake (slither resets it back so if anyone has any ideas feel free to adjust | |
snake.sct = snake.sct; //visually make wider + longer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment