Intial commit with working base game and game status.

This commit is contained in:
2025-08-24 06:58:45 -05:00
parent 5df5d66661
commit 8e458da61e
32 changed files with 927 additions and 0 deletions

69
Program.cs Normal file
View 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();