Beispiel #1
0
 public void Update(GameTime gameTime)
 {
     if (gameState.LivesRemaining > 0)
     {
         entities.Update(gameTime);
     }
     else if (gameState.LivesRemaining == 0)
     {
         Thread.Sleep(500);
         gameState.LivesRemaining--;
     }
     else
     {
         if (Keyboard.GetState().IsKeyDown(Keys.Space))
         {
             screenController.GoToIntro();
         }
     }
 }