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.
 
 
 
 
 
Nathan DECHER 5bf5f49f03 added a cancel option to popups (closes #28) 5 years ago
assets added flammable tiles (closes #1) 5 years ago
build added fire and a stub for level 5 5 years ago
levels added flammable tiles (closes #1) 5 years ago
public added help page (closes #15) 5 years ago
src added a cancel option to popups (closes #28) 5 years ago
.gitignore added fire and a stub for level 5 5 years ago
Dockerfile added Dockerfile (closes #27) 5 years ago
LICENSE Initial commit 5 years ago
Makefile added flammable tiles (closes #1) 5 years ago
README.md added Dockerfile (closes #27) 5 years ago
index.js added core Snake code 5 years ago
mergejs.js fixed engine and added level2 5 years ago
package-lock.json added less as a dependency and updated docs 5 years ago
package.json added less as a dependency and updated docs 5 years ago

README.md

Snek

Snek icon, Miia from Mon Musu

A "simple" Snake, done as my final JS class project

Original subject

Dependencies

  • All the POSIX tools, most importantly a POSIX-compliant shell, echo, rm, seq and sed
    • 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

  • Get the Dockerfile
  • docker build it
  • docker run -p80:3000 <whatever you called the container>
  • ideally, put it behind a reverse proxy