Skip to content

Instantly share code, notes, and snippets.

@BuddyBob
Last active June 13, 2023 04:06
Show Gist options
  • Save BuddyBob/28cfa0a0722e06b34ca7617af3b38245 to your computer and use it in GitHub Desktop.
Save BuddyBob/28cfa0a0722e06b34ca7617af3b38245 to your computer and use it in GitHub Desktop.
//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