Add animations to your game! In this video, we cover how to load sprite sheets, and then use those to add animations when the player walks. This game uses Pygame and Python to accomplish this.
All of the source code is available below, and you can download the starting code if you'd like to follow along.
Full Adventure Game in Pygame Playlist π²:
https://www.youtube.com/playlist?list=PLn8cgfOA2qzeXxXe7DBWxX1UR5fJ4MDTb
Starting Code (Code from Previous Video) π±:
https://github.com/AlexanderFarrell/adventure_game_python/tree/19-entity-editor
Completed Source Code π₯:
https://github.com/AlexanderFarrell/adventure_game_python/tree/20-animations
New Player Sprite Sheet (and other assets) π΄:
https://www.alexanderfarrell.com/articles/download-adventure-game-assets
Timestamps:
π Introduction - 00:00
π How Animations Work - 00:29
π Atlas Class for Sprite Sheets - 2:32
π₯ Animation Class - 10:11
π Set Sprite Sheet on Player - 19:06
β‘ First Test - 20:47
π Make Player Walk - 21:29
β‘ Second Test - 27:29
π‘ What should we do about combat? - 27:40
π Thank you - 28:27