Compare commits

..

5 Commits

  1. 2
      Dockerfile
  2. 12
      README.md
  3. 2
      install.js
  4. 1
      public/help.html

@ -1,3 +1,3 @@
FROM alpine:3.11.5 FROM alpine:3.11.5
RUN apk add --no-cache nodejs npm git imagemagick make python3 python2 alpine-sdk bc && npm i -g node-gyp && git clone https://gitdab.com/Codinget/Snek /snek && cd /snek && npm i --unsafe-perm && make clean && apk del bc git make imagemagick python2 python3 alpine-sdk && printf '#!/bin/sh\ncd /snek\nnpm start\n' > start.sh && chmod +x start.sh RUN apk add --no-cache nodejs npm git python3 python2 alpine-sdk && npm i -g node-gyp && git clone https://gitdab.com/Codinget/Snek /snek && cd /snek && npm i --unsafe-perm && apk del git python2 python3 alpine-sdk && printf '#!/bin/sh\ncd /snek\nnpm start\n' > start.sh && chmod +x start.sh
CMD /snek/start.sh CMD /snek/start.sh

@ -7,7 +7,7 @@ A "simple" Snake, done as my final JS class project
## Features ## Features
- 60 FPS 2D animations - 60 FPS 2D animations
- arcade and speedrun game modes - arcade, speedrun and puzzle game modes
- touchscreen and controller support - touchscreen and controller support
- playable at [snek.codinget.me](https://snek.codinget.me) - playable at [snek.codinget.me](https://snek.codinget.me)
@ -22,6 +22,16 @@ A "simple" Snake, done as my final JS class project
- Node.js and npm, both in the PATH - Node.js and npm, both in the PATH
- Node.js 10 and 12 are known to work - Node.js 10 and 12 are known to work
- node-gyp and python are required for the database - 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) ## Running the game (dev)
- `git clone` this repo - `git clone` this repo

@ -4,7 +4,7 @@ const child_process=require('child_process');
// prepare database // prepare database
console.log('Preparing database'); console.log('Preparing database');
fs.unlinkSync('db.sqlite'); if(fs.existsSync('db.sqlite')) fs.unlinkSync('db.sqlite');
const db=new DB('db.sqlite'); const db=new DB('db.sqlite');
db.exec(fs.readFileSync('init.sql', 'utf8')); db.exec(fs.readFileSync('init.sql', 'utf8'));

@ -76,6 +76,7 @@
<li><em>Decaying fruits</em> give you 5 points and sometimes spawn in arcade mode, but they also decay after 2 seconds and disappear</li> <li><em>Decaying fruits</em> give you 5 points and sometimes spawn in arcade mode, but they also decay after 2 seconds and disappear</li>
<li><em>Portals</em> teleport you to the corresponding portal</li> <li><em>Portals</em> teleport you to the corresponding portal</li>
<li><em>Keys</em> make <em>Doors</em> disappear</li> <li><em>Keys</em> make <em>Doors</em> disappear</li>
<li><em>Switches</em> enable or disable <em>Spikes</em></li>
</ul> </ul>
</article> </article>
</main> </main>

Loading…
Cancel
Save