/// <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> protected override void Update(GameTime gameTime) { switch (state) { case State.flashScreen: flashScreen.Update(out state); break; case State.mainMenuScreen: mainMenuScreen.Update(out state, null, resolutionScreen); break; case State.resolutionScreen: resolutionScreen.Update(out state, mainMenuScreen, null); break; case State.gameScreen: if (IsActive) { gameScreen.Update(); } break; case State.exit: Exit(); break; } base.Update(gameTime); }