Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 662 Bytes

File metadata and controls

17 lines (10 loc) · 662 Bytes

How To Use Pygame Sprites for Animation

Read working code

We found a Pygame project at https://github.com/StevePaget/PythonJoust. Read through it to get an idea for how it does the player images.

SpriteExample1.py is recreating a simple version of it.

SpriteExample2.py adds functionality to flip the player left or right.

Create your own

We found a cool spritesheet at https://opengameart.org/content/minotaur (cc3 Clint Bellanger)

It has a 2D spritesheet, which is a little more advanced. See if you can make it work!

SpriteExample3.py is a finished version. Don't show the student.

SpriteExample4.py includes swinging the axe functionality.