diff options
Diffstat (limited to '')
| -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) ---- |
