Claude-powered browser destruction game switches to event-based multiplayer physics

Donkeytonk · reddit · 2026-07-28

The author says building a browser PvP destruction game with Claude, Three.js, and Rapier Physics has been a great experience.

They describe the main engineering challenge as making multiplayer destruction feel smooth. A streaming approach caused severe choppiness because of the number of objects and calculations, so they switched to an event-based model: when an object is smashed, other clients are told that it was smashed, while the heavy physics runs on the originating client.

The result is that even with weaker connections, destruction and collapsing towers render smoothly as long as the local CPU/GPU can keep up. The game is nearly ready for public alpha testing, and the author says the next step is playtesting plus multiplayer onboarding optimization.

Original post →

More from Fun

Fun channel →