示例#1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (SpaceInvaders game = new SpaceInvaders())
     {
         game.Run();
     }
 }
示例#2
0
 /// <summary>
 /// Le point d'entrée de l'application
 /// </summary>
 static void Main(string[] args)
 {
     using (SpaceInvaders game = new SpaceInvaders())
     {
         game.Run();
     }
 }
示例#3
0
 public static void Main()
 {
     using (var game = new SpaceInvaders())
     {
         game.Run();
     }
 }
示例#4
0
 public static void Main()
 {
     using (var game = new SpaceInvaders())
     {
         game.Run();
     }
 }
示例#5
0
        static void Main(string[] args)
        {
            //Create the instance
            SpaceInvaders game = new SpaceInvaders();

            Debug.Assert(game != null);

            //Start the game
            game.Run();
        }
示例#6
0
        static void Main(string[] args)
        {
            GameMan.Create();
            // Create the instance
            SpaceInvaders game = GameMan.GetGame();

            Debug.Assert(game != null);

            // Start the game
            game.Run();
        }
示例#7
0
        static void Main(string[] args)
        {
            GameStateManager.Create();

            // Create the instance
            SpaceInvaders game = new SpaceInvaders();

            Debug.Assert(game != null);

            GameStateManager.SetGame(game);

            // Start the game
            game.Run();
        }
示例#8
0
        static void Main(string[] args)
        {
            //test render switch
            bool isTest = false;


            if (isTest)
            {
                TestGameTwo testGame = new TestGameTwo();
                Debug.Assert(testGame != null);

                testGame.Run();
            }
            else
            {
                // Create the instance
                SpaceInvaders game = new SpaceInvaders();
                Debug.Assert(game != null);

                // Start the game
                game.Run();
            }
        }