Hardware Reference
In-Depth Information
Engage thrusters
1.
Let's get started with reviewing the general structure of the game using the
flowchart shown in the following diagram:
Initialize Game
Modules
Initialize Game
Parameters
Setup Game Menu
Await Button Press
Start
Game
?
Quit
Game
?
No
Yes
Play Game
End Game
2. The first step is to import the modules required to launch and play the game. This
includes the pygame , pygame.mixer , piface , and serial modules.
3. Ater imporing the requisite modules, game parameters such as game diiculty,
board size in terms of width and height, background color, window size, colors of
the computer, and player coins are iniialized.
4. The game menu is iniialized and rendered on the game screen to await a buton
press by the player.
 
Search WWH ::




Custom Search