Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
10a7945df6 |
@ -1 +0,0 @@
|
|||||||
node_modules
|
|
@ -1,8 +0,0 @@
|
|||||||
FROM node:18.2.0
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY ["package.json", "package-lock.json*", "./"]
|
|
||||||
RUN npm install
|
|
||||||
COPY . .
|
|
||||||
CMD [ "node", "index.js" ]
|
|
@ -15,3 +15,6 @@ It's as simple as:
|
|||||||
npm install
|
npm install
|
||||||
npm run start
|
npm run start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Play online
|
||||||
|
[on my website](https://simponic.xyz/bbiy/)
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
prod:
|
|
||||||
build: ./
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
expose:
|
|
||||||
- 3000
|
|
2
src/bootstrap.js
vendored
2
src/bootstrap.js
vendored
@ -106,7 +106,7 @@ game.bootstrap = (() => {
|
|||||||
|
|
||||||
const loadLevels = function() {
|
const loadLevels = function() {
|
||||||
game.levels = [];
|
game.levels = [];
|
||||||
fetch('levels')
|
fetch('/levels')
|
||||||
.then((r) => r.json())
|
.then((r) => r.json())
|
||||||
.then((r) => game.levels = r);
|
.then((r) => game.levels = r);
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ game.startLoop = () => {
|
|||||||
game.lastTimeStamp = performance.now();
|
game.lastTimeStamp = performance.now();
|
||||||
game.assets.music.play();
|
game.assets.music.play();
|
||||||
if (game.assets.music.paused) {
|
if (game.assets.music.paused) {
|
||||||
alert("Failed to start background music; please allow autoplay in your browser settings and refresh.");
|
alert("Failed to start background music; please allow autoplay in your browser settings.");
|
||||||
}
|
}
|
||||||
requestAnimationFrame(game.loop);
|
requestAnimationFrame(game.loop);
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: Lucida Sans Typewriter,Lucida Console,monaco,Bitstream Vera Sans Mono,monospace;
|
font-family: Lucida Sans Typewriter,Lucida Console,monaco,Bitstream Vera Sans Mono,monospace;
|
||||||
background-image: url("/bbiy/assets/image/background.gif");
|
background-image: url("/assets/image/background.gif");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
image-rendering: pixelated;
|
image-rendering: pixelated;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user