Time for action – building the LevelManager module
Right-click on the Gemstone Hunter Content project and add a new folder called
Maps
.Add the
MAP000.MAP
andMAP001.MAP
sample maps from0669_08_GRAPHICPACK
to theMaps
folder.Click on each
.MAP
file in the Solution Explorer and, in theProperties
window, set the Build Action to None and the Copy to Output Directory property to Copy if newer.Add a new module called
LevelManager
to the Gemstone Hunter project.Add the following
Imports
directive to the top of theLevelManager
module file:Imports Tile_Engine
Modify the declaration of the
LevelManager
module to make itPublic
:Public Module LevelManager
Add declarations to the
LevelManager
module:#Region "Declarations" Private _content As ContentManager Private _player As Player Private _currentLevel As Integer #End Region
Add the properties to the
LevelManager
module:#Region "Properties" Public ReadOnly Property CurrentLevel As Integer Get Return _currentLevel End Get End Property...