Persist games across reloads and announce new releases

- Autosave every five seconds while playing, plus on pagehide and when
  the tab is hidden. On load, a saved game resumes immediately (same
  speed and camera) instead of waiting behind the title screen.
- The build turns this version's CHANGELOG section into release notes:
  baked into the page for a one-time "What's new" card for returning
  players, and published as /version.json.
- Open games poll /version.json every 10 minutes and when the tab comes
  back into view; if a newer release is out, a banner offers to save
  and reload.
- "Start a new network" moves into the help screen, behind a confirm.
This commit is contained in:
Frederic Jung 2026-10-23 11:42:28 +02:00
parent b52d20e536
commit e082d6fc60
No known key found for this signature in database
9 changed files with 145 additions and 9 deletions

View file

@ -59,6 +59,8 @@ Only published releases reach [seriesoftub.es](https://seriesoftub.es). Pushes t
`main` run CI and nothing else.
1. Bump `version` in `package.json` (semver) and add a `CHANGELOG.md` entry.
Write the bullets for players: the build turns that section into the in-game
"What's new" card and into `/version.json`, which open games poll to offer a reload.
2. Merge to `main`.
3. Publish a GitHub release tagged `v<version>`, e.g. `gh release create v1.1.0 --generate-notes`.