Beispiel #1
0
 /// <summary>
 /// Allows the game to run logic such as updating the world,
 /// checking for collisions, gathering input, and playing audio.
 /// </summary>
 /// <param name="gameTime">Provides a snapshot of timing values.</param>
 void IGame_State_Base.Update(GameTime gameTime)
 {
     if (player.State == MediaState.Stopped)
     {
         //Go to the Front-End state
         Console.WriteLine("PLAYER HAS STOPPED - LEAVING SPLASH SCREEN STATE");
         myInterface.ChangeState(Engine_State_Manager.GameState.FrontEnd);
     }
 }
 /// <summary>
 /// Used to transition into the "Game" state
 /// </summary>
 public void GoToGame()
 {
     stateFunctions.ChangeState(Engine_State_Manager.GameState.Game);
 }