Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            //}
        }
Ejemplo n.º 3
0
        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();
            }
        }