5 Commits

Author SHA1 Message Date
codinget 0cf5831120 updated help.html 2020-04-17 12:09:20 +02:00
codinget 9ee1443c46 updated README.md 2020-04-17 12:08:25 +02:00
codinget 0fb762e74a updated README.md 2020-04-15 12:39:13 +02:00
codinget 90e6d628dc updated Dockerfile 2020-04-15 12:15:02 +02:00
codinget 5c1a59a012 fixed install script crash 2020-04-15 12:13:34 +02:00
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
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
+11 -1
View File
@@ -7,7 +7,7 @@ A "simple" Snake, done as my final JS class project
## Features
- 60 FPS 2D animations
- arcade and speedrun game modes
- arcade, speedrun and puzzle game modes
- touchscreen and controller support
- 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 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
+1 -1
View File
@@ -4,7 +4,7 @@ const child_process=require('child_process');
// prepare database
console.log('Preparing database');
fs.unlinkSync('db.sqlite');
if(fs.existsSync('db.sqlite')) fs.unlinkSync('db.sqlite');
const db=new DB('db.sqlite');
db.exec(fs.readFileSync('init.sql', 'utf8'));
+1
View File
@@ -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>Portals</em> teleport you to the corresponding portal</li>
<li><em>Keys</em> make <em>Doors</em> disappear</li>
<li><em>Switches</em> enable or disable <em>Spikes</em></li>
</ul>
</article>
</main>