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 0cf5831120 updated help.html 4 years ago
assets added switches and spikes (closes #6) and puzzle 3 (closes #34) 4 years ago
build added fire and a stub for level 5 5 years ago
levels added switches and spikes (closes #6) and puzzle 3 (closes #34) 4 years ago
public updated help.html 4 years ago
src refactored game to separate tile management, game code and render code (closes #39) 4 years ago
.gitignore added built assets 4 years ago
Dockerfile updated Dockerfile 4 years ago
LICENSE Initial commit 5 years ago
Makefile added built assets 4 years ago
README.md updated README.md 4 years ago
api.js added portals (closes #4) and first level of puzzle mode 4 years ago
index.js added leaderboard (closes #29) 4 years ago
init.sql added leaderboard (closes #29) 4 years ago
install.js fixed install script crash 4 years ago
mergejs.js fixed engine and added level2 5 years ago
package-lock.json added leaderboard (closes #29) 4 years ago
package.json added built assets 4 years ago

README.md

Snek

Snek icon, Miia from Mon Musu

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

Original subject

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, 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
  • 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 clone this repo
  • npm install the dependencies (this will also build the less and js and initialize the database)
  • npm start the server
  • make every time you change something

Running the game (prod, docker)

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

Running the game (prod, direct)

  • git clone this repo
  • npm install the dependencies (this will also build the less and js and initialize the database)
  • npm start the server

License

MIT