Upload files to ''
This commit is contained in:
+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"]
|
||||
@@ -1,3 +1,10 @@
|
||||
# docker-wordmunchers
|
||||
|
||||
docker image of word munchers running on js-dos
|
||||
|
||||
run the following to build
|
||||
`docker build -t docker-numbermunchers --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-wordmunchers/raw/branch/master/wordmunchers.zip --build-arg GAME_ARGS=\"WM.EXE\" .`
|
||||
|
||||
once you have built the image, run with
|
||||
|
||||
`docker run -d -p 8000:8000 docker-wordmunchers`
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
<html>
|
||||
<style type="text/css" media="screen">
|
||||
canvas {
|
||||
width: 800px;
|
||||
height: 600px;
|
||||
}
|
||||
</style>
|
||||
<head>
|
||||
<title>Word 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>Word Munchers</h3>
|
||||
<p>Here is the video game “Word Munchers”! Released in 1990 on DOS, it's still available and playable with some tinkering. It's an action and educational game, set in a reading / writing theme and it was released on Apple II as well.</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user