16 Full Game: Dodger

In this chapter we’ll build a full game called Dodger that uses many of the techniques and concepts that have been explained in this book. This is a fully object-oriented extended version of a game originally developed by Al Sweigart in his book Invent Your Own Computer Games with Python (No Starch, 2016; the basic game concept, graphics, and sounds are used by permission).

Before I get into the game itself, I’ll introduce a set of functions that present modal dialogs that we’ll use in the game. A modal dialog is one that forces the user to interact with it—choosing an option, for example—before they can continue using ...

Get Object-Oriented Python 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.