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

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

            base.Update(aGameTime);
        }
Beispiel #3
0
 virtual protected void PickedUp(Player aPlayer)
 {
     SoundEffectManager.PlayItemSound();
 }
Beispiel #4
0
 public void GotEaten()
 {
     PlayerHealthState = PlayerHealthState.Dead;
     SoundEffectManager.PlayPlayerSound();
     Lives--;
 }
Beispiel #5
0
 private void GotEaten()
 {
     myGhostHealthState = GhostHealthState.Dead;
     SoundEffectManager.PlayGhostSound();
 }
Beispiel #6
0
 public void Enter(Ghost aGhost)
 {
     Console.ForegroundColor = aGhost.Color;
     Console.WriteLine("Entered DEAD");
     SoundEffectManager.PlayGhostSound();
 }