One authority, ordered commands
Network callbacks validate messages and enqueue bounded commands. A single 30 Hz simulation loop owns room state, avoiding concurrent world mutations.
04 / Real-time / Multiplayer
A little shared universe. One Java authority.
Enter the playground
The project
An original multiplayer arena built for Zalduaxa.eus. Guide a geometric character, gather luminous particles and trade shots with other players. A hit scatters part of a player’s score back into the world; nobody is eliminated.
The game connects to an independent Java service when you choose to join; the homepage has a separate read-only spectator view. Canvas draws the world; the server decides positions, collections, projectiles, collisions and scores. Independent browser sessions share the same room.
Particle Playground
Network callbacks validate messages and enqueue bounded commands. A single 30 Hz simulation loop owns room state, avoiding concurrent world mutations.
Local input prediction is reconciled with acknowledged server state. Other players are interpolated between snapshots. Only the server can award points or register a hit.
15 Hz snapshots carry moving entities and gameplay events. Particle deltas and periodic full sets keep the shared world synchronized. Trails and impact sparks are generated locally.
