Esempio n. 1
0
 public GameStateAgent(SpriteBatch spriteBatch, GraphicsDevice graphicsDevice)
 {
     _spriteBatch        = spriteBatch;
     _graphicsDevice     = graphicsDevice;
     HUD                 = new HUDScreen(this, new Point(0, -HUDSpriteFactory.ScreenHeight));
     _dungeonManager.Pan = DungeonPan;
 }
Esempio n. 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);
 }
Esempio n. 3
0
    public LevelWinState(LevelFSM stateMachine, LevelController controller)
    {
        _stateMachine = stateMachine;

        _playerSpawner = controller.PlayerSpawner;
        _winScreen     = controller.LevelHUD.WinScreen;
        _input         = controller.MenuInput;
        _gameSession   = GameSession.Instance;
    }
Esempio n. 4
0
    void Awake()
    {
        DontDestroyOnLoad(this);

        HUDScreen.Open();
    }