Le Serjant 5517834dd4
All checks were successful
CI / build (pull_request) Successful in 32s
Fix #28: stash stats periodically so beforeunload sends real scores
Module._analyticsLastStats was only set when the C shutdown path ran
(analytics_session_end). When a player closes the browser tab mid-game,
the beforeunload fallback found _analyticsLastStats null and sent
score 0 to the backend.

Add analytics_stash_stats() which updates _analyticsLastStats every
~1 second during gameplay. The beforeunload handler now always has
current stats to send.
2026-03-19 13:24:21 +00:00
2026-03-16 20:42:03 +00:00
2026-02-28 18:03:47 +00:00
2026-02-28 18:03:47 +00:00
2026-03-02 20:32:28 +00:00
2026-02-28 18:03:47 +00:00
2026-03-05 17:38:46 +00:00
2026-03-14 16:29:10 +00:00
Description
No description provided
25 MiB
Languages
C 95.2%
Python 2.3%
HTML 1.4%
Makefile 1%
Dockerfile 0.1%