Time for action – building the LevelManager class

  1. Right-click on the Gemstone Hunter Content project and add a new folder called Maps.
  2. Add the MAP001.MAP and MAP002.MAP sample maps from 0669_08_GRAPHICPACK to the Maps folder.
  3. Click on each .MAP file in Solution Explorer and, in the Properties window, set the Build Action to None and the Copy to Output Directory property to Copy if newer.
    Time for action – building the LevelManager class
  4. Add a new class file called LevelManager.cs to the Gemstone Hunter project.
  5. Add the following using directives to the LevelManager class:
    using Microsoft.Xna.Framework.Storage; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; ...

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.