Chapter 10. Mars Runner – Reaching the Finish Line
The Mars Runner game is in pretty good shape so far. We have implemented the GSM system from the GSM sample code provided by Microsoft, and we have created a skybox to represent the Martian landscape. We have built heightmaps in such a way that they sequence as segments of a track along the surface of Mars for our player to drive their rover on.
Of course, to drive the rover, we actually need to implement it! Because the resource is available to us, we will use the same 3D model for the rover that we used for the tanks in Tank Battles.
In this chapter, we will cover the following:
Generalizing our code for using and displaying 3D models
Adding the player's Mars rover to the game, including movement controls
Animating the background, track, and rover
Adding an enemy UFO and allowing the player to fire shots at it
Detecting collisions between the player, enemy, craters, and fired shots