first to fist

This commit is contained in:
2022-02-06 04:08:01 +00:00
parent 83a0f978a5
commit 028c2f0f1c
3 changed files with 62 additions and 1 deletions
+17
View File
@@ -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"]
+8 -1
View File
@@ -1,3 +1,10 @@
# docker-shadowpresident # docker-shadowpresident
docker image of Shadow President running on js-dos docker image of Shadow President running on js-dos
run the following to build
`docker build -t docker-shadowpresident --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-shadowpresident/raw/branch/master/SHADOW.zip --build-arg GAME_ARGS=\"SHADOW.EXE\" .`
once you have built the image, run with
`docker run -d -p 8000:8000 docker-shadowpresident`
+37
View File
@@ -0,0 +1,37 @@
<html>
<style type="text/css" media="screen">
canvas {
width: 800px;
height: 600px;
}
</style>
<head>
<title>Shadow President 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>Shadow President</h3>
<p><a href="https://dl.myabandonware.com/f/4ca/Shadow-President_Manual_DOS_EN.pdf">Game Manual</a></p>
<p><b>The game put the player in the role of the President of the United States in a situation loosely based on the Cold War and the early 1990s.
Using a timeline that starts during the end of the Ethiopia-Somalia war, players can prepare Kuwait to be invaded by Iraq during Operation
Desert Shield. Being popular enough to be re-elected is a vital component of the game (re-elections can be disabled, greatly reducing the effect
of popularity). Managing the budget of the United States, sending aid to foreign countries, dealing with diplomatic crises, and even fighting wars
are a largely unavoidable aspect of the game. The player starts the game with seven advisors, which makes the game a bit less confusing.
During every American election year, players are not allowed to access their virtual screen starting at midnight on election night so that a panel
of bureaucrats can analyze their progress. If their popularity and efficiency is good enough, the player is authorized to use the terminal for four
more years. Not getting re-elected automatically means &quot;game over.&quot;</b></p>
</body>
</html>