public void welcomeMessage() { string welcome = "Welcome to INF 154"; int stringSize = welcome.Length; typeWriterEffect(welcome, stringSize); setCursor cursor = new setCursor(); welcome = "Are you ready for an experience of your life?(Y/N)"; stringSize = welcome.Length; cursor.WriteAt("", 0, 0); typeWriterEffectReverse(welcome, stringSize); }
public void typeWriterEffectReverse(string a, int b) { setCursor cursor = new setCursor(); int col = (b - 1); for (int i = b - 1; i >= 0; i--) { cursor.WriteAt("", col, 0); col--; Console.Write(a[i]); System.Threading. Thread.Sleep(100); } Console.WriteLine(); }
public void describeHuman() { //================================================================================================== // Banner Creation cursor.WriteAt("", 42, 0); Console.WriteLine("----------------------------------------------------------------------------"); cursor.WriteAt("", 42, 1); Console.WriteLine("\t\tTHE HUMANS - IN EACH OTHER WE TRUST"); cursor.WriteAt("", 42, 2); Console.WriteLine("----------------------------------------------------------------------------"); cursor.WriteAt("", 42, 3); //================================================================================================== // Description of Race Console.WriteLine("Under the leadership of General [INSERT NAME HERE] the Human race has"); cursor.WriteAt("", 42, 4); Console.WriteLine("evolved into a mighty force not to be reckoned with."); cursor.WriteAt("\n", 42, 5); cursor.WriteAt("", 42, 6); Console.WriteLine("With a large emphasis places on the importance of teamwork, the Humans"); cursor.WriteAt("", 42, 7); Console.WriteLine("have an advantage with the generation of Labor Points."); cursor.WriteAt("\n", 42, 8); cursor.WriteAt("", 42, 9); Console.WriteLine("For as long as can be remembered the Humans have been present no the "); cursor.WriteAt("", 42, 10); Console.WriteLine("planet Earth, and due to evolving their civilization on this planet,"); cursor.WriteAt("", 42, 11); Console.WriteLine("they have developed methods to survive the harsh terrain."); cursor.WriteAt("\n", 42, 12); cursor.WriteAt("", 42, 13); Console.WriteLine("With this evolutionary advance they suffer no penalty upon staring the game."); cursor.WriteAt("", 42, 14); Console.WriteLine("----------------------------------------------------------------------------"); //================================================================================================== }