January 2022
Beginner to intermediate
416 pages
10h 21m
English
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 ...