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); } }
public static void GameOver() { Game g = new Game(); g.clearScreen(0, 0, 0, 0); Console.SetCursorPosition(30, 25); Text.Write("|c[13]YOU ARE DEAD. GAME OVER!!!"); Console.ReadKey(); Environment.Exit(0); }