Chapter 7. Dynamic Front Ends
In the last chapter we built a tower toppling physics game where the player could use TNT, Wrecking Balls, and Magnetic Cranes to destroy towers made of Glass, Wood, and Steel Pillars. In this chapter we are going to build this game by implementing a Shop, a Score Screen, and Level Intro Dialog. We are also going to rework the HUD so that only the equipment that is available can be used to implement a countdown timer, and add buttons for restarting the level and going to the Shop. In order to accomplish all of this, we will spend some time looking at arrays and data structures for storing information and using global variables.