Programming the Sample Game
The game design is relatively simple. The majority of the work is assembling all
the
pieces so that they work together. Imagine a game split into its major
components,
much as illustrated in Figure 20.7. Now, you just need to amass those components
into a useable form.
I separated each game component
and did not intermix
them from chapter to chapter (with the exception of characters, which depend on
a
few components from various chapters). I didn’t want you to be dependent on each
and every component working together. In this way, you can pick the components
that suit the needs for your project and apply what you learn quickly and
easily.
Finally, in this chapter, you
discover how easy it is to take all the separate components
and paste them together to form a complete game. With the game’s design,
which is outlined in the earlier section “Designing the Sample Game” under your
belt, you can focus on the programming side of creating the sample game.
Table 20.4 describes the
components used in The Tower and the chapters in which
those components are developed.