Phase 3.8: Save/Load game functionality #26

Open
opened 2026-06-07 22:44:54 -06:00 by ppreeper · 0 comments
Owner

Description

Persist and restore game state. The game state (GameState struct) is serialized to JSON and saved to the server filesystem (or user's browser via localStorage for simple cases).

Tasks

  • Implement SaveGame() — serialize GameState to JSON
  • Implement LoadGame() — deserialize JSON back to GameState
  • Save slot management (up to N slots per session/user)
  • Auto-save after each week
  • UI: save/load screens with slot names and timestamps
  • Error handling for corrupted saves

Depends On

  • Issue #6 (GameState struct with JSON support)

Acceptance Criteria

  • User can save game at any point
  • User can load a previous save and continue playing
  • Auto-save creates a recovery point each week
  • Corrupted save files show a descriptive error
## Description Persist and restore game state. The game state (GameState struct) is serialized to JSON and saved to the server filesystem (or user's browser via localStorage for simple cases). ## Tasks - [ ] Implement `SaveGame()` — serialize GameState to JSON - [ ] Implement `LoadGame()` — deserialize JSON back to GameState - [ ] Save slot management (up to N slots per session/user) - [ ] Auto-save after each week - [ ] UI: save/load screens with slot names and timestamps - [ ] Error handling for corrupted saves ## Depends On - Issue #6 (GameState struct with JSON support) ## Acceptance Criteria - User can save game at any point - User can load a previous save and continue playing - Auto-save creates a recovery point each week - Corrupted save files show a descriptive error
ppreeper added this to the Phase 3 milestone 2026-06-07 22:50:59 -06:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ppreeper/bygfoot#26
No description provided.