public ActionScreen(Game game, SpriteBatch spriteBatch)
     : base(game, spriteBatch)
 {
     tilemap = new Tilemap(game.Services);
 }
示例#2
0
 /// <summary>
 /// Constructs a new level.
 /// </summary>
 /// <param name="game">
 /// The game object that will be used to contruct the level components
 /// </param>
 /// <param name="levelIndex">
 /// The name of the level file to be loaded
 /// </param>
 public Level(IServiceProvider serviceProvider, Tilemap tilemap)
 {
     this.tilemap = tilemap;
     player = new Player(serviceProvider, Vector2.Zero);
 }