A "simple" Snake, done as my final JS class project back in DUT
https://snek.s.codinget.me
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 years ago | |
|---|---|---|
| assets | 6 years ago | |
| build | 6 years ago | |
| levels | 6 years ago | |
| public | 6 years ago | |
| src | 6 years ago | |
| .gitignore | 6 years ago | |
| Dockerfile | 6 years ago | |
| LICENSE | 6 years ago | |
| Makefile | 6 years ago | |
| README.md | 6 years ago | |
| api.js | 6 years ago | |
| index.js | 6 years ago | |
| init.sql | 6 years ago | |
| install.js | 6 years ago | |
| mergejs.js | 6 years ago | |
| package-lock.json | 6 years ago | |
| package.json | 6 years ago | |
README.md
Snek
A "simple" Snake, done as my final JS class project
Features
- 60 FPS 2D animations
- arcade, speedrun and puzzle game modes
- touchscreen and controller support
- playable at snek.codinget.me
Dev dependencies
- All the POSIX tools, most importantly a POSIX-compliant shell,
echo,rm,seqandsed- Busybox is known to work
- GNU Coreutils are known to work
- On Windows, WSL is known to work
- Imagemagick, with the
converttool in the PATH bc- Make
- Node.js and npm, both in the PATH
- Node.js 10 and 12 are known to work
- node-gyp and python are required for the database
- (if you have already used native modules, you have them)
Prod dependencies (direct)
- Node.js and npm, both in the PATH
- Node.js 10 and 12 are known to work
- node-gyp and python are required for the database
- (if you have already used native modules, you have them)
Prod dependencies (docker)
- Docker
Running the game (dev)
git clonethis reponpm installthe dependencies (this will also build the less and js and initialize the database)npm startthe servermakeevery time you change something
Running the game (prod, docker)
- Get the Dockerfile
docker builditdocker run -it -p80:3000the container- ideally, put it behind a reverse proxy
Running the game (prod, direct)
git clonethis reponpm installthe dependencies (this will also build the less and js and initialize the database)npm startthe server