protected override void Initialize() { LoadContent(); DoorBombed.ResetBombedDoors(); DoorClosed.ResetClosedDoors(); DoorLocked.ResetLockedfDoors(); LootManagement.ResetLoot(); player = new Link(this); player.Position = new Vector2(0, 160); LinkSpriteFactory.Instance.player = player; if (playerDebug) { player.Health = 1000; player.TotalHealth = 1000; player.ItemCounts[ItemType.Map]++; player.ItemCounts[ItemType.Compass]++; player.ItemCounts[ItemType.Rupee] = 89; } player.ItemCounts[ItemType.Rupee] += 10; hud = new HeadsUpDisplay(this, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight); screen = new NormalScreen(this, GraphicsDevice, graphics); gameState = new NormalGameState(this); this.IsMouseVisible = true; base.Initialize(); currentRoom = new Room1(this, new Vector2(graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight / 2 + 84), floortilebase); currentRoom.LoadRoom("RoomC6"); if (playerDebug) { currentRoom.LoadRoom("RoomDEBUG"); } roomIndex = Array.FindIndex(rooms, x => x == "RoomC6"); lightingManager = new LightingManager(this); savedPlayer = new Link(this); savedRoom = new Room1(this, new Vector2(graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight / 2 + 84), floortilebase); savedScreen = new NormalScreen(this, GraphicsDevice, graphics); notificationsQueue = new Queue <INotification>(); SoundFactory.Instance.musicDungeonLoop.Play(); }
protected override void Initialize() { LoadContent(); player = new Link(this); player.Position = new Vector2(200, 360); LinkSpriteFactory.Instance.player = player; hud = new HeadsUpDisplay(this, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight); screen = new NormalScreen(this, GraphicsDevice, graphics); gameState = new NormalGameState(this); this.IsMouseVisible = true; base.Initialize(); currentRoom = new Room1(this, new Vector2(graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight / 2 + 84), floortilebase); currentRoom.LoadRoom("RoomDEBUG"); SoundFactory.Instance.musicDungeonLoop.Play(); }