// Här Ritas allt på kartan ut. private void DrawFrame() { Console.Clear(); MyMap.Draw(); currentPlayer.Draw(); currentEnemy.Draw(); keyCard1.DrawKey1(); keyCard2.DrawKey2(); keyCard3.DrawKey3(); keyCard4.DrawKey4(); }
public void Start() { Console.WriteLine(@" __ __ __ __ __ ____ __ __ ____ __ __ __ ___ || || ||\ || || || \\ || || || \\ || ||\ || // \\ || || ||\\|| || || )) || || ||_// || ||\\|| (( ___ \\_// || \|| || ||_// \\_// || \\ || || \|| \\_|| ___ __ __ ___ ____ ___ __ __ ______ __ __ __ ____ // \\ || || // \\ || \\ // \\ ||\ || | || | || ||\ || || (( )) || || ||=|| ||_// ||=|| ||\\|| || || ||\\|| ||== \\_/\\ \\_// || || || \\ || || || \|| || || || \|| ||___ __...--~~~~~-._ _.-~~~~~--...__ // `V' \\ // | \\ //__...--~~~~~~-._ | _.-~~~~~~--...__\\ //__.....----~~~~._\ | /_.~~~~----.....__\\ ====================\\|//==================== `---` A text-based adventure by: || Alice Forssblad || Hanna Lönn || Martin Lundstedt ||"); Console.WriteLine(@" Press any key to play."); Console.ReadKey(); Console.Clear(); Console.Write("What is your name: "); currentPlayer.name = Console.ReadLine(); Console.Clear(); Console.WriteLine("you awake in a cold and dark school, you're in Högskolan Dalarna in Borlänge."); Console.WriteLine("You wagely remember everyone at school starting to cough and a lockdown began, but...The teachers...\nThey didn't just cough. You think A teacher starting chasing the students, everybody was screaming."); if (currentPlayer.name == "") { Console.WriteLine("\nYou can't remember much, not even your name."); Console.ReadLine(); } else if (currentPlayer.name.ToLower() == "thomas") { Console.WriteLine("\nYou can't remember much, but you have the same name as your favorite teacher!"); Console.ReadLine(); } else { Console.WriteLine("\nYou can't remember much more, but you know your name is {0} atleast.", currentPlayer.name); Console.ReadLine(); } Console.Clear(); Console.WriteLine("You can walk by writing go up, go down, go left, go right"); Console.ReadLine(); Console.Clear(); string[,] grid = { { "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", " ", "=" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", " ", "=" }, { "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", " ", "=" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", " ", "=" }, { "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", " ", "=" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", " ", "=" }, { "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", " ", "=" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "|", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|" }, { "=", " ", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=" }, }; MyMap = new Map(grid); MyMap.Draw(); currentPlayer.Draw(); currentEnemy.Draw(); currentEnemy = new Enemies(1, 13); currentPlayer = new Player(1, 15); RunGameLoop(); StoryLine(); }