📚 Encyclopedia

Games & Graphics · updated 2026-10-13

Flame engine architecture and gotchas

flameflutterdartgame-enginecollisioncomponents

Flame is the 2D game engine for Flutter: a game loop, a component tree, a camera, and a collision broadphase (including a QuadTree). This article covers how to structure a Flame game and the engine behaviors that bit Run, Justin's speedrun platformer. Rendering costs are in Flutter / Flame canvas rendering performance facts.

Architecture choices

Collision gotchas

Lifecycle gotchas

Input

Misc

Gotchas from Spacebar (Flutter build, 2026-03 to 07)

See also

Linked from

Sources: spacebar memory (project_game_overview, project_improvement_cycles, project_structural_elements), run memory (research-architecture-patterns.md, MEMORY.md key gotchas, architecture-audit-2026-10.md, session-v053-v057.md, session-v085.md, research-keyboard-input.md)