Idea · Oct 1, 2026
Lag Compensation Arena
A networking assignment where students build an authoritative-server multiplayer tank game on a real city map, then add client prediction, server reconciliation, interpolation, and lag compensation while a built-in network simulator injects latency and packet loss.
What it would do
A Show HN multiplayer game where players destroy buildings on a world map with tanks is a perfect hook for teaching netcode, a topic most students only meet as 'it feels laggy'. Students receive a starter with OpenStreetMap building footprints for a few city blocks and a naive client that sends inputs and waits for the server. Milestone 1 builds the authoritative server simulation over WebSockets with a fixed tick rate; Milestone 2 adds client-side prediction and server reconciliation with input sequence numbers; Milestone 3 adds entity interpolation for remote players; Milestone 4 implements server-side lag compensation (rewinding hitboxes to the shooter's view time) and documents the fairness trade-offs. A provided network simulator proxy adds configurable latency, jitter, and loss, and a replay tool records both client and server views side by side so students can show, with evidence, that each technique fixes a specific artifact.
Key features
- Starter kit with OSM building footprints converted to destructible polygons
- Authoritative fixed-tick server with input sequence numbers and state snapshots
- Network conditions proxy (latency, jitter, packet loss) controllable from a debug panel
- Side-by-side client vs. server replay viewer for diagnosing rubber-banding and unfair hits
- Autograded scenarios: scripted bots under 150 ms latency must see bounded position error and consistent hit registration