chore(todo): update GAL-56 status to Done, check off all AC
This commit is contained in:
parent
933d23cc35
commit
4189b8c908
2 changed files with 12 additions and 7 deletions
|
|
@ -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-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.
|
- [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-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.
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
id: GAL-56
|
id: GAL-56
|
||||||
title: Score resource does not reset on game restart
|
title: Score resource does not reset on game restart
|
||||||
status: Todo
|
status: Done
|
||||||
parent: GAL-50
|
parent: GAL-50
|
||||||
labels: [bug, ui]
|
labels: [bug, ui]
|
||||||
---
|
---
|
||||||
|
|
@ -14,11 +14,11 @@ This means on subsequent games after the first, `Score` retains the previous gam
|
||||||
|
|
||||||
## Acceptance criteria
|
## Acceptance criteria
|
||||||
|
|
||||||
- [ ] Restarting from `GameOver` resets `Score.value` to 0.
|
- [x] Restarting from `GameOver` resets `Score.value` to 0.
|
||||||
- [ ] Restarting resets `PlayerLives.count` to starting value.
|
- [x] Restarting resets `PlayerLives.count` to starting value.
|
||||||
- [ ] Restarting resets `CurrentStage.number` to 1.
|
- [x] Restarting resets `CurrentStage.number` to 1.
|
||||||
- [ ] Restarting resets `FormationState` to default.
|
- [x] Restarting resets `FormationState` to default.
|
||||||
- [ ] Restarting despawns all `Enemy`, `Bullet`, `EnemyBullet`, `Explosion`, and `TractorBeam` entities.
|
- [x] Restarting despawns all `Enemy`, `Bullet`, `EnemyBullet`, `Explosion`, and `TractorBeam` entities.
|
||||||
|
|
||||||
## Code context
|
## 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.
|
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
|
## Integration test hints
|
||||||
|
|
||||||
- Build `App`, transition to `Playing`, set `Score = 5000`, transition to `GameOver`, restart, assert `Score.value == 0`.
|
- Build `App`, transition to `Playing`, set `Score = 5000`, transition to `GameOver`, restart, assert `Score.value == 0`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue