Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This section illustrates the use of the game engine discussed at the beginning of this chapter with the implementation of an ungame, shown in Figure 9.1.
Figure 9.1. Playing the ungame
Like the undead, who are not really dead, the ungame is not really a game. Its purpose is not to entertain you, but to show you how to use the game engine to implement your own games.
Playing the ungame consists of gazing at the scrolling background and clicking the Lose a life button. The ungame begins with three lives, which are depicted in the heads-up display in the game’s upper-right corner.
The ungame embodies many of the characteristics that you find in most games, including
• A loading screen
• Asset management
• Sound
• A scrolling background with parallax