feat(web): use the shared high-score service
Keep browser settings and the existing local save fallback, but route the browser high-score table through the same-origin service when it is available. The WASM storage bridge now accepts fetched score JSON and queues one validated submission at a time. The JavaScript plugin fetches the canonical table, submits accepted name-entry scores, ignores stale responses, retries failures, and feeds successful responses back into the running game. Update the web and project documentation to describe the optional shared leaderboard and regenerate the tracked browser artifact. A missing service continues to leave the local table usable; the service documentation records that anonymous client scores are intentionally not tamper-resistant. Test Plan: - `just test` -- passed (3 service tests and 137 game tests) - `just clippy` -- passed - `just web-build` -- passed - `cargo +nightly fmt -- --check` -- passed - `node --check web/storage.js` and `prettier --check web/storage.js` -- passed - `rumdl check --flavor commonmark CHANGELOG.md README.md web/README.md highscore-server/README.md` -- passed - Browser WASM load through same-origin API proxy -- passed - `git diff --cached --check` -- passed
This commit is contained in:
@@ -10,6 +10,10 @@ and this project adheres to
|
||||
|
||||
### Fixed
|
||||
|
||||
- Add the optional same-origin Axum/SQLite high-score service, browser
|
||||
fetch/submit integration, and an nginx reverse-proxy example. Browser
|
||||
settings retain their local-storage fallback, while the shared table is
|
||||
returned by the service.
|
||||
- Seed the initial gameplay random stream from the startup clock so the first
|
||||
maximum-power launcher shot is not identical on every run.
|
||||
- Require an unconsumed record-148 contact before the effect-seven special
|
||||
|
||||
Reference in New Issue
Block a user