a day ago
- Character Leo's animations had inconsistent canvas sizes causing visual drift (height changes up to 3% and feet offset up to 27 pixels).
- Naive global scale and offset failed because animations had different character pixel heights and positions within their canvases.
- Fix: at load time, per-animation scale and offset are computed by scanning alpha to find the visual feet line, then adjusted to match the reference idle_right animation.
- The shadow sprite was automatically fixed by anchoring to the now-consistent feet position, requiring no per-animation logic.