~/talk

Building a multiplayer game with Flutter and Serverpod

Talkat Fluttercon Europe 2023 · 2023-07-05..07-07· [flutter, serverless]
links:none on file
slides:none on file

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

  1. 0:00Introduction and overview
  2. 2:49Serverpod basics
  3. 8:03Real-time communication
  4. 11:59Game data structures
  5. 15:32Collision detection
  6. 20:10Game loop and state updates
  7. 25:06Flutter client implementation
  8. 28:21Noise functions for drawing
  9. 31:30Next steps and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.