Game Development Reference
In-Depth Information
Chapter 24
The Main Game Structure
In this chapter, you lay out the framework for the Tick Tick game. Because of all the work you've
done for the previous games, you can rely on a lot of preexisting classes. In fact, you build the game
on the classes you grouped in the powerupjs namespace/library in the previous chapter. This means
you already have a basic design for handling game states and settings, a hierarchy of game objects,
and more. You extend the powerupjs library later by adding classes related to animated game
objects. You can see these classes in the library; they're discussed in the next chapter.
Overview of the Game Structure
This game follows a structure very similar to that of the Penguin Pairs game. There is a title screen that
allows the player to go to either the level-selection menu or a help page (see Figure 24-1 ). To keep
things simple, you won't implement an options page, although adding it would be straightforward
because you could use the same approach as in Penguin Pairs. Because the menu structure is so
similar, it isn't discussed here. You can see the code in the TickTick1 folder that contains the example
code belonging to this chapter.
321
 
Search WWH ::




Custom Search