Beispiel #1
0
 public static void Main()
 {
     {
         MagicSettingProvider.Init();
         try
         {
             using (var game = new TheHallGame {
                 Icon = System.Drawing.Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location)
             })
             {
                 Constants.WORLD_MAP_SIZE = 1;
                 Constants.WORLD_SEED     = new Random().Next(10000);
                 game.Run(0, FPS);
             }
         }
         catch (Exception exception)
         {
             var path = Path.Combine(Environment.CurrentDirectory, "error_file.txt");
             File.Delete(path);
             File.AppendAllText(path, exception.Message, Encoding.Unicode);
             File.AppendAllText(path, exception.StackTrace, Encoding.Unicode);
             Process.Start("error_file.txt");
         }
     }
 }
Beispiel #2
0
 public static void Main()
 {
     {
         MagicSettingProvider.Init();
         try
         {
             using (var game = new TheHallGame { Icon = System.Drawing.Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location) })
             {
                 Constants.WORLD_MAP_SIZE = 1;
                 Constants.WORLD_SEED = new Random().Next(10000);
                 game.Run(0, FPS);
             }
         }
         catch (Exception exception)
         {
             var path = Path.Combine(Environment.CurrentDirectory, "error_file.txt");
             File.Delete(path);
             File.AppendAllText(path, exception.Message, Encoding.Unicode);
             File.AppendAllText(path, exception.StackTrace, Encoding.Unicode);
             Process.Start("error_file.txt");
         }
     }
 }