“91974˙CH13˙final” 2012/12/14 14:44 page 423 #1
CHAPTER
13
Video Games
13.1 Objectives
To write an event-driven program
To understand and write callback functions
To practice with lists of objects
To see another pattern for using inheritance
To learn about static variables
13.2 Introduction
So far the programs we have written have a beginning, a middle, and an end. We know
the order in which things will happen because we have implemented the steps in a linear
fashion. But that is not the way that most programs work. Think of the programs you
use on a daily basis—from your web browser and word processor, to video games. These
programs do not ...

Get Python Programming in Context, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.