Critters (behaviour tree)
Behaviour-tree playground: critters each tick the same reactive tree — a selector over prioritised needs (flee threat > eat when hungry > sleep when tired > wander) — with a per-critter blackboard. Shows why a tree beats a state machine for layered priorities.
Controls: Move the cursor to scare the critters
Source: examples/critters
Exercises: behavior-tree, input, math, motion, steering, tick, transform.