flame-docs
Installation
SKILL.md
Flame Engine Quick Reference
Component Lifecycle
onLoad() → onMount() → update(dt)/render(canvas) → onRemove()
| Method | Timing | Purpose |
|---|---|---|
onLoad() |
Once, async | Resource loading, initialization |
onMount() |
On tree addition | Set parent/game references |
update(dt) |
Every frame | State update (dt = delta seconds) |
render(canvas) |
Every frame | Draw to screen |
onRemove() |
On removal | Cleanup |