summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-23 17:04:13 -0500
committerChristian Cleberg <[email protected]>2026-03-23 17:04:13 -0500
commit595fb6e0c54d58b915d3cf5946a44a1eb67b5d5f (patch)
treeeca22ef3c3c517d2dde227077d1770d3a2ef8a24 /index.html
parent31eb4911529f06af43b6d06ee3eaf9f995df7a23 (diff)
downloadmicro-roguelike-595fb6e0c54d58b915d3cf5946a44a1eb67b5d5f.tar.gz
micro-roguelike-595fb6e0c54d58b915d3cf5946a44a1eb67b5d5f.tar.bz2
micro-roguelike-595fb6e0c54d58b915d3cf5946a44a1eb67b5d5f.zip
add start screen, single-view state system, and unified death node
Diffstat (limited to 'index.html')
-rw-r--r--index.html49
1 files changed, 28 insertions, 21 deletions
diff --git a/index.html b/index.html
index e4d2b28..277a3a1 100644
--- a/index.html
+++ b/index.html
@@ -4,8 +4,27 @@
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Micro Roguelike</title>
-<h1>Micro Roguelike</h1>
-<p>Choose a path. Learn the dungeon. Die often.</p>
+<style>
+section{display:none;min-height:100vh}
+#start:target,
+#gate:target,
+#bones:target,
+#beast:target,
+#hall:target,
+#pit:target,
+#idol:target,
+#crack:target,
+#vault:target,
+#death:target,
+#win:target{display:block}
+body:not(:target) #start{display:block}
+</style>
+
+<section id="start">
+ <h1>Micro Roguelike</h1>
+ <p>Choose a path. Learn the dungeon. Die often.</p>
+ <p><a href="#gate">Start</a></p>
+</section>
<section id="gate">
<h2>Gate</h2>
@@ -29,8 +48,7 @@
<section id="beast">
<h2>Beast</h2>
<p>A sleeping beast opens one eye.</p>
- <p><strong>Eaten.</strong></p>
- <p><a href="#gate">Again</a></p>
+ <p><a href="#death">Continue</a></p>
</section>
<section id="hall">
@@ -47,7 +65,7 @@
<h2>Pit</h2>
<p>A black pit cuts the room in two. Too wide. Dark below.</p>
<p>
- <a href="#fell">Jump</a><br>
+ <a href="#death">Jump</a><br>
<a href="#vault">Edge along wall</a>
</p>
</section>
@@ -56,7 +74,7 @@
<h2>Idol</h2>
<p>A gold idol watches. Coins glitter at its feet. Its head is bowed.</p>
<p>
- <a href="#cursed">Take gold</a><br>
+ <a href="#death">Take gold</a><br>
<a href="#crack">Bow</a><br>
<a href="#hall">Back</a>
</p>
@@ -75,27 +93,15 @@
<h2>Vault</h2>
<p>A crown on stone. A small key beside it.</p>
<p>
- <a href="#wrongking">Take crown</a><br>
+ <a href="#death">Take crown</a><br>
<a href="#win">Take key</a><br>
<a href="#gate">Leave</a>
</p>
</section>
-<section id="fell">
- <h2>Death</h2>
- <p><strong>Fell.</strong></p>
- <p><a href="#gate">Again</a></p>
-</section>
-
-<section id="cursed">
- <h2>Death</h2>
- <p><strong>Cursed.</strong></p>
- <p><a href="#gate">Again</a></p>
-</section>
-
-<section id="wrongking">
+<section id="death">
<h2>Death</h2>
- <p><strong>Wrong king.</strong></p>
+ <p>You died.</p>
<p><a href="#gate">Again</a></p>
</section>
@@ -105,4 +111,5 @@
<p>The outer gate opens. Dawn.</p>
<p><a href="#gate">Again</a></p>
</section>
+
</html>