Exemplo n.º 1
0
        public void Update(GameTime gameTime)
        {
            // If the current scene is finished, we switch to the next one
            if (_currentScene.IsSceneFinished())
            {
                if (_currentScene.GetNextScene() == null)
                    _game.Exit();
                else
                    _currentScene = _currentScene.GetNextScene();
            }

            _currentScene.Update(gameTime, _gameInput);
        }
Exemplo n.º 2
0
        public SceneManager(Squick game, KinectInterface gameInput)
        {
            _game = game;
            _gameInput = gameInput;

            ScoreHolder.Level1 = 10000;
            ScoreHolder.Level2 = 12000;

            //_currentScene = new Level1(gameInput); // Change with your level
            //_currentScene = new DebugMenu(); // For testing purpose
            //_currentScene = new VictoryMenu(); // For testing purpose
            _currentScene = new MainMenu();
        }
Exemplo n.º 3
0
 public Scene()
 {
     this._sceneFinished = false;
     this._nextScene = null;
 }