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.
Codinget
d0a12a119e
|
5 years ago | |
---|---|---|
assets | 5 years ago | |
build | 5 years ago | |
levels | 5 years ago | |
public | 5 years ago | |
src | 5 years ago | |
.gitignore | 5 years ago | |
Dockerfile | 5 years ago | |
LICENSE | 5 years ago | |
Makefile | 5 years ago | |
README.md | 5 years ago | |
index.js | 5 years ago | |
mergejs.js | 5 years ago | |
package-lock.json | 5 years ago | |
package.json | 5 years ago |
README.md
Snek
A "simple" Snake, done as my final JS class project
Features
- 60 FPS 2D animations
- arcade and speedrun 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
,seq
andsed
- Busybox is known to work
- GNU Coreutils are known to work
- On Windows, WSL is known to work
- Imagemagick, with the
convert
tool in the PATH - Make
- Node.js and npm, both in the PATH
- Node.js 10 and 12 are known to work
Running the game (dev)
git clone
this reponpm install
the dependenciesmake
the ressourcesnpm start
the server
Running the game (prod)
- Get the Dockerfile
docker build
itdocker run -it -p80:3000
the container- ideally, put it behind a reverse proxy