public GameStateAgent(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice) { _spriteBatch = spriteBatch; _graphicsDevice = graphicsDevice; HUD = new HUDScreen(this, new Point(0, -HUDSpriteFactory.ScreenHeight)); _dungeonManager.Pan = DungeonPan; }
public GameStateAgent(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice) { _spriteBatch = spriteBatch; _graphicsDevice = graphicsDevice; HUD = new HUDScreen(this, new Point(0, -HUDSpriteFactory.ScreenHeight)); _camera = new PlayerLockCamera(Player); }
public LevelWinState(LevelFSM stateMachine, LevelController controller) { _stateMachine = stateMachine; _playerSpawner = controller.PlayerSpawner; _winScreen = controller.LevelHUD.WinScreen; _input = controller.MenuInput; _gameSession = GameSession.Instance; }
void Awake() { DontDestroyOnLoad(this); HUDScreen.Open(); }