Exemple #1
0
        public void Update(Camera camera, GameTime gameTime, ref IGameState gameState)
        {
            _serpents.Update(camera, gameTime);
            if (_todo.Do(gameTime))
                return;

            if (_serpents.LivesLeft >= 1)
            {
                _serpents.LivesLeft--;
                gameState = new StartSerpentState(_serpents);
            }
            else
                gameState = new GameOverState(_serpents);
        }
        public void Update(Camera camera, GameTime gameTime, ref IGameState gameState)
        {
            _serpents.Update(camera, gameTime);

            if (_actions.Do(gameTime))
                return;

            gameState = new StartSerpentState(_serpents);
        }