public void resetLevels() { levels = new Level[3]; for (int i = 0; i < levels.Length; i++) { levels[i] = new Level(spriteBatch, this); levels[i].loadContent(this, "TileMap" + (i + 1) + ".txt", "EntityMap" + (i + 1) + ".txt"); } lights = new Lights(this); }
public void loadContent(Game game) { double[,] locs = new double[, ] { { 100, 100 } }; string[] types = new string[] { "white" }; // powerupManager = new PowerupManager(game, spriteBatch, locs, types); lights = new Lights(game); tex = game.Content.Load <Texture2D>("Mortimer"); bulletTex = game.Content.Load <Texture2D>("mortimerProjectile"); }