Click a tile to walk there, and a word to say it. Each half of the page is a player: Ana and Luis.
nacatamalon/net is experimental: it can change from one version to the next.
The same scene runs in three places. In the server's room, made by createServer, with no screen and no sound, it decides what happens; in each player's game it shows it and asks. useNet() is the network as the scene sees it, the same on both sides, and its role says which side the scene is on, so only the part that belongs there is made.
The avatars are shared objects: useNetSpawn makes one in every game when the server makes it, and useShared keeps where it is in step. The server walks them, and every page sees them gliding a moment behind. A player sends the number of a phrase and the server says the words to everyone.
In a real game the server is bun server.ts on a machine of its own with server.listen(8080). Here the line between them is in memory (connectLoopback), 80 ms each way, so the lateness is there to see.