summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2026-07-25 14:38:15 -0700
committerRose Hogenson <rosehogenson@posteo.net>2026-07-25 14:38:15 -0700
commitd61d78acf999527bbc24798ac62a67b7eb17874a (patch)
tree280f7bf532b29886fb58a89bae1a29b9158d44a6 /templates
parent9cb28a5475ca971e404e10e79e5c7d03da9ad91e (diff)
downloadroseh.moe-d61d78acf999527bbc24798ac62a67b7eb17874a.tar.zst
Consolidate JS and sprites for fewer requests
Diffstat (limited to 'templates')
-rw-r--r--templates/games/rms.html.template16
1 files changed, 3 insertions, 13 deletions
diff --git a/templates/games/rms.html.template b/templates/games/rms.html.template
index 7da89ec..ba00824 100644
--- a/templates/games/rms.html.template
+++ b/templates/games/rms.html.template
@@ -1,19 +1,9 @@
{{define "head"}}
- <title>Stallman shooter</title>
- <link rel="modulepreload" href="/static/games/rms/constants.js">
- <link rel="modulepreload" href="/static/games/rms/gates.js">
- <link rel="modulepreload" href="/static/games/rms/player.js">
- <link rel="modulepreload" href="/static/games/rms/state.js">
- <script type="module" src="/static/games/rms/main.js"></script>
+ <title>RMS shooter</title>
+ <script src="/static/games/rms/rms.js" defer></script>
{{end}}
-<img id="introduction" src="/static/games/rms/assets/introduction.webp" hidden>
-<img id="loss" src="/static/games/rms/assets/loss.webp" hidden>
-<img id="victory" src="/static/games/rms/assets/victory.webp" hidden>
-<img id="stallman" src="/static/games/rms/assets/stallman.webp" hidden>
-<img id="gates" src="/static/games/rms/assets/gates.webp" hidden>
-<img id="binary-blob" src="/static/games/rms/assets/binary_blob.webp" hidden>
-<img id="player-pepp" src="/static/games/rms/assets/player_pepp.webp" hidden>
+<img id="sprite-sheet" src="/static/games/rms/sprite-sheet.webp" hidden>
<section>
<canvas id="canvas" width="800" height="600"></canvas>