Programming 1
Week 11: Notes

Some of this week's topics are covered in Think Python:

And in Introducing Python:

For learning pygame, I recommend the book Making Games with Python & Pygame. You can read it online, or download a PDF copy for free.

Don't forget that we have a pygame quick reference page that is linked from the course home page.

Here are the pygame examples we saw in the lecture:

circle.py
Draws a red circle on a black background.

colors.py
Draws a circle whose color changes randomly each time you click the mouse.

donut.py, donut.png
Draws a donut that makes a quick exit.

donuts.py
Draws a new donut each time you click.