From 61c14c061c896a93f3300f5ed59b43c8e9b45190 Mon Sep 17 00:00:00 2001 From: prospanclaudebot Date: Fri, 10 Jul 2026 22:10:29 +0000 Subject: initial import: planeta-zhopa --- serve/RACE_NOTES.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 serve/RACE_NOTES.md (limited to 'serve/RACE_NOTES.md') diff --git a/serve/RACE_NOTES.md b/serve/RACE_NOTES.md new file mode 100644 index 0000000..c2cfab9 --- /dev/null +++ b/serve/RACE_NOTES.md @@ -0,0 +1,19 @@ +# ЖОПО-СВО: ЗАБЕГ — race mode (added 2026-07-10) + +SERVER (mp_server.py): authoritative race. +- init_race(): NCP=8 checkpoints in a ring, snapped to land, y=groundH+~30. +- FSM race["st"]: idle -> countdown(4s) -> racing -> done(14s) -> idle. Auto-starts when >=1 posed player. +- race_loop() @10Hz judges passes: horizontal advance cp; NCP*LAPS -> finish+time. +- Broadcasts {t:'race', st,cd,clock,laps,ncp,cps,stand,results}. Sends full snapshot to new joiner. +- Stores player dy (altitude) from state msg. LAPS=2, TIME_LIMIT=240. + +CLIENT (serve/index.html, in the game