I guess we now have Sprite Animations

rust dev.to

A while back I posted something about wgpu, and making a game engine. I've since worked on it a bit more, and now we somehow have Animated Sprites! ๐ŸŽ‰ Yay! Hereโ€™s how it works: I loaded a spritesheet and slice it into individual sprites. These sprites are grouped into animations, which are then handed off to the SpriteAnimator. The SpriteAnimator tells the SpriteRenderer which sprite to display at any given time. The sprites arenโ€™t independent images. Each one stores UV coordinates correspo

Read Full Tutorial open_in_new
arrow_back Back to Tutorials