Esempio n. 1
0
 /// <summary>
 // This is the main loop of the application.
 /// </summary>
 private void StartLoop()
 {
     while (Created)
     {
         game.MainLoop();                  //  Execute the game logic
         Application.DoEvents();           // Make sure we take care of all the windows event messages
         Thread.Sleep(2);                  // Yield some CPU time to other applications.
     }
 }