Exemplo n.º 1
0
 private void InitializeMemberVariables()
 {
     myGameState    = GameState.Menu;
     mySoundManager = new SongManager();
     myMenuManager  = new MenuManager(myFont);
     SoundEffectManager.InitalizeVariables();
     PlayerInput.Initialize();
     //Camera.Reset();
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 virtual protected void PickedUp(Player aPlayer)
 {
     SoundEffectManager.PlayItemSound();
 }
Exemplo n.º 4
0
 public void GotEaten()
 {
     PlayerHealthState = PlayerHealthState.Dead;
     SoundEffectManager.PlayPlayerSound();
     Lives--;
 }
Exemplo n.º 5
0
 private void GotEaten()
 {
     myGhostHealthState = GhostHealthState.Dead;
     SoundEffectManager.PlayGhostSound();
 }
Exemplo n.º 6
0
 public void Enter(Ghost aGhost)
 {
     Console.ForegroundColor = aGhost.Color;
     Console.WriteLine("Entered DEAD");
     SoundEffectManager.PlayGhostSound();
 }