Example #1
0
        static public void GameMenu(CharacterClass character, Vendor vendor)
        {
            string inputAnswer = "";

            do
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine(AsciiArt.MainHeading());
                Console.ForegroundColor = ConsoleColor.DarkGreen;
                Console.WriteLine("-------------------------------------".PadLeft(58));
                Console.WriteLine("|     Main Menu                     |".PadLeft(58));
                Console.WriteLine("-------------------------------------".PadLeft(58));
                Console.WriteLine("|     Where to next:                |".PadLeft(58));
                Console.WriteLine("|     1. City                       |".PadLeft(58));
                Console.WriteLine("|     2. Adventure Menu             |".PadLeft(58));
                Console.WriteLine("|     3. Character Information      |".PadLeft(58));
                Console.WriteLine("|                                   |".PadLeft(58));
                Console.WriteLine("|     9. Try and leave island       |".PadLeft(58));
                Console.WriteLine("|     0. Quit Game                  |".PadLeft(58));
                Console.WriteLine("|                                   |".PadLeft(58));
                Console.WriteLine("-------------------------------------".PadLeft(58));

                Console.SetCursorPosition(27, 18);
                inputAnswer = Console.ReadLine();
                switch (inputAnswer)
                {
                case "1":

                    CityMenu.InCityMenu(character, vendor);
                    break;

                case "2":

                    Adventure.AdventureMenu(character);

                    break;

                case "3":
                    Console.Clear();
                    Console.WriteLine(character.ClassPrintInformation());
                    Console.ReadKey();
                    break;

                case "9":
                    Console.Clear();
                    inputAnswer = GameStory.Ending(character);


                    break;

                case "0":
                    Console.Clear();
                    Console.WriteLine("Maybe be able to save.. then we have to have a menu in the biggining start game and load");
                    Console.ReadKey();
                    break;

                default:
                    break;
                }
            } while (inputAnswer != "0");
        }