September 2013
Beginner
292 pages
6h 19m
English
We're going to use a State Machine to control the game, so let's get some ideas of what we want:
BeginState class, which is a splash screen displayed when the game startsSetupState class, which provides game optionsPlayState classes, which are two levels of gameplayWonState classes, which show a graphic and proceed to the next levelLostState classes, which show a graphic, and replay the level or restart the gameThe following Scenes and States diagram shows three Scenes and nine States that we'll use to control game flow:
As you can see from this diagram, there are five more States and another ...