PewPewPew
Browser-based multiplayer Asteroids game running a fully client- and server-synchronized state machine at 60Hz with rollback/rollforward on both client and server. During play only user input is transmitted using a compressed message format (7 fields in 2 bytes, about 26KB/s for a room with 32 active players), and players are automatically distributed to a room on the lowest-ping server with active players. Currently runs on Cloudflare Durable Objects (~$300/month per 1K average CCU), with plans to offload to dedicated metal if costs exceed $500/month. Works on mobile; free to play with no ads and no signup.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
PewPewPew
Browser-based multiplayer Asteroids game running a fully client- and server-synchronized state machine at 60Hz with rollback/rollforward on both client and server. During play only user input is transmitted using a compressed message format (7 fields in 2 bytes, about 26KB/s for a room with 32 active players), and players are automatically distributed to a room on the lowest-ping server with active players. Currently runs on Cloudflare Durable Objects (~$300/month per 1K average CCU), with plans to offload to dedicated metal if costs exceed $500/month. Works on mobile; free to play with no ads and no signup.
Posted by @Benjaminsen · Original source ↗
Story title · @Benjaminsen · · Source ↗
Show HN: PewPewPew – Multiplayer Asteroids with deterministic rollback at 60hz
Submitted URL · @Benjaminsen · · Source ↗
https://pewpewpew.io/
Source text · @Benjaminsen · · Source ↗
my latest is pewpewpew.io which combines everything I know about doing this well
Source text · @Benjaminsen · · Source ↗
The game uses a fully client and server synchronized state machine running at 60hz with rollback / rollforward on both client and server.
Source text · @Benjaminsen · · Source ↗
During normal play only user input is transmitted using a compressed message format, where input is 7 fields in 2 bytes, with a total of about 26KB/s used for a room with 32 active players.
Source text · @Benjaminsen · · Source ↗
Users are automatically distributed into a room on a server with the lowest measured ping where there are other players playing.
Source text · @Benjaminsen · · Source ↗
Currently running using cloudflare Durable Objects, but I expect to offload it to dedicated metal should the cost go above $500 / month. Current monthly cost sits at about $300 per 1K average CCU.
Source text · @Benjaminsen · · Source ↗
Works on mobile, free to play, no ads, no signup.