summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-11 14:01:49 +0200
committersalmonik <salmonik@tuta.io>2026-07-11 14:01:49 +0200
commit1e57b563280582c9bd1c385d4b44458d66885b8b (patch)
tree54c81a13b73511ff6419f5385e36e4ee3f680311 /src/main.rs
parentCreate AGENTS.md (diff)
downloaddungeon-1e57b563280582c9bd1c385d4b44458d66885b8b.tar.gz
dungeon-1e57b563280582c9bd1c385d4b44458d66885b8b.zip
end game screen, fix occlusion
Diffstat (limited to '')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index a59edcd..e82d939 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -150,7 +150,10 @@ fn main() {
150 150
151 // ---- death check ---- 151 // ---- death check ----
152 if game.state == GameState::GameOver { 152 if game.state == GameState::GameOver {
153 std::process::exit(0); 153 // Minimum 30 frames (~0.5s) before input is accepted.
154 if game.death_frames >= 30 && cur_any {
155 std::process::exit(0);
156 }
154 } 157 }
155 158
156 // ---- win check (placeholder — becomes staircase in Phase 1) ---- 159 // ---- win check (placeholder — becomes staircase in Phase 1) ----