public static void GameStory() { using (StreamReader sr = new StreamReader(@"..\..\Text\Story.txt")) { sr.ReadAndType(); } Console.WriteLine(); Console.WriteLine(" PRESS ANY KEY TO CHOOSE LEVEL AND START YOUR BATTLE..."); Reaction.Wait(); }
protected override void LevelFinished() { Console.Clear(); this.ChangeConsoleColor(ConsoleColor.Yellow); using (StreamReader sr = new StreamReader(@"..\..\Text\DemonVaultFinished.txt")) { sr.ReadAndType(); } this.Hero.ResetHealth(); this.Hero.IncreaseAgility(this.Hero.PlayerStats.Agility); //this will double the hero agility this.ChangeConsoleColor(ConsoleColor.White); Reaction.Wait(); }
protected override void Intro() { using (StreamReader sr = new StreamReader(@"..\..\Text\DemonVaultIntro.txt")) { sr.ReadAndType(); } Reaction.Wait(); }
protected override void LevelFinished() { bool crossbowChoice; if (this.Hero.PlayerStats.Stamina > 0) { Console.Clear(); using (StreamReader sr = new StreamReader(@"..\..\Text\ZombieMountainFinished.txt")) { sr.ReadAndType(); } } crossbowChoice = Reaction.CheckKey(ConsoleKey.Spacebar, ConsoleKey.Escape); if (crossbowChoice) { Thread.Sleep(1500); Console.WriteLine("\nPicking up the item!"); this.Hero.Weapon = Weapon.CrossBow; } else { Thread.Sleep(1500); Console.WriteLine("\nOKAY! I did say it will come in handy though!"); } Thread.Sleep(1500); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\nCONGRATULATIONS!"); Thread.Sleep(1500); Console.WriteLine("\nYou have found a secret passage that helps you get out of this zombie hell!"); Console.ForegroundColor = ConsoleColor.Gray; }
protected override void Intro() { Console.CursorVisible = false; using (StreamReader sr = new StreamReader(@"..\..\Text\ZombieMountainIntro.txt")) { sr.ReadAndType(); } Reaction.Wait(); }
protected override void LevelFinished() { if (this.Hero.PlayerStats.Stamina > 0) { Console.Clear(); using (StreamReader sr = new StreamReader(@"..\..\Text\DarkForestFinished.txt")) { sr.ReadAndType(); } bool decision = Reaction.CheckKey(ConsoleKey.Spacebar, ConsoleKey.Escape); if (decision) { int increaseHealthValue = rand.Next(20, 31); int decreaseAgilityValue = rand.Next(20, 31); this.Hero.IncreaseHealth(increaseHealthValue); this.Hero.DecreaseAgility(decreaseAgilityValue); Console.WriteLine("+ {0} Health", increaseHealthValue); Console.WriteLine("- {0} Agility", decreaseAgilityValue); } } else { //TODO: Game Over Console.WriteLine("Game Over!!!"); } }