public GameStateAgent(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice) { _spriteBatch = spriteBatch; _graphicsDevice = graphicsDevice; HUD = new HUDScreen(this, new Point(0, -HUDSpriteFactory.ScreenHeight)); _camera = new PlayerLockCamera(Player); }
public void Reset() { if (_worldState == WorldState.Reset) { return; } _worldState = WorldState.Reset; Player = new Link(Point.Zero); Player.Inventory.RupeeCount = 50; _camera = new PlayerLockCamera(Player); _pauseMachine = new PauseTransitionStateMachine(); MusicManager.Instance.StopMusic(); DungeonManager.LoadScenes(Player); Continue(); }