Esempio n. 1
0
 /// <summary>
 /// Handler for ESC type
 /// </summary>
 static void OnSDL_ESCDOWN()
 {
     if (!(Harness.GameCurrentLevel is Level00))
     {
         Harness.GameCurrentLevel.AsstesList.Add(new Models.Images.Menu(new Size(Dimensions.Banner.Width, Dimensions.Banner.Height), new Position((Dimensions.Canvas.Width / 2) - (Dimensions.Banner.Width / 2), (Dimensions.Canvas.Height / 2) - (Dimensions.Banner.Height / 2))));
         Harness.RefreshOutput();
     }
     else
     {
         Harness.QuitGame();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Handler for quit the game
 /// </summary>
 static void OnSDL_QUIT()
 {
     Harness.QuitGame();
 }