2014 | OriginalPaper | Chapter
24. The Main Game Structure
Published in:
Building JavaScript Games
Abstract
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.