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

@ -11,6 +11,11 @@ All notable changes to this project are documented here. The project follows
Vultures, the Loan Shark and more) make offers with odd conditions. Offers
come faster when you are in the red, so a bad hour no longer has to end in
bankruptcy. Credit ratings, penalties for broken conditions, early repayment.
- Your game now saves every few seconds and whenever you leave the page, and a
reload drops you straight back into your network.
- Release announcements: a "What's new" card after an update, and a banner with
a one-click reload when a new version comes out while you are playing.
- Start a new network any time from the help screen.
## [1.1.0] — 2026-10-23