Professional Documents
Culture Documents
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace PROJECT_UPDATED
{
class Introduction
{
static void Main(string[] args)
{
string name1;
//string name2;
//string character1, character2;
//int itemorattack1 = 0;
//int itemorattack2 = 0;
//int attack1 = 0;
//int item1 = 0;
//int attack2 = 0;
//int item2 = 0;
//int player1FP = 0, player2FP = 0;
//int player1DP = 50, player2DP = 50;
Console.BackgroundColor = ConsoleColor.DarkBlue;
Console.Clear();
var myString = @"A long time ago, the Salazar sisters all lived in
harmony. It all changed when their mama started being unfair to each of them.
Now they are on a quest of fighting to find out who is........";
foreach (var character in myString)
{
Console.Write(character);
Thread.Sleep(20);
}
Console.WriteLine();
Console.WriteLine();
Console.WriteLine(@"## ## ### ## ## ### ##
###### ######## ### ## ## ####### ######## #### ######## ########
### ### ## ## ### ### ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
#### #### ## ## #### #### ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
## ### ## ## ## ## ### ## ## ## ## ###### ###### ## ## ##
## ## ## ######## ## ## ######
## ## ######### ## ## ######### ## ## ## ######### ##
## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ## ## ###### ## ## ##
### ####### ## ## #### ## ######## ");
Console.WriteLine();
var myString1 = @"Your goal is to become mama's favorite by gaining 50
Favorite Points without compromising your Diva Points or health points. Go against
your sisters by spitting out your famous unkabogable lines that will surely leave
your sister #SHOOKT!";
foreach (var character in myString1)
{
Console.Write(character);
Thread.Sleep(20);
}
Console.WriteLine();
Console.WriteLine();
var myString2 = @"ARE YOU READY?";
foreach (var character in myString2)
{
Console.Write(character);
Thread.Sleep(20);
}
Console.WriteLine();
Console.Write("Player 1, enter name please: ");
name1 = Console.ReadLine();
Console.WriteLine();
Console.WriteLine();
int currentSelection = 0;
ConsoleKey key;
Console.CursorVisible = false;
do
{
Console.Clear();
if (i == currentSelection)
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write(options[i]);
Console.ResetColor();
Console.WriteLine();
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Attacks");
Console.ResetColor();
if (currentSelection == 0)
{
for (int a = 0; a < AttacksT.Count; a++)
{
Console.WriteLine(AttacksT[a]);
Console.WriteLine(AttackDescT[a]);
Console.WriteLine();
}
Console.WriteLine();
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Items");
Console.ResetColor();
if (currentSelection == 1)
{
for (int a = 0; a < AttacksB.Count; a++)
{
Console.WriteLine(AttacksB[a]);
Console.WriteLine(AttackDescB[a]);
Console.WriteLine();
}
Console.WriteLine();
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Items");
Console.ResetColor();
if (currentSelection == 2)
{
for (int a = 0; a < AttacksG.Count; a++)
{
Console.WriteLine(AttacksG[a]);
Console.WriteLine(AttackDescG[a]);
Console.WriteLine();
}
Console.WriteLine();
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Items");
Console.ResetColor();
if (currentSelection == 3)
{
for (int a = 0; a < AttacksA.Count; a++)
{
Console.WriteLine(AttacksA[a]);
Console.WriteLine(AttackDescA[a]);
Console.WriteLine();
}
Console.WriteLine();
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Items");
Console.ResetColor();
key = Console.ReadKey(true).Key;
switch (key)
{
case ConsoleKey.LeftArrow:
{
if (currentSelection % optionsPerLine > 0)
currentSelection--;
break;
}
case ConsoleKey.RightArrow:
{
if (currentSelection % optionsPerLine <
optionsPerLine - 1)
currentSelection++;
break;
}
case ConsoleKey.UpArrow:
{
if (currentSelection >= optionsPerLine)
currentSelection -= optionsPerLine;
break;
}
case ConsoleKey.DownArrow:
{
if (currentSelection + optionsPerLine <
options.Length)
currentSelection += optionsPerLine;
break;
}
case ConsoleKey.Escape:
{
if (canCancel)
return -1;
break;
}
}
} while (key != ConsoleKey.Enter);
Console.CursorVisible = true;
return currentSelection;
}
}
}
}