Pygame animation

Here’s a simple python program that uses pygame to create a moving image.

You’ll need these images to run the code: python.png, pi.png.

Here’s the code, you can also download that here, to save you typing it all!

Hopefully the comments make it pretty clear what is happening. You’ll recognise a lot of the code from the simple pygame gui we did in the last post. I am going to come back and add some more explanation a little later, but I wanted to get this online while I thought about it.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: