Rattle Boom
A zero-gravity multiplayer shooter
- 8players a room
- 4bytes to build an arena
- 20updates a second
- 136commits
About
Rattle Boom is a third-person shooter among floating stone blocks, with no gravity. You crawl across a block, aim at another and jump the gap.
Up to eight players share an online room, AI pilots fill the empty seats, and rounds last five minutes.
Stack
- Game
- JavaScript modulesthree.jsWeb Audio
- Server
- Cloudflare WorkersDurable Objects with SQLiteWebSocket hibernation
Technical challenges
A room is one Durable Object
Each room is a single Durable Object that relays messages and keeps the score, and sleeps between messages so an idle room costs nothing. The round clock is stored with the round, so it survives the sleep.
Favour the shooter
Each player owns their own body and sends its position about 20 times a second. The shooter decides its own hits and the victim applies the damage, so a shot that looked like a hit is a hit. The oldest player in the room runs the AI pilots, and someone else takes them over if they leave. It trusts players on purpose: eight friends aren't cheating.
Smooth movement over the network
Other players are drawn 110 milliseconds behind their newest update and smoothed between updates, and your own kills are predicted and confirmed at once.
A whole arena from four bytes
One 32-bit seed builds the entire arena, so the host sends four bytes instead of a map. A protocol version turns away tabs still running old code.
Walking on blocks with no gravity
Crawling keeps you seated on each block's surface in a way that can't skip across an edge, and the camera carries its roll instead of recomputing it, so the view never flips. Landing time fell from 2.3 seconds to 0.38.


