Building a multiplayer game with Flutter and Serverpod
summary
Builds a multiplayer Agar-like game called Bacterial Boom using Flutter for the client and Serverpod for the server, with full source on GitHub and a playable build at bacterialboom.com (tested with up to five simultaneous players). Uses Serverpod streaming with session-bound endpoints and message channels, YAML serialization and Postgres ORM, a game loop ticking at 10Hz, NPCs, and a quad-tree for collision checks (quad tree collision) to avoid O(n^2) checks. Bandwidth drops from ~100KB/s to ~20KB/s by sending diffs, and visuals use noise-based blob edges.
AI-written summary · about
chapters (9)
- 0:00Introduction and overview
- 2:49Serverpod basics
- 8:03Real-time communication
- 11:59Game data structures
- 15:32Collision detection
- 20:10Game loop and state updates
- 25:06Flutter client implementation
- 28:21Noise functions for drawing
- 31:30Next steps and resources
related talks
26mServerpod: Building interactive slides for tech talks
31mFrom frontend to backend with Serverpod
50mBuild a multiplayer drawing experience with full-stack Dart
49mTrusting your clients: live-coding a cross-platform multiplayer bingo app
45mBuilding Products Full-Stack with Dart and Flutter
37mVibing Flutter
42mThe "fastest" application of Flutter of all time!
01h 11mWorkshop. Cross-platform ² — Befriending Flutter and Kotlin Multiplatform
