Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MidtermExam12EvansSamaniegoLadimo
- {
- class Program
- {
- static void Main(string[] args)
- {
- Title();
- first();
- Win();
- Lose();
- }
- public static void Title()
- {
- Console.Title = "THE ANNUAL PURGE GAME";
- Console.BackgroundColor = ConsoleColor.Black;
- Console.ForegroundColor = ConsoleColor.Red;
- System.Media.SoundPlayer player = new System.Media.SoundPlayer();
- player.SoundLocation = "The Purge - Announcement HD.wav";
- player.Play();
- Console.WriteLine(@"
- ______ _ _ ____ ______ _ _ __ _ _ _ _______ _ _____ _ _ ____ _____ ____
- /________/\/__/\ /__/\ /_____/\ /_______/\ /__/\ /__/\ /__/\ /__/\ /_/\/_/\ /_______/\ /_/\ /_____/\ /_/\/_/\ /_____/\ /______/\ /_____/\
- \__.::.__\/\::\ \\ \ \\::::_\/_ \::: _ \ \\::\_\\ \ \\::\_\\ \ \\:\ \:\ \\::: _ \ \\:\ \ \:::_ \ \\:\ \:\ \\:::_ \ \\::::__\/_ \::::_\/_
- \::\ \ \::\/_\ .\ \\:\/___/\ \::() \ \\:. `-\ \ \\:. `-\ \ \\:\ \:\ \\::() \ \\:\ \ \:() \ \\:\ \:\\\:() ) )\:\/____/\ \:\/___/\
- \::\ \ \::_::\ \\::___\/_ \:: _ \ \\:. _ \ \\:. _ \ \\:\ \:\ \\:: _ \ \\:\ \____ \: __ \/ \:\ \:\ \\: _`\ \\:\\_ \/ \ ::___\/
- \::\ \ \: \ \\::\ \\:\____/\ \:.\ \ \ \\. \`-\ \ \\. \`-\ \ \\:\_\:\ \\:.\ \ \ \\:\/___/\ \ \ \ \:\_\:\ \\ \`\ \ \\:\_\ \ \ \:\____/\
- \__\/ \__\/ \::\/ \_____\/ \__\/\__\/ \__\/ \__\/ \__\/ \__\/ \_____\/ \__\/\__\/ \_____\/ \_\/ \_____\/ \_\/\_\/ \_____\ / \_____\/
- ");
- Console.WriteLine("Press 'Enter' to start.");
- Console.ReadLine();
- Console.WriteLine("Welcome to the Annual Purge");
- Console.WriteLine("You have 1 hour left until the Annual Purge.");
- Console.ReadLine();
- Console.Clear();
- first();
- }
- public static void first()
- {
- string choice;
- Console.WriteLine("Pick your character.");
- Console.ReadLine();
- Console.WriteLine("------------------------------------------------------------------------------CHARACTERS-------------------------------------------------------------------------------");
- Console.WriteLine(@"
- ## ####### ## ## ## ##
- ## ## ## ## ## ### ##
- ## ## ## ## ## #### ##
- ## ## ## ######### ## ## ##
- ## ## ## ## ## ## ## ####
- ## ## ## ## ## ## ## ###
- b ###### ####### ## ## ## ##
- ###### ## ### ## ## ## ## ####### ######## ########
- ## ## ## ## ## ## ## ### ### ## ## ## ## ##
- ## ## ## ## #### #### #### ## ## ## ## ##
- ## ## ## ## ## ## ### ## ## ## ######## ######
- ## ## ######### ## ## ## ## ## ## ## ##
- ## ## ## ## ## ## ## ## ## ## ## ## ##
- ###### ######## ## ## ## ## ## ####### ## ## ########
- ");
- Console.WriteLine(" ============================================================================================");
- Console.WriteLine("" +
- " < -Machine Gun Attack (20 damage) >" +
- " < -Mega Pistol Attack (30 damage) >");
- Console.WriteLine("" +
- " < -Stamina = 50% >");
- Console.WriteLine(" ============================================================================================");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("-----------------------------------------------------------------------------------------------------------------------------------------------------------------------");
- Console.ReadLine();
- Console.WriteLine(@"
- ________.___ __________________________ .____
- \______ \ |/ ____/\_ __/\____ \ | |
- | __/ |\____ \ | | / | \| |
- | | | |/ \ | | / | \ |___
- |____| |___/______ / |____| \_______ /_______ \
- \/ \/ \/
- _________________________________________
- \______ \_ ____/\_ __/\ _____/
- | __/| _)_ | | | _)
- | | | \ | | | \
- |____| /_______ /|____| /_______ /
- \/ \/
- ");
- Console.WriteLine(" ========================================");
- Console.WriteLine("" +
- " < -Snipe (25 damage) >" +
- " < -Headshot (30 damage) >");
- Console.WriteLine("" +
- " < -Stamina=50% >");
- Console.WriteLine(" ========================================");
- Console.WriteLine("");
- Console.WriteLine("-----------------------------------------------------------------------------------------------------------------------------------------------------------------------");
- Console.ReadLine();
- Console.WriteLine(@"
- ___ _ _ _ _ __ _____ _ _
- / ___| | | | \/ |/ _ \ |__ __|/\ | \ | |
- | (_ | | | \ / | | | | | | / \ | \| |
- \___ \| | | | |\/| | | | | | | / /\ \ | . ` |
- _ _) | |__| | | | | |_| | | |/ __ \| |\ |
- |_____/ \____/|_| |_|\____/ |_/_/ \_\_| \_|
- ");
- Console.WriteLine(" ============================");
- Console.WriteLine("" +
- " < -Flamethrower (30 damage) >" +
- " < -Acid Rain (35 damage) >");
- Console.WriteLine("" +
- " < -Stamina = 50% >");
- Console.WriteLine("" +
- " < -Dodge Enemy Defense >");
- Console.WriteLine(" ============================");
- Console.WriteLine("");
- Console.WriteLine("-----------------------------------------------------------------------------------------------------------------------------------------------------------------------");
- Console.ReadLine();
- Console.WriteLine("Please pick a character:");
- Console.WriteLine("1.) JOHN CLAYMORE");
- Console.WriteLine("2.) PISTOL PETE");
- Console.WriteLine("3.) SUMO TAN");
- Console.Write("Character:");
- choice = Console.ReadLine().ToLower();
- Console.Clear();
- int health, stamina;
- switch (choice)
- {
- case "1":
- case "john":
- case "claymore":
- case "john claymore":
- {
- if (choice == "1" || choice == "john" || choice == "claymore" || choice == "john claymore")
- {
- health = 100;
- stamina = 50;
- int attack;
- Console.WriteLine("John Claymore-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- bool Fight1 = true;
- Console.WriteLine("The Purge has now begun");
- Console.WriteLine("You are now to encounter enemies along the way");
- int j_rottenhp = 100, j_rottenstamina = 100;
- while (Fight1)
- {
- Console.WriteLine("John Claymore-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("JOHNNY ROTTEN:");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Machine Gun attack (-20 hp : 5 stamina)");
- Console.WriteLine("2- Mega Pistol Attack (- 30 hp : 7 stamina)");
- Console.Write("Attack: ");
- attack = int.Parse(Console.ReadLine());
- if (attack == 1)
- {
- stamina -= 5;
- j_rottenhp -= 20;
- Console.WriteLine("JOHNNY ROTTEN GOT HURT");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- if (j_rottenhp <= 0)
- {
- Console.WriteLine("JOHNNY ROTTEN IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat JOHNNY ROTTEN!! Onto the next");
- break;
- }
- Console.WriteLine("JOHNNY ROTTEN FIGHT BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack == 2)
- {
- stamina -= 7;
- j_rottenhp -= 30;
- Console.WriteLine("JOHNNY ROTTEN GOT HURT");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- if (j_rottenhp <= 0)
- {
- Console.WriteLine("JOHNNY ROTTEN IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat JOHNNY ROTTEN!! Onto the next");
- Fight1 = false;
- }
- Console.WriteLine("JOHNNY ROTTEN FIGHT BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- health = 100;
- stamina = 100;
- int k_shadeyhp = 150, k_shadeystamina = 30;
- bool Fight2 = true;
- while (Fight2)
- {
- int attack1;
- Console.WriteLine("New enemy: Kim Shadey. . .");
- Console.WriteLine("John Claymore-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("KIM SHADEY:");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Machine Gun Attack (-20 hp : 5 stamina)");
- Console.WriteLine("2- Mega Pistol Attack (- 30 hp : 7 stamina)");
- attack1 = int.Parse(Console.ReadLine());
- if (attack1 == 1)
- {
- stamina -= 5;
- k_shadeyhp -= 20;
- Console.WriteLine("KIM SHADEY GOT HURT");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- if (k_shadeyhp <= 0)
- {
- Console.WriteLine("KIM SHADEY IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat KIM SHADEY!!");
- Fight2 = false;
- }
- Console.WriteLine("KIM SHADEY FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 25");
- health -= 25;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack1 == 2)
- {
- stamina -= 7;
- k_shadeyhp -= 30;
- Console.WriteLine("KIM SHADEY GOT HURT");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- if (k_shadeyhp <= 0)
- {
- Console.WriteLine("KIM SHADEY IS DOWN");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("You have successfully beat KIM SHADEY!!");
- Fight2 = false;
- }
- Console.WriteLine("KIM SHADEY FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- health = 100;
- stamina = 100;
- int j_hp = 160, j_stamina = 30;
- bool fight3 = true;
- while (fight3)
- {
- int attack1;
- Console.WriteLine("New enemy: Jay Brown. . .");
- Console.WriteLine("John Claymore-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("Jay Brown:");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Machine Gun Attack (-20 hp : 5 stamina)");
- Console.WriteLine("2- Mega Pistol Attack (- 30 hp : 7 stamina)");
- attack1 = int.Parse(Console.ReadLine());
- if (attack1 == 1)
- {
- stamina -= 5;
- j_hp -= 20;
- Console.WriteLine("Jay Brown GOT HURT");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- if (j_hp <= 0)
- {
- Console.WriteLine("Jay Brown IS DOWN");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("You have successfully beat JAY BROWN!!");
- Win();
- }
- Console.WriteLine("Jay Brown FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 25");
- health -= 25;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack1 == 2)
- {
- stamina -= 7;
- j_hp -= 30;
- Console.WriteLine("JAY BROWN GOT HURT");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- if (j_hp <= 0)
- {
- Console.WriteLine("JAY BROWN IS DOWN");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("You have successfully beat JAY BROWN!!");
- Win();
- }
- Console.WriteLine("Jay Brown FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- }
- }
- break;
- case "2":
- case "pistol":
- case "pete":
- case "pistol pete":
- {
- if (choice == "2" || choice == "pistol" || choice == "pete" || choice == "pistol pete")
- {
- health = 100;
- stamina = 100;
- int attack;
- Console.WriteLine("Pistol Pete-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- bool Fight1 = true;
- Console.WriteLine("The Purge has now begun");
- Console.WriteLine("You are now to encounter enemies along the way");
- int j_rottenhp = 100, j_rottenstamina = 100;
- while (Fight1)
- {
- Console.WriteLine("Pistol Pete-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("JOHNNY ROTTEN:");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Snipe (-25 hp : 5 stamina)");
- Console.WriteLine("2- Headshot (- 30 hp : 7 stamina)");
- Console.Write("Attack: ");
- attack = int.Parse(Console.ReadLine());
- if (attack == 1)
- {
- stamina -= 5;
- j_rottenhp -= 25;
- Console.WriteLine("JOHNNY ROTTEN GOT HURT");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- if (j_rottenhp <= 0)
- {
- Console.WriteLine("JOHNNY ROTTEN IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat JOHNNY ROTTEN!! Onto the next");
- break;
- }
- Console.WriteLine("JOHNNY ROTTEN FIGHT BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack == 2)
- {
- stamina -= 7;
- j_rottenhp -= 40;
- Console.WriteLine("JOHNNY ROTTEN GOT HURT");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- if (j_rottenhp <= 0)
- {
- Console.WriteLine("JOHNNY ROTTEN IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat JOHNNY ROTTEN!! Onto the next");
- Fight1 = false;
- }
- Console.WriteLine("JOHNNY ROTTEN FIGHT BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- health = 100;
- stamina = 100;
- int k_shadeyhp = 150, k_shadeystamina = 30;
- bool Fight2 = true;
- while (Fight2)
- {
- int attack1;
- Console.WriteLine("New enemy: Kim Shadey. . .");
- Console.WriteLine("Pistol Pete-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("KIM SHADEY:");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Snipe (-25 hp : 5 stamina)");
- Console.WriteLine("2- Headshot (- 30 hp : 7 stamina)");
- attack1 = int.Parse(Console.ReadLine());
- if (attack1 == 1)
- {
- stamina -= 5;
- k_shadeyhp -= 25;
- Console.WriteLine("KIM SHADEY GOT HURT");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- if (k_shadeyhp <= 0)
- {
- Console.WriteLine("KIM SHADEY IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat KIM SHADEY!!");
- Fight2 = false;
- }
- Console.WriteLine("KIM SHADEY FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 25");
- health -= 25;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack1 == 2)
- {
- stamina -= 7;
- k_shadeyhp -= 40;
- Console.WriteLine("KIM SHADEY GOT HURT");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- if (k_shadeyhp <= 0)
- {
- Console.WriteLine("KIM SHADEY IS DOWN");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("You have successfully beat KIM SHADEY!!");
- Fight2 = false;
- }
- Console.WriteLine("KIM SHADEY FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- health = 100;
- stamina = 100;
- int j_hp = 160, j_stamina = 30;
- bool fight3 = true;
- while (fight3)
- {
- int attack1;
- Console.WriteLine("New enemy: Jay Brown. . .");
- Console.WriteLine("John Claymore-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("Jay Brown:");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Snipe (-25 hp : 5 stamina)");
- Console.WriteLine("2- Headshot (- 30 hp : 7 stamina)");
- attack1 = int.Parse(Console.ReadLine());
- if (attack1 == 1)
- {
- stamina -= 5;
- j_hp -= 20;
- Console.WriteLine("Jay Brown GOT HURT");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- if (j_hp <= 0)
- {
- Console.WriteLine("Jay Brown IS DOWN");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("You have successfully beat JAY BROWN!!");
- Win();
- }
- Console.WriteLine("Jay Brown FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 25");
- health -= 25;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack1 == 2)
- {
- stamina -= 7;
- j_hp -= 30;
- Console.WriteLine("JAY BROWN GOT HURT");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- if (j_hp <= 0)
- {
- Console.WriteLine("JAY BROWN IS DOWN");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("You have successfully beat JAY BROWN!!");
- Win();
- }
- Console.WriteLine("Jay Brown FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- }
- }
- break;
- case "3":
- case "sumo":
- case "tan":
- case "sumo tan":
- {
- if (choice == "3" || choice == "sumo" || choice == "tan" || choice == "sumo tan")
- {
- health = 100;
- stamina = 100;
- int attack;
- Console.WriteLine("Sumo Tan-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- bool Fight1 = true;
- Console.WriteLine("The Purge has now begun");
- Console.WriteLine("You are now to encounter enemies along the way");
- int j_rottenhp = 100, j_rottenstamina = 100;
- while (Fight1)
- {
- Console.WriteLine("Sumo Tan-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("JOHNNY ROTTEN:");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Flamethrower (-30 hp : 5 stamina)");
- Console.WriteLine("2- Acid Rain (- 35 hp : 7 stamina)");
- Console.Write("Attack: ");
- attack = int.Parse(Console.ReadLine());
- if (attack == 1)
- {
- stamina -= 5;
- j_rottenhp -= 25;
- Console.WriteLine("JOHNNY ROTTEN GOT HURT");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- if (j_rottenhp <= 0)
- {
- Console.WriteLine("JOHNNY ROTTEN IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat JOHNNY ROTTEN!! Onto the next");
- break;
- }
- Console.WriteLine("JOHNNY ROTTEN FIGHT BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack == 2)
- {
- stamina -= 7;
- j_rottenhp -= 40;
- Console.WriteLine("JOHNNY ROTTEN GOT HURT");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("Stamina: " + j_rottenstamina);
- if (j_rottenhp <= 0)
- {
- Console.WriteLine("JOHNNY ROTTEN IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat JOHNNY ROTTEN!! Onto the next");
- Fight1 = false;
- }
- Console.WriteLine("JOHNNY ROTTEN FIGHT BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- health = 100;
- stamina = 100;
- int k_shadeyhp = 150, k_shadeystamina = 30;
- bool Fight2 = true;
- while (Fight2)
- {
- int attack1;
- Console.WriteLine("New enemy: Kim Shadey. . .");
- Console.WriteLine("Sumo Tan-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("KIM SHADEY:");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Flamethrower (-30 hp : 5 stamina)");
- Console.WriteLine("2- Acid Rain (- 35 hp : 7 stamina)");
- attack1 = int.Parse(Console.ReadLine());
- if (attack1 == 1)
- {
- stamina -= 5;
- k_shadeyhp -= 25;
- Console.WriteLine("KIM SHADEY GOT HURT");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- if (k_shadeyhp <= 0)
- {
- Console.WriteLine("KIM SHADEY IS DOWN");
- Console.WriteLine("Health: " + j_rottenhp);
- Console.WriteLine("You have successfully beat KIM SHADEY!!");
- Fight2 = false;
- }
- Console.WriteLine("KIM SHADEY FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 25");
- health -= 25;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack1 == 2)
- {
- stamina -= 7;
- k_shadeyhp -= 40;
- Console.WriteLine("KIM SHADEY GOT HURT");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("Stamina: " + k_shadeystamina);
- if (k_shadeyhp <= 0)
- {
- Console.WriteLine("KIM SHADEY IS DOWN");
- Console.WriteLine("Health: " + k_shadeyhp);
- Console.WriteLine("You have successfully beat KIM SHADEY!!");
- Fight2 = false;
- }
- Console.WriteLine("KIM SHADEY FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- health = 100;
- stamina = 100;
- int j_hp = 160, j_stamina = 30;
- bool fight3 = true;
- while (fight3)
- {
- int attack1;
- Console.WriteLine("New enemy: Jay Brown. . .");
- Console.WriteLine("John Claymore-HEALTH:" + health + "%");
- Console.WriteLine(" -STAMINA:" + stamina + "%");
- Console.WriteLine("Jay Brown:");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- Console.WriteLine("Choose your attack");
- Console.WriteLine("1- Flamethrower (-30 hp : 5 stamina)");
- Console.WriteLine("2- Acid Rain (- 35 hp : 7 stamina)");
- attack1 = int.Parse(Console.ReadLine());
- if (attack1 == 1)
- {
- stamina -= 5;
- j_hp -= 20;
- Console.WriteLine("Jay Brown GOT HURT");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- if (j_hp <= 0)
- {
- Console.WriteLine("Jay Brown IS DOWN");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("You have successfully beat JAY BROWN!!");
- Win();
- }
- Console.WriteLine("Jay Brown FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 25");
- health -= 25;
- if (health == 0)
- {
- Lose();
- }
- }
- else if (attack1 == 2)
- {
- stamina -= 7;
- j_hp -= 30;
- Console.WriteLine("JAY BROWN GOT HURT");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("Stamina: " + j_stamina);
- if (j_hp <= 0)
- {
- Console.WriteLine("JAY BROWN IS DOWN");
- Console.WriteLine("Health: " + j_hp);
- Console.WriteLine("You have successfully beat JAY BROWN!!");
- Win();
- }
- Console.WriteLine("Jay Brown FIGHTS BACKS");
- Console.WriteLine("Your health decreases - 30");
- health -= 30;
- if (health == 0)
- {
- Lose();
- }
- }
- else
- {
- Console.WriteLine("Please enter a valid command");
- Console.WriteLine("Press 'Enter' to go back");
- Console.ReadLine();
- }
- }
- }
- }
- break;
- default:
- Console.WriteLine("Choice is Invalid");
- Console.WriteLine("Press 'Enter' to pick another option.");
- Console.ReadLine();
- Console.Clear();
- first();
- break;
- }
- }
- public static void Lose()
- {
- Console.Clear();
- Console.WriteLine("YOU DIED!");
- Console.WriteLine("Would you like to participate again?");
- Console.WriteLine("Press 'Enter' to participate again.");
- Console.ReadLine();
- Console.Clear();
- Title();
- }
- public static void Win()
- {
- Console.Clear();
- Console.WriteLine("Congratulations,you survive the purge.");
- Console.WriteLine("Would you like to participate again?");
- Console.WriteLine("Press 'Enter' to participate again.");
- Console.ReadLine();
- Console.Clear();
- Title();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement