Chapter 7. Tank Battles – Shooting Things
We have two tanks facing off on the field of battle, but at the moment, the only way we have to control our tanks at all is a few temporary keyboard controls. In order to allow the players to interact with our game, we need to present some kind of user interface.
In this chapter, we will achieve the following:
Implement pseudo event-driven user interface buttons
Create and track shots fired by the player
Determine where fired shots land
Generate 3D particle-based explosions