public static void TitleCard() { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(" ▄████▄ ▄▄▄ ██████ ▄▄▄█████▓ ██▓ ▓█████ ▓█████ ██████ ▄████▄ ▄▄▄ ██▓███ ▓█████ "); Console.WriteLine("▒██▀ ▀█ ▒████▄ ▒██ ▒ ▓ ██▒ ▓▒▓██▒ ▓█ ▀ ▓█ ▀ ▒██ ▒▒██▀ ▀█ ▒████▄ ▓██░ ██▒▓█ ▀ "); Console.WriteLine("▒▓█ ▄ ▒██ ▀█▄ ░ ▓██▄ ▒ ▓██░ ▒░▒██░ ▒███ ▒███ ░ ▓██▄ ▒▓█ ▄ ▒██ ▀█▄ ▓██░ ██▓▒▒███ "); Console.WriteLine("▒▓▓▄ ▄██▒░██▄▄▄▄██ ▒ ██▒░ ▓██▓ ░ ▒██░ ▒▓█ ▄ ▒▓█ ▄ ▒ ██▒▓▓▄ ▄██▒░██▄▄▄▄██ ▒██▄█▓▒ ▒▒▓█ ▄ "); Console.WriteLine("▒ ▓███▀ ░ ▓█ ▓██▒▒██████▒▒ ▒██▒ ░ ░██████▒░▒████▒ ░▒████▒▒██████▒▒ ▓███▀ ░ ▓█ ▓██▒▒██▒ ░ ░░▒████▒"); Console.WriteLine("░ ░▒ ▒ ░ ▒▒ ▓▒█░▒ ▒▓▒ ▒ ░ ▒ ░░ ░ ▒░▓ ░░░ ▒░ ░ ░░ ▒░ ░▒ ▒▓▒ ▒ ░ ░▒ ▒ ░ ▒▒ ▓▒█░▒▓▒░ ░ ░░░ ▒░ ░"); Console.WriteLine(" ░ ▒ ▒ ▒▒ ░░ ░▒ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ░ ░░ ░▒ ░ ░ ░ ▒ ▒ ▒▒ ░░▒ ░ ░ ░ ░"); Console.WriteLine("░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ░ "); Console.WriteLine("░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░"); Console.WriteLine("░ ░ "); Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine("\n A Text Adventure Game By Sean Giddings"); System.Threading.Thread.Sleep(2000); Console.WriteLine("\n \n \n"); MenuText.HelpMenu(); TypeLine("\n \n \n Hit ENTER to begin"); Console.ReadLine(); }
// This method handles the commands the player types into the Console public void PlayerCommand() { Console.ForegroundColor = ConsoleColor.White; string input = Console.ReadLine(); string playerCommand = input.ToUpper(); Console.ForegroundColor = ConsoleColor.Blue; if (playerCommand == "SOUTH" || playerCommand == "S") { if (PlayerLocation == 'S') { MenuText.TypeLine("You are already South.\n"); } else { PlayerLocation = 'S'; CheckPlayerLocation(); } } else if (playerCommand == "NORTH" || playerCommand == "N") { if (PlayerLocation == 'N') { MenuText.TypeLine("You are already North.\n"); } else { PlayerLocation = 'N'; CheckPlayerLocation(); } } else if (playerCommand == "EAST" || playerCommand == "E") { if (PlayerLocation == 'E') { MenuText.TypeLine("You are already East.\n"); } else { PlayerLocation = 'E'; CheckPlayerLocation(); } } else if (playerCommand == "WEST" || playerCommand == "W") { if (PlayerLocation == 'W') { MenuText.TypeLine("You are already West.\n"); } else { PlayerLocation = 'W'; CheckPlayerLocation(); } } else if (playerCommand == "EXIT") { IsPlaying = false; } else if (playerCommand == "INVENTORY" || playerCommand == "INV") { Console.ForegroundColor = ConsoleColor.DarkMagenta; Console.WriteLine("Your bag contains:"); inventory.ForEach(Console.WriteLine); Console.ForegroundColor = ConsoleColor.Blue; } else if (playerCommand == "HELP") { MenuText.HelpMenu(); } else if (playerCommand == "LOOK") { Look.LookCommand(); } else if (playerCommand.Contains("USE") == true) { UsableItems.UseItemCommand(playerCommand); } else { Console.WriteLine($"\"{playerCommand}\" is not a proper command. Please type \"HELP\" for all available commands"); } }