Beispiel #1
0
 private void InitializeMemberVariables()
 {
     myGameState    = GameState.Menu;
     mySoundManager = new SongManager();
     myMenuManager  = new MenuManager(myFont);
     SoundEffectManager.InitalizeVariables();
     Camera.Reset();
 }
Beispiel #2
0
        protected override void Update(GameTime aGameTime)
        {
            UpdateUtilities();
            switch (myGameState)
            {
            case GameState.Playing:
                myGameBoard.Update(aGameTime);
                Camera.Update();
                SoundEffectManager.Update(aGameTime);
                break;

            case GameState.Menu:
                Camera.Reset();
                myMenuManager.Update();
                break;
            }

            UpdateSoundManager();
            myOldGameState = myGameState;

            base.Update(aGameTime);
        }