diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-11 14:01:49 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-11 14:01:49 +0200 |
| commit | 1e57b563280582c9bd1c385d4b44458d66885b8b (patch) | |
| tree | 54c81a13b73511ff6419f5385e36e4ee3f680311 /src/main.rs | |
| parent | Create AGENTS.md (diff) | |
| download | dungeon-1e57b563280582c9bd1c385d4b44458d66885b8b.tar.gz dungeon-1e57b563280582c9bd1c385d4b44458d66885b8b.zip | |
end game screen, fix occlusion
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
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) ---- |
