DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Leo wouldn't stand still

Quality: 8/10 Relevance: 9/10

Summary

Analysis of a bug where a 2D game character grew taller during walking due to mismatched animation canvases and a single global scale. The fix computes per-animation metrics at load time to align pixel heights and feet positions to a reference animation, including shadow alignment, with a code snippet showing how anim_scale and anim_offset_y are derived. Demonstrates a practical approach to robust sprite alignment in mixed-canvas assets.

🚀 Service construit par Johan Denoyer