public static void Main(string[] argv) { //Console.WriteLine(Convert.ToBase64String(CryptoManager.GetHash("τнιs_ραssωοяδ_ιs_μηοβταιηαβℓε‽"))); //Console.ReadLine(); //#if DEBUG // isDebug = true; //#else // isDebug = false; //#endif #if useFConsole useFConsole = true; Console = new FConsole(); #endif assembly = Assembly.GetExecutingAssembly(); directory = Path.GetDirectoryName(assembly.Location); Console.OutputEncoding = System.Text.Encoding.UTF8; Console.Title = "Snake"; InitOptions(argv); SetColor(defaultColor); Console.CursorVisible = false; game = new Game(Options); Highscore += 0; WarningPause(); game.StartInputManager(); }
static public void CreateConfigFile() { Console.SetCursorPosition(0, 0); Console.Clear(); Console.WriteLine("I am going to create a config file at " + fullFileName); Console.WriteLine("Press any key to continue..."); Console.WriteLine("If you do not whish to continue press Esc"); Console.WriteLine("If you whish to open the file press O"); Keys a = FConsole.Convert(Console.ReadKey()); if (a == Keys.Escape) { Console.Clear(); return; } File.WriteAllText(fullFileName, defaultJson); Console.Clear(); hasOptionFile = true; if (a == Keys.O) { Event_options(); } }