📚 Encyclopedia

Games & Graphics · updated 2026-10-13

Building an in-game level editor (Flutter)

level-editorflutterundocanvasmobile-uxautosave

Architecture and UX lessons from Run's level editor (Flutter, 2026-03 to 2026-10), which grew to platforms, zones, items, portals, keys/locks, hazards, abilities, liquids, wind, multiple "dimensions", tilesets and themes.

Architecture

Undo/redo

Autosave and drafts

Themes over per-object styling

Run's editor is theme-first: a theme picker at the top decides the skins of every placed item, a re-theme action converts selections, and the player skin is a per-dimension setting. Per-object skin dropdowns were removed as confusing leftovers; data keeps a legacy skinName for compatibility only. See Theme and skin systems for 2D games.

Keyboard

CallbackShortcuts + Focus(autofocus: true); restore focus after every dialog; make sure shortcuts do not fire while typing in a text field. Details: Keyboard shortcuts and focus in Flutter.

Canvas pan/zoom math

Do pan and zoom in screen space (pre-multiply the transform). Pinch-pan was double-counted until panBy/zoomAbout became pure static functions with unit tests. Anchor zoom at the pinch focal point.

Mobile editor UX (Procreate / Figma / Mario Maker / Geometry Dash patterns)

Other lessons

See also

Linked from

Sources: run memory (level-editor.md, editor-v2.md, improvement-cycles.md, session-v085.md, session-v086.md, research-mobile-editor-ux.md, research-mobile-game-ui.md, feedback-no-skin-pickers.md)