예제 #1
0
 static void Main(string[] args)
 {
     if (args.Length > 0)
     {
         if (args[0] == "--sprite-editor")
         {
             //Thread t = new Thread(new ThreadStart(GameThread));
             //t.Start();
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
             XnaControlGame.CreateAndShow <SpriteEditorView, SpritePackagesEditor>();
         }
         else
         if (args[0] == "--map-editor")
         {
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
             XnaControlGame.CreateAndShow <MapEditorView, MapEditor>();
         }
     }
     else
     {
         using (var game = new GameCore())
             game.Run();
     }
 }
예제 #2
0
 public static void GameThread()
 {
     using (var game = new GameCore())
         game.Run();
 }