Time for action – creating the Asteroid Belt Assault project

  1. Visit http://www.PacktPub.com and download the 0669_04_GRAPHICPACK.ZIP file. Extract the file to a temporary location.
  2. Open Visual Studio Express Edition and create a new XNA 4.0 Windows Game project called Asteroid Belt Assault.
  3. In the Asteroid Belt AssaultContent project, right-click on the project name, select Add | New Folder and add a folder called Textures. Add another folder called Fonts.
  4. Right-click on Textures and add the SpriteSheet.png and TitleScreen.png files from the graphics pack to the project.
  5. Add declarations to the Game1 class for game states and textures:
    enum GameStates { TitleScreen, Playing, PlayerDead, GameOver}; GameStates gameState = GameStates.TitleScreen; Texture2D ...

Get XNA 4.0 Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.