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