public void LoadInfo() { for (int i = 0; i < options.Length; i++) { int infoForButton = options[i].IndexOf("-"); int origWidth = (Console.WindowWidth / 2) - infoForButton; SetCursorAndPrint printer = new SetCursorAndPrint(); printer.WriteAt(options[i], origWidth, 5 + i); } }
public void SelectLevel() { string[] lines = File.ReadAllLines("LevelSelect.txt"); for (int i = 0; i < lines.Length; i++) { SetCursorAndPrint printer = new SetCursorAndPrint(); printer.WriteAt(lines[i], 30, 2 + i); } //foreach (string line in File.ReadLines("LevelSelect.txt")) //{ // Console.WriteLine("-- {0}", line); //} }
public void LoadLogoNow() { string[] lines = File.ReadAllLines("Logo.txt"); for (int i = 0; i < 5; i++) { for (int j = 0; j < 10; j++) { SetCursorAndPrint printer = new SetCursorAndPrint(); printer.WriteAt(lines[i * 10 + j], 20, 5 + j); //WriteAt(lines[i * 10 + j], 20, 5 + j); } if (i == 4) { System.Threading.Thread.Sleep(2000); } else { System.Threading.Thread.Sleep(100); } Console.Clear(); } }