Browse Source

fist commit

master
crappyrules 4 years ago
parent
commit
40d0868b64
  1. 17
      Dockerfile
  2. BIN
      bg.jpg
  3. 29
      index.html
  4. BIN
      number-munchers.zip

17
Dockerfile

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
FROM alpine:latest
ARG GAME_URL
ARG GAME_ARGS
WORKDIR site
RUN wget https://js-dos.com/6.22/current/js-dos.js && \
wget https://js-dos.com/6.22/current/wdosbox.js && \
wget https://js-dos.com/6.22/current/wdosbox.wasm.js && \
wget -O game.zip "$GAME_URL"
RUN apk add darkhttpd
COPY index.html bg.jpg ./
RUN sed -i s/GAME_ARGS/$GAME_ARGS/ index.html
ENTRYPOINT ["/usr/bin/darkhttpd", "/site", "--port", "8000"]

BIN
bg.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 KiB

29
index.html

@ -0,0 +1,29 @@ @@ -0,0 +1,29 @@
<html>
<style type="text/css" media="screen">
canvas {
width: 800px;
height: 600px;
}
</style>
<head>
<title>Number Munchers Online</title>
<script src="js-dos.js"></script>
</head>
<body background="bg.jpg" text="white">
<canvas id="jsdos" width="800" height="600" ></canvas>
<script>
Dos(document.getElementById("jsdos"), {
}).ready((fs, main) => {
fs.extract("game.zip").then(() => {
main(["-c", GAME_ARGS])
});
});
</script>
<br><br><br><br><br>
<center><form>
<input type="button" value="Go back!" onclick="history.back()">
</form></center>
<h3>Number Munchers</h3>
<p>Learn basic math skills with Number Munchers. Keep your Muncher away from the Troggles by munching on multiples, factors, prime numbers, equalities, and inequalities. If you can stay away from the Troggles and earn enough points, you'll be part of the Muncher Hall of Fame.</p>
</body>
</html>

BIN
number-munchers.zip

Binary file not shown.
Loading…
Cancel
Save