Exemple #1
0
 public void CheckHealth()
 {
     if (_player.Health == 0)
     {
         uint _score;
         _gameWindow.DrawText("YOU ARE DEAD", Color.Red, "Bold", 10000000, 400, 300);
         _score = SplashKit.CurrentTicks();
         _gameWindow.DrawText(string.Format("Score: {0}", _score), Color.Black, "Bold", 5000, 400, 200);
         _gameWindow.Refresh(60);
         SplashKit.Delay(3000);
         _gameWindow.Close();
     }
 }