Our first goal is to build the broad modular structure for the program. As usual, we will keep the data structure, audio-related logic, and the presentation logic in three separate files. Therefore, we will create three separate files named model.py, player.py, and view.py (see code 5.01).
Let's create an empty Model class and an empty Player class in their respective files. The following is the code for 5.01—model.py:
class Model: def __init__(self): pass
Here's the code for 5.01—player.py:
import pygletclass Player(): def __init__(self): pass
Next, let's create the View class. We will leave the Model and Player classes empty for now. However, we will complete this iteration by coding the majority ...