示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Game game = new Game();
            game.Show();
            do
            {
                game.Advance();
                game.Render();
                Application.DoEvents();
            } while (game.Created);
        }
示例#2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Game game = new Game();

            game.Show();
            do
            {
                game.Advance();
                game.Render();
                Application.DoEvents();
            } while (game.Created);
        }
示例#3
0
        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();
        }