Building the Flak Cannon Game Loop
In Chapter 4, we built all the assets and classes we will need to make the Flak Cannon game. In this chapter, we will put everything together into something that we can play and build on. To recap a bit, Flak Cannon is a game much like the classic Atari Missile Command. Your job is to defend your fleet of ships against kamikaze planes that are trying to destroy them. To defend the ships, you use a flak gun. With the flak gun, the player does not shoot directly at the planes, but instead shoots where they will be. The flak explosion is the lethal part of the equation, not the shot itself.
KeywordsCollision Detection Nest Loop Mouse Button Public Function Game Class
Unable to display preview. Download preview PDF.