AN XNA GAME: TANK
In this chapter, you'll create a simple but functional game with XNA. This game is creatively named Tank, as it puts the player in charge of a vehicle that he or she can drive across the screen with his or her thumb. In the game, a missile can be launched at the tank from the corners of the screen. These missiles home in on the tank, but the player can shoot them down (see Figure 11-1).
If you follow all the steps in this chapter, you'll create the Tank game shown in Figure 11-1. The following Try It Out walks you through how to start this new XNA project.
TRY IT OUT Creating the Windows Phone Tank Game
Following are the first steps for creating the Tank Windows Phone game using XNA:
- In Visual Studio, choose File New Project.
- From the left side of the New Project dialog, select XNA Game Studio 4.0.
- Select the Windows Phone Game template option and type the name of the project, Tank, in the Name field (see Figure 11-2).
- Click OK. Visual Studio creates a number of files for you, and you can see them in the Solution Explorer (see Figure 11-3).