Paste everything below the line into your coding agent at the root of your game's repo. It assumes nothing about your engine, language, hosting or backend.
Add live online multiplayer to this game: friends join a room by code or invite link and play together in real time with no felt lag.
Before writing code, read the game loop, the simulation/physics and the input handling. Then write a short plan that maps every section below onto this game and this stack: what the "player entity" is, which state goes on the wire, what a "round" is, which transport and hosting options this platform has. Ask me only about real design choices (room size, whether players can collide, what ends a round, where to host). Everything else below is decided: it is what held up after many iterations on a shipped real-time game with fast-moving players, and the "do not" items were tried and failed. It fits any game where each player controls their own charact