Pac-Man
Tile-locked maze chase: four ghosts with their own targeting, a scatter/chase clock, frightened and eaten states, tunnel wrap, fruit, and levels — every rule a state machine or a system over components.
Built for rung 12 of the 20 Games Challenge.
Controls: Arrows/WASD steer (turns are buffered), F frame stats, R restart after game over
Source: examples/pacman
Exercises: animation, audio, camera, collision, easing, fsm, input, lifetime, math, motion, particles, pathfinding, render-canvas2d, rng, save, scene-transition, spatial, stats, texture-atlas, tick, timer, transform.