Intial commit with working base game and game status.
This commit is contained in:
69
Program.cs
Normal file
69
Program.cs
Normal file
@@ -0,0 +1,69 @@
|
||||
string? input;
|
||||
|
||||
Console.Clear();
|
||||
Console.WriteLine("Welcome True Programmer, to the final battle for the realms of C#.");
|
||||
Console.WriteLine("------------------------------------------------------------------");
|
||||
Thread.Sleep(1000);
|
||||
Console.WriteLine("\nThis will be the final battle against the Uncoded One..."
|
||||
+ "\nAre you ready?");
|
||||
Console.WriteLine("--------------------------------------------------------"
|
||||
+ "--------------");
|
||||
Console.ReadLine();
|
||||
|
||||
while (true)
|
||||
{
|
||||
Console.Clear();
|
||||
Console.Write("\nWould you like the heroes party to be controlled by AI? (yes/no): ");
|
||||
input = Console.ReadLine().ToLower();
|
||||
if (input == "yes" || input == "no")
|
||||
{
|
||||
if (input == "yes")
|
||||
{
|
||||
GameState.Instance.herosAIControl = true;
|
||||
}
|
||||
if (input == "no")
|
||||
{
|
||||
GameState.Instance.herosAIControl = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Please answer yes or no.");
|
||||
Thread.Sleep(1000);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
while (true)
|
||||
{
|
||||
Console.Clear();
|
||||
Console.Write("\nWould you like the monsters party to be controlled by AI? (yes/no): ");
|
||||
input = Console.ReadLine().ToLower();
|
||||
if (input == "yes" || input == "no")
|
||||
{
|
||||
if (input == "yes")
|
||||
{
|
||||
GameState.Instance.monstersAIControl = true;
|
||||
}
|
||||
if (input == "no")
|
||||
{
|
||||
GameState.Instance.monstersAIControl = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Please answer yes or no.");
|
||||
Thread.Sleep(1000);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Player player = new Player();
|
||||
GameState.Instance.heros.Add(player);
|
||||
|
||||
Console.Clear();
|
||||
Console.Write("Press Enter to to begin your battle to save True Programming...");
|
||||
Console.ReadLine();
|
||||
|
||||
GameState.Instance.Run();
|
||||
Reference in New Issue
Block a user