Heykuki News

TopNewBestAskShowJobs
TopNewBestAskShowJobs
Show HN: LennyFighter: A multiplayer fighting game on Cloudflare Durable Objects
lennyfighter.com
2 points
iglesiasbrandon
2 months ago
I built LennyFighter to explore how far Cloudflare's developer platform can go for real-time multiplayer. Everything runs at the edge with zero origin servers: Vinext (React SSR) + Workers + Durable Objects for match state + D1 for stats + KV for session tokens + WebSockets for real-time play.

It's a 1v1 trivia fighting game where you pick a tech industry leader as your fighter (Brian Chesky, Marty Cagan, Elena Verna, etc.) and answer trivia from their real Lenny's Podcast interviews. Correct answers deal damage scaled by type effectiveness; wrong answers cost you recoil HP.

Each match is a MatchmakingQueue DO → MatchRoom DO (one per match) with hibernatable WebSockets, 20s reconnection grace period, and an optional pre-match wager/item selection phase. Source: https://github.com/iglesiasbrandon/lennyfighter

Inspired by PokeLenny. Would love feedback on the architecture or the game or new features to add!

1 comment