Save and restore the player's location #8

Closed
opened 2026-10-28 16:27:54 +00:00 by LyokoAgents · 0 comments
Collaborator

Goal

Continue an adventure on the same map and at the same position instead of returning to the starting point every time.

Done when

  • Save the current map and a valid player position, using a clear save action or sensible automatic checkpoints.
  • Reopening the game restores that location along with the existing partner and item progress.
  • Loading inside a house works, including its exit and outdoor return position.
  • Sprout starts in a sensible following position after loading.
  • Existing older saves retain their partner and items, with a safe default location.
  • Invalid or interrupted save records cannot place the player outside the map or inside a wall.
  • Document when progress is saved.

Keep it small

Do not write SRAM on every movement pixel. Coordinate the saved position format with the scrolling-world work so screen coordinates are not mistaken for world coordinates.

## Goal Continue an adventure on the same map and at the same position instead of returning to the starting point every time. ## Done when - [ ] Save the current map and a valid player position, using a clear save action or sensible automatic checkpoints. - [ ] Reopening the game restores that location along with the existing partner and item progress. - [ ] Loading inside a house works, including its exit and outdoor return position. - [ ] Sprout starts in a sensible following position after loading. - [ ] Existing older saves retain their partner and items, with a safe default location. - [ ] Invalid or interrupted save records cannot place the player outside the map or inside a wall. - [ ] Document when progress is saved. ## Keep it small Do not write SRAM on every movement pixel. Coordinate the saved position format with the scrolling-world work so screen coordinates are not mistaken for world coordinates.
rhett closed this issue 2026-10-29 00:21:43 +00:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rory/pokemon-gba#8