O'Reilly logo

XNA 4.0 Game Development by Example Beginner's Guide by Kurt Jaegers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required