Commit Graph

18 Commits

Author SHA1 Message Date
a494290548 fix(net): interpolate between snapshots to absorb jitter (P1-6)
netfight eased to the newest snapshot with no buffer, so a jittery
client's robot stalled then jumped. Render ~120 ms in the past between
the two bracketing snapshots instead. Dev params ?netlag/?interp/
?netprobe reproduce it; unit test for the interp math + a Playwright
lag test (tests/e2e/netlag.spec.js).
2026-11-19 19:46:54 +01:00
Benjamin Oezcan
2bf5a40ebc fix(ui): F3 overlay was always shown as an empty box and could not be closed 2026-11-19 15:28:23 +01:00
Benjamin Oezcan
695cf77afc feat(net): F3 network overlay - ping graph and where lag comes from (you, opponent, server) 2026-11-19 14:30:40 +01:00
Benjamin Oezcan
593d69714b feat(net): server measures every player's ping and its own step cost, sent with each snapshot
Also fixes the ping message schema (it checked the field t, which is the message type).
2026-11-19 14:25:46 +01:00
Benjamin Oezcan
4535ac7d8a refactor(game): split game.js into sfx, pages, online and workshop modules (P4-5)
Modules are classic-script factories RC.Game<Part>(G); G gives live access to the shared state.
Guarded by new browser tests for every moved page and workshop tool (tests/e2e/screens.spec.js).
2026-11-19 09:58:53 +01:00
Benjamin Oezcan
fade816169 test(e2e): playwright - two browsers play online, server shop, offline campaign (P4-2) 2026-11-19 09:47:22 +01:00
Benjamin Oezcan
0202a08b8d feat(server): achievements pay out server-side, snapshots carry opponent connection state 2026-11-19 02:09:12 +01:00
Benjamin Oezcan
4bd85f68bf fix(net): snapshot fight time no longer overwrites the message type 2026-11-19 01:52:59 +01:00
Benjamin Oezcan
46499e354b feat(shop): shared economy rules for client and server (P2-2) 2026-11-19 01:48:20 +01:00
Benjamin Oezcan
bbe206004a feat(net): shared wire protocol with seat mapping (P1-1) 2026-11-19 01:45:26 +01:00
Benjamin Oezcan
35348324d6 test: single npm test entry point, drop firebase live test (P0-2) 2026-11-19 01:40:30 +01:00
347701d66f onlinemodus fix failed 2026-11-19 00:55:39 +01:00
64c5b65543 big update 2026-11-18 15:18:38 +01:00
e0496fa089 view update 2026-11-17 14:17:50 +01:00
3e565cf8c7 map change 2026-11-15 20:05:02 +01:00
319436a5f9 hughe update 2026-11-15 17:08:11 +01:00
7a69651b6d Online-Lobby, Arenen, Lackiererei, ComfyGen-Grafik, Verschleierung
Grosse Erweiterung ueber die erste spielbare Version hinaus:

- Online (Firebase ueber REST, kein SDK): Konto per E-Mail, globale Lobby
  mit Laender-Raeumen, Herausfordern, Live-PvP (Host rechnet, Gast
  interpoliert, KI-Uebernahme bei Lag). Gast kann anonym beitreten.
  net.js / lobby.js / netfight.js, Regeln in docs/firebase.
- 3 Arenen in verschiedenen Groessen (RC.ARENAS, half 8/12/16), Kamera +
  Licht + Boden skalieren; Liga skaliert die Arena mit, Setting + online
  aus Seed. Harte Rams/Wandtreffer schleudern Roboter auf den Rucken.
- Intro (3D-Kamerafahrt), Titel, Einstellungen (Kamera, Schwierigkeit,
  Steuerung, Grafik, Arena), Lackiererei (painter.js, selbst bemalen).
- Shop mit ComfyGen-Sprites (aus den 3D-Teilen erzeugt), Liga-Gegner sehen
  aus wie ihre Portraits (looks.js), kraeftigere Waffen-Modelle.
- Oekonomie: Startgeld 800, Schadensbonus, Schaukaempfe, Online-Preisgeld.
- Verschleierung: build.ps1 -Obfuscate (terser), tablet-taugliche Touch-UI.
- Tests: tests/sim.test.js, balance.js, online.test.js. Dev-Tools in tools/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-13 15:45:35 +01:00
9bc39faffb main init 2026-11-13 00:41:54 +01:00