3 changed files with 65 additions and 0 deletions
@ -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 doom.png ./ |
||||
RUN sed -i s/GAME_ARGS/$GAME_ARGS/ index.html |
||||
|
||||
ENTRYPOINT ["/usr/bin/darkhttpd", "/site", "--port", "8000"] |
||||
@ -1,2 +1,10 @@
@@ -1,2 +1,10 @@
|
||||
# docker-carmensandiego |
||||
|
||||
docker image of Where in the world is Carmen SanDiego Deluxe running on js-dos |
||||
|
||||
run the following to build |
||||
`docker build -t docker-carmensandiego --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-carmensandiego/raw/branch/master/winwicsd.zip --build-arg GAME_ARGS=\"CARMEN.EXE\" .` |
||||
|
||||
once you have built the image, run with |
||||
|
||||
`docker run -d -p 8000:8000 docker-carmensandiego` |
||||
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
<html> |
||||
<style type="text/css" media="screen"> |
||||
canvas { |
||||
width: 800px; |
||||
height: 600px; |
||||
} |
||||
</style> |
||||
<head> |
||||
<title>Carmen SanDiego Online</title> |
||||
<script src="js-dos.js"></script> |
||||
</head> |
||||
<body bgcolor="black" 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>Where in the world is Carmen SanDiego</h3> |
||||
<p><b>Carmen Sandiego is a former spy who has reddish-brown hair, |
||||
likes to play tennis, wear a ruby necklace and rides a stylish old convertible, |
||||
but mostly she is a criminal that you need to capture. In the game Where in the |
||||
World is Carmen Sandiego? you become a detective and you walk around the world and hunt criminals. |
||||
But do not expect any big action, like shooting, chases in cars, etc. |
||||
This game is designed especially for children and in entertaining way it teaches geographical |
||||
knowledge and to track down criminals, you have to link all parts together. |
||||
In the beginning you know just what sex is a criminal and you have to start asking questions around the area |
||||
to get more information. You don't get direct answers tho, but only indications and hints where criminal could go |
||||
(eg hotel staff will tell you that he changed money to forints, so you already know that apparently |
||||
he flew to Budapest, Hungary) and you need to follow him/her. |
||||
Although the game has poor graphics, it is really a lot of fun and I highly recommend it for everyone.</b></p> |
||||
</body> |
||||
</html> |
||||
Loading…
Reference in new issue