Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     //set proper buffor and screen size
     Console.SetBufferSize(120, 55);
     Console.SetWindowSize(120, 55);
     //get application path
     string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
     //check for reg configuration
     if (isSetupComplete(path))
     {
         //run game
         Game TimeCrystals = new Game();
         TimeCrystals.GameInit();
         TimeCrystals.Draw();
         TimeCrystals.MainLoop();
     }
     else
     {
         //config game
         Console.WriteLine("Configuring your terminal...");
         ConfigTerminal(path);
         Console.WriteLine("Restarting, press any key to continiue...");
         Console.ReadKey(true);
         System.Diagnostics.Process.Start(path);
     }
 }