public GameStateAgent(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice)
 {
     _spriteBatch        = spriteBatch;
     _graphicsDevice     = graphicsDevice;
     HUD                 = new HUDScreen(this, new Point(0, -HUDSpriteFactory.ScreenHeight));
     _dungeonManager.Pan = DungeonPan;
 }
Exemple #2
0
 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;
    }
Exemple #4
0
    void Awake()
    {
        DontDestroyOnLoad(this);

        HUDScreen.Open();
    }