Exemplo n.º 1
0
        public static void DrawMainScreen()
        {
            Console.Clear();

            string[] froggyPicture = new string[]
            {
                @"            _____________________                     ",
                @"            |###################|                     ",
                @"            |###################|                     ",
                @"            |###################|                     ",
                @"((-----------------------------------------           ",
                @"| \         /  /@@ \      /@@ \  \                    ",
                @" \ \,      /  (     )    (     )  \            _____  ",
                @"  \ \      |   \___/      \___/   |           /  __ \ ",
                @"   \   *-__/                      \           | |  | |",
                @"      *-_                          -_         | |     ",
                @"         \    -.  _________   .-   __ -.__.-((  ))    ",
                @"          \,    \^    U    ^/     /   -___--((  ))    ",
                @"            \,   \         /    /'            | |     ",
                @"             |    \       /   /'              | |     ",
                @"             |      -----     \               | |     ",
                @"            /                   *-._          | |     ",
                @"           /   /\          /*-._    \         | |     ",
                @"          /   /   \______/      /   /         | |     ",
                @"         /   /                 /   /          | |     ",
                @"        /. ./                  |. .|                  ",
                @"       /  | |                  / | \                  ",
                @"      /   |  \                /  |  \                 ",
                @"     /.-./.-.|               /.-.|.-.\                "
            };

            string[] froggerText = new string[]
            {
                @"  .----------------------------------------------------------------.  ",
                @" /  .-.    ______ _____   ____   _____  _____ ______ _____     .-.  \ ",
                @"|  /   \  |  ____|  __ \ / __ \ / ____|/ ____|  ____|  __ \   /   \  |",
                @"| |\_.  | | |__  | |__) | |  | | |  __| |  __| |__  | |__) | |    /| |",
                @"|\|  | /| |  __| |  _  /| |  | | | |_ | | |_ |  __| |  _  /  |\  | |/|",
                @"| `---' | | |    | | \ \| |__| | |__| | |__| | |____| | \ \  | `---' |",
                @"|       | |_|    |_|  \_\\____/ \_____|\_____|______|_|  \_\ |       |",
                @"|       |----------------------------------------------------|       |",
                @"\       |                                                    |       /",
                @" \     /                                                      \     / ",
                @"  `---'                                                        `---'  ",
            };

            string[] navigationInstructions = new string[]
            {
                "PRESS ENTER TO START THE GAME",
                "",
                "PRESS F1 FOR INSTRUCTIONS",
                "PRESS F2 FOR SCOREBOARD",
                "PRESS Q TO QUIT"
            };

            Console.SetCursorPosition(0, (MainProgram.MaxHeight - froggyPicture.Length - froggerText.Length - navigationInstructions.Length) / 2);

            Console.ForegroundColor = ConsoleColor.Green;
            PrintStringArray(froggyPicture);
            PrintStringArray(froggerText);
            Console.ForegroundColor = ConsoleColor.DarkYellow;
            PrintStringArray(navigationInstructions);
            if (playSound)
            {
                Sounds.MainMenuSound(false);
            }

            Navigation();
        }