static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Game game = new Game(); game.Show(); do { game.Advance(); game.Render(); Application.DoEvents(); } while (game.Created); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new Game()); Game game = new Game(); game.Show(); do { //game.Advance(); if (game.game_over != true) { game.Advance(); // break; } game.Render(); Application.DoEvents(); } while (game.Created); //System.Threading.Thread.Sleep(2000); game.Dispose(); }