public void resetMaps() { mainLevel = new MainLevel(this, screenManager); pitFall = new PitFall(this, screenManager); killScreen = new KillScreen(this, screenManager); Pit.Instance.respawnPits(); SuperBats.Instance.respawnBats(); Wumpus.Instance.respawnWumpus(); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; //set fullscreen to false and change width/height to be a multiple of 64. this.graphics.PreferredBackBufferWidth = 832; this.graphics.PreferredBackBufferHeight = 640; this.graphics.IsFullScreen = false; screenManager = new ScreenManager(this); Components.Add(screenManager); startScreen = new StartScreen(this, screenManager); mainLevel = new MainLevel(this, screenManager); pitFall = new PitFall(this, screenManager); killScreen = new KillScreen(this, screenManager); screenManager.ChangeScreens(startScreen); }