Compare commits
84 Commits
v2.0.0
..
6b718000c7
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b718000c7 | |||
| 2478f2a8c1 | |||
| 3c7e7669e7 | |||
| 105429a9a3 | |||
| f251b39531 | |||
| 12593a8142 | |||
| 23ea6edfad | |||
| 4b854449a2 | |||
| 50f59433c8 | |||
| f6f489899d | |||
| 93c9fc5ad9 | |||
| 055df91ee7 | |||
| 71c6ee887a | |||
| b6c4a1b6d0 | |||
| d7d4b0ba51 | |||
| a3ad390a41 | |||
| 6e54ae19d5 | |||
| e7731353d7 | |||
| f29211cb81 | |||
| 586abe6db3 | |||
| 9f85e7aab1 | |||
| 99599a3756 | |||
| c2b08cfc9c | |||
| cdc727b1f0 | |||
| b39443df65 | |||
| d0a12a119e | |||
| 42e2520c4f | |||
| 1b2938b807 | |||
| 26dae245e9 | |||
| 5251a4fcb8 | |||
| 73a415d5c6 | |||
| 49d8b15d02 | |||
| ecb9a37e60 | |||
| 51dacea167 | |||
| 0d1087ef7b | |||
| 786b6ca72e | |||
| d9a89f3370 | |||
| 74ba2ffc90 | |||
| 09005f89be | |||
| 4c7ed15dbd | |||
| 87d5d10b25 | |||
| 6fcb603835 | |||
| 6ea0a3487d | |||
| b0ea58df66 | |||
| 9f77fd5262 | |||
| 111fa45bbc | |||
| d7dcf57c2a | |||
| 04032044dc | |||
| 9fb228ca3d | |||
| 7ea6c192c2 | |||
| 6e39eb4098 | |||
| 2954e79d98 | |||
| 2df2f5f992 | |||
| 39e761d334 | |||
| 9db9b742fa | |||
| 683afecc50 | |||
| 03ae8b5367 | |||
| 30061272e8 | |||
| 11c90949fb | |||
| 56bed17a9f | |||
| feb19981b4 | |||
| b688e3c2d2 | |||
| 539d7396a4 | |||
| 25c27e46d0 | |||
| 4b67055fc4 | |||
| 7195133524 | |||
| d4bf35f384 | |||
| a543b11b4d | |||
| f2859e9652 | |||
| f99c8ce6fa | |||
| 1fe1f105bd | |||
| 97eda72c32 | |||
| c7352e0e2a | |||
| c9c9e20fdb | |||
| 5d156a7902 | |||
| 6ddcc39c27 | |||
| e70f1a73dc | |||
| 0943889349 | |||
| 373885732a | |||
| dd30640eef | |||
| faead71ba7 | |||
| b38935bbe1 | |||
| 282c70e894 | |||
| c3219c1163 |
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
FROM alpine:3.11.5
|
FROM alpine:3.11.5
|
||||||
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
|
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
|
||||||
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, speedrun and puzzle game modes
|
- arcade and speedrun 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)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ const child_process=require('child_process');
|
|||||||
|
|
||||||
// prepare database
|
// prepare database
|
||||||
console.log('Preparing database');
|
console.log('Preparing database');
|
||||||
if(fs.existsSync('db.sqlite')) fs.unlinkSync('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'));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user