description
The classic *board game*! You may have played this game many a time on top of a hardwood table in times of boredom, and now you can do it on a digital table!
Just load the package state "game", click the green button and you're ready to go!
Controls:
Up: Numpad 8
Down: Numpad 5
Left: Numpad 4
Right: Numpad 6
Restart: Numpad 3
I've set the controls up in a way where it should be fairly comfortable once you get used to it. If you don't have numpad keys, or you just want to change it to something else, you can change the keybinds for scripting actions in the options menu.
Enjoy!
For developers:
If you wish to use this script in your own package, I recommend using the published node package rather than copying the file.
You can find binaries/installers for node here: https://nodejs.org/en/
This script's module name is @salami-ttp/snake-game
Once you have the binaries installed or already have them, go into your package's Scripts folder and open a command prompt/terminal window there.
You can install the package by typing npm install @salami-ttp/snake-game
You can then use the module in your package scripts like so: require("@salami-ttp/snake-game")
See global.js
for example usage of the module.
Credits
-
27 Jul 19:36Version 1.1
Improved documentation & published as node package @salami-ttp/snake-game.
0 Comments for Snake Game