예제 #1
0
        public static void Update()
        {
            MainWindow.Win.Draw(AudioController.Spectrum);
            AudioController.Update();
            RefreshBackground();
            KeyReactor.Do(_p1Controls);
            KeyReactor.Do(_p2Controls);

            if (_startCounter.Active)
            {
                MainWindow.Win.Draw(_startCounter);
            }

            if (_startCounter.Finished && _gameCounter.Active == false && _gameCounter.Finished == false)
            {
                _gameCounter.Start();
            }

            if (_gameCounter.Active)
            {
                UpdateSystems();
            }

            if (_gameCounter.Finished)
            {
                InterfaceManager.EndShow();
                _backToMenuCounter.Start();
            }

            if (_gameCounter.Active || _gameCounter.Finished)
            {
                InterfaceManager.Draw(MainWindow.Win);
                MainWindow.Win.Draw(_gameCounter);
            }

            EntitiesManager.Draw(MainWindow.Win);
        }