A "simple" Snake, done as my final JS class project
Go to file
Nathan DECHER 46ac7bbf27 updated help.html 2020-04-17 12:09:20 +02:00
assets added switches and spikes (closes #6) and puzzle 3 (closes #34) 2020-04-14 18:21:07 +02:00
build added fire and a stub for level 5 2020-03-26 19:26:47 +01:00
levels added switches and spikes (closes #6) and puzzle 3 (closes #34) 2020-04-14 18:21:07 +02:00
public updated help.html 2020-04-17 12:09:20 +02:00
src refactored game to separate tile management, game code and render code (closes #39) 2020-04-15 11:39:15 +02:00
.gitignore added built assets 2020-04-15 12:08:21 +02:00
Dockerfile updated Dockerfile 2020-04-15 12:15:02 +02:00
LICENSE Initial commit 2020-03-22 21:54:26 +00:00
Makefile added built assets 2020-04-15 12:08:21 +02:00
README.md updated README.md 2020-04-17 12:08:25 +02:00
api.js added portals (closes #4) and first level of puzzle mode 2020-04-14 14:32:45 +02:00
index.js added leaderboard (closes #29) 2020-04-13 21:58:53 +02:00
init.sql added leaderboard (closes #29) 2020-04-13 21:58:53 +02:00
install.js fixed install script crash 2020-04-15 12:13:34 +02:00
mergejs.js fixed engine and added level2 2020-03-25 18:29:28 +01:00
package-lock.json added leaderboard (closes #29) 2020-04-13 21:58:53 +02:00
package.json added built assets 2020-04-15 12:08:21 +02:00

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