From 4189b8c908301309f048e683029d3da6d4e1b506 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Sat, 9 May 2026 11:05:28 +0200 Subject: [PATCH] chore(todo): update GAL-56 status to Done, check off all AC --- TODO/GAL-50.md | 2 +- TODO/GAL-56.md | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/TODO/GAL-50.md b/TODO/GAL-50.md index c819aca..047964f 100644 --- a/TODO/GAL-50.md +++ b/TODO/GAL-50.md @@ -17,4 +17,4 @@ Score, lives, stage, high-score, start menu, and restart UI. - [x] [GAL-53](GAL-53.md) — Implement a High Score system (saving/loading). - [x] [GAL-54](GAL-54.md) — Create a Start Menu state with a "Start Game" button. - [ ] [GAL-55](GAL-55.md) — Add a "Press R to Restart" message to the `GameOver` screen and implement restart logic. -- [ ] [GAL-56](GAL-56.md) — Score resource does not reset on game restart. +- [x] [GAL-56](GAL-56.md) — Score resource does not reset on game restart. diff --git a/TODO/GAL-56.md b/TODO/GAL-56.md index 4d828e8..159bd7c 100644 --- a/TODO/GAL-56.md +++ b/TODO/GAL-56.md @@ -1,7 +1,7 @@ --- id: GAL-56 title: Score resource does not reset on game restart -status: Todo +status: Done parent: GAL-50 labels: [bug, ui] --- @@ -14,11 +14,11 @@ This means on subsequent games after the first, `Score` retains the previous gam ## Acceptance criteria -- [ ] Restarting from `GameOver` resets `Score.value` to 0. -- [ ] Restarting resets `PlayerLives.count` to starting value. -- [ ] Restarting resets `CurrentStage.number` to 1. -- [ ] Restarting resets `FormationState` to default. -- [ ] Restarting despawns all `Enemy`, `Bullet`, `EnemyBullet`, `Explosion`, and `TractorBeam` entities. +- [x] Restarting from `GameOver` resets `Score.value` to 0. +- [x] Restarting resets `PlayerLives.count` to starting value. +- [x] Restarting resets `CurrentStage.number` to 1. +- [x] Restarting resets `FormationState` to default. +- [x] Restarting despawns all `Enemy`, `Bullet`, `EnemyBullet`, `Explosion`, and `TractorBeam` entities. ## Code context @@ -37,6 +37,11 @@ pub fn restart_game_system( No resource reset logic exists. The `cleanup_game_entities` system runs on `OnExit(Playing)` but does not reset resources. +## Comments + +- 2026-05-09 — Status set to In Progress. +- 2026-05-09 — Branch `opencode/clever-wolf`, commit 933d23c — Score, lives, stage, and formation reset on restart; explosions despawned on cleanup + ## Integration test hints - Build `App`, transition to `Playing`, set `Score = 5000`, transition to `GameOver`, restart, assert `Score.value == 0`.