Welcome to Animal Simulation Tutorial for Pygame Zero!¶
In this tutorial we’ll use Python to explore modelling an group of animals, with sheep, a sheep dog, wolves and you as a shepherd trying to take care of everything.
We’ll learn about classes, forces between animals (attraction and fear) and a bit of geometry maths too (don’t worry, we’ll guide you through it).
If you’ve not yet set up Pygame Zero and the editor Mu, head over to our Flappy Bird Tutorial and follow the instructions there.
If you’re new to Python programming then that Flappy Bird tutorial is probably better place to start – this tutorial is significantly harder.
Installing Assets¶
Download the tutorial assets by clicking this link. You can close that page once the download finishes. Click on the Images button in the Mu editor. This will open the directory where Pygame Zero looks for images. Copy the images from the images.zip file you just downloaded into this directory.
Get in touch¶
We would love to hear how you’ve got on with this tutorial or receive any other feedback. Get in touch with the author: Eric Clack <eric@bn7.net>