static void Main(string[] args) {
UIBin elementsUI = new UIBin();
PlayerSplashScreens splashScreen = new PlayerSplashScreens();
splashScreen.WelcomeScreen();
if (splashScreen.GetPlayerPLAY() == false) { Environment.Exit(0); }
MAP.SetMapSize(MAP.PlayerMapSize());
Debug("Setting world size");
Dwarf PLAYER = new Dwarf();
PlayerHUD PLAYERstats = new PlayerHUD();
PLAYERstats.SetWorldSize(MAP.GetMapSize());
Debug("Loading player statistics");
PLAYERstats.SetPlayerName();
Debug("Loading player name");
PLAYER.GeneratePlayerStart(MAP.GetMapSize());
Debug("Loading player name");
Enemies enemy1 = new Enemies();
MAP.SetFullMap(enemy1.EnemiesSpawn("Enemy1", MAP.GetFullMap(), PLAYER.GetPlayerX(), PLAYER.GetPlayerY()));
Debug("Loading enemy_1");
Enemies enemy2 = new Enemies();
MAP.SetFullMap(enemy2.EnemiesSpawn("Enemy2", MAP.GetFullMap(), PLAYER.GetPlayerX(), PLAYER.GetPlayerY()));
Debug("Loading enemy_2");
Enemies enemy3 = new Enemies();
MAP.SetFullMap(enemy3.EnemiesSpawn("Enemy3", MAP.GetFullMap(), PLAYER.GetPlayerX(), PLAYER.GetPlayerY()));
Debug("Loading enemy_3");
Debug("Press 'T' to continue.");
splashScreen.Instructions();
PLAYERstats.OutputHUDClr();
MAP.PrintPLAYERView(PLAYER.GetPlayerX(), PLAYER.GetPlayerY());
ConsoleKey userInput = ConsoleKey.Spacebar;
while (userInput != ConsoleKey.D2) {
userInput = Console.ReadKey().Key;
System.Threading.Thread.Sleep(10);
if (userInput == ConsoleKey.W || userInput == ConsoleKey.A || userInput == ConsoleKey.S || userInput == ConsoleKey.D
|| userInput == ConsoleKey.UpArrow || userInput == ConsoleKey.LeftArrow || userInput == ConsoleKey.DownArrow || userInput == ConsoleKey.RightArrow) {
if(userInput == ConsoleKey.W || userInput == ConsoleKey.A || userInput == ConsoleKey.S || userInput == ConsoleKey.D) { PLAYER.Move(userInput, MAP.GetFullMap()); }
if(userInput == ConsoleKey.UpArrow || userInput == ConsoleKey.LeftArrow || userInput == ConsoleKey.DownArrow || userInput == ConsoleKey.RightArrow) {
MAP.SetFullMap(PLAYER.BreakTree(userInput, MAP.GetFullMap()));
MAP.SetFullMap(PLAYER.FightEnemy(userInput, MAP.GetFullMap(), PLAYERstats.GetPlayerName()));
PLAYERstats.SetPlayerEXP(PLAYER.GetPlayerEXP());
Console.Clear(); PLAYERstats.OutputHUDClr();
MAP.PrintPLAYERView(PLAYER.GetPlayerX(), PLAYER.GetPlayerY());
if (PLAYERstats.GetPlayerEXP() == 10) { splashScreen.LevelUp(); System.Threading.Thread.Sleep(5000); }
PLAYERstats.SetPlayerEXP(PLAYER.GetPlayerEXP());
PLAYERstats.OutputHUDClr();
MAP.PrintPLAYERView(PLAYER.GetPlayerX(), PLAYER.GetPlayerY());
static void Debug(string text) { Console.WriteLine(text + "..."); System.Threading.Thread.Sleep(100); }
Random randNum = new Random();
UIBin elementsUI = new UIBin();
int mapSize; int mapViewSize = 7;
public int[,] GetFullMap() { return worldMap; }
public void SetFullMap(int[,] newWM) { worldMap = newWM; }
public int[,] GetMessedMap() { return worldMapMessed; }
public int GetMapSize() { return mapSize; }
public void SetMapSize(int userSz) { mapSize = userSz; worldMap = new int[mapSize, mapSize]; }
public int GetSavedPX() { return savedPX; }
public int GetSavedPY() { return savedPY; }
public int PlayerMapSize() {
UIBin elementsUI = new UIBin();
elementsUI.ColoredText("blue", "Enter a world size [Between 50 and 999]... ");
int reply = Convert.ToInt32(Console.ReadLine());
if (reply >= 50 && reply <= 999) { return reply; }
else { Console.Write("Invlaid value, world size is set to 50...\n"); System.Threading.Thread.Sleep(750); return 50; }
for (int e = 0; e < worldMap.GetLength(0); e++) {
for (int q = 0; q < worldMap.GetLength(1); q++) {
worldMap[e, q] = randNum.Next(1, 6);
public void PrintPLAYERView(int playerX, int playerY) {
playerX += (mapViewSize); playerY += (mapViewSize);
SavePlayerX(playerX); SavePlayerY(playerY);
for (int e = playerY - mapViewSize / 2; e <= playerY + mapViewSize / 2; e++) {
for (int q = playerX - mapViewSize / 2; q <= playerX + mapViewSize / 2; q++) {
if (e != playerY || q != playerX) {
switch (worldMapMessed[e, q]) {
elementsUI.ColoredText("red", " . ");
elementsUI.ColoredText("blueL", " ~~~ ");
elementsUI.ColoredText("green", " {#} ");
elementsUI.ColoredText("white", " ... ");
elementsUI.ColoredText("red", " -o- ");
private void CreateMessedMAP() {
worldMapMessed = new int[worldMap.GetLength(0) + (mapViewSize * 2), worldMap.GetLength(1) + (mapViewSize * 2)];
for (int e = 0; e < worldMap.GetLength(0); e++) { for (int q = 0; q < worldMap.GetLength(1); q++) { worldMapMessed[e + mapViewSize, q + mapViewSize] = worldMap[e, q]; } }
for (int e = 0; e < worldMapMessed.GetLength(0); e++) {
for (int q = 0; q < worldMapMessed.GetLength(1); q++) {
if (worldMapMessed[e, q] != 1 && worldMapMessed[e, q] != 2 && worldMapMessed[e, q] != 3 && worldMapMessed[e, q] != 4 && worldMapMessed[e, q] != 5 && worldMapMessed[e, q] != 6) { worldMapMessed[e, q] = 0; }
private void SavePlayerX(int plyX) { savedPX = plyX; }
private void SavePlayerY(int plyY) { savedPY = plyY; }
Random randNum = new Random();
public void SetPlayerX(int newX) { playerX = newX; }
public void SetPlayerY(int newY) { playerY = newY; }
public void SetPlayerEXP(int newEX) { expAdd = newEX; }
public int GetPlayerX() { return playerX; }
public int GetPlayerY() { return playerY; }
public int GetPlayerEXP() { return expAdd; }
public void Move(ConsoleKey uInput, int[,] worldMap) {
UIBin uiBin = new UIBin();
if (uInput == ConsoleKey.W) { playerY = MoveUP(worldMap, playerX, playerY, uiBin); }
else if (uInput == ConsoleKey.A) { playerX = MoveLEFT(worldMap, playerX, playerY, uiBin); }
else if (uInput == ConsoleKey.S) { playerY = MoveDOWN(worldMap, playerX, playerY, uiBin); }
else if (uInput == ConsoleKey.D) { playerX = MoveRIGHT(worldMap, playerX, playerY, uiBin); }
static int MoveDOWN(int[,] worldMap, int playerX, int playerY, UIBin uiBin) {
if (playerY + 1 < worldMap.GetLength(0)) {
if (worldMap[playerY + 1, playerX] == 0 || worldMap[playerY + 1, playerX] == 1 || worldMap[playerY + 1, playerX] == 2) { PlayerShake(uiBin); return playerY; }
else { return playerY + 1; }
else { PlayerShake(uiBin); return playerY; }
static int MoveUP(int[,] worldMap, int playerX, int playerY, UIBin uiBin) {
if (worldMap[playerY - 1, playerX] == 0 || worldMap[playerY - 1, playerX] == 1 || worldMap[playerY - 1, playerX] == 2) { PlayerShake(uiBin); return playerY; }
else { return playerY - 1; }
else { PlayerShake(uiBin); return playerY; }
static int MoveRIGHT(int[,] worldMap, int playerX, int playerY, UIBin uiBin) {
if (playerX + 1 < worldMap.GetLength(1)) {
if (worldMap[playerY, playerX + 1] == 0 || worldMap[playerY, playerX + 1] == 1 || worldMap[playerY, playerX + 1] == 2) { PlayerShake(uiBin); return playerX; }
else { return playerX + 1; }
else { PlayerShake(uiBin); return playerX; }
static int MoveLEFT(int[,] worldMap, int playerX, int playerY, UIBin uiBin) {
if (worldMap[playerY, playerX - 1] == 0 || worldMap[playerY, playerX - 1] == 1 || worldMap[playerY, playerX - 1] == 2) { PlayerShake(uiBin); return playerX; }
else { return playerX - 1; }
else { PlayerShake(uiBin); return playerX; }
static void PlayerShake(UIBin uiBin) {
int defaultCursorX = Console.CursorLeft;
int defaultCursorY = Console.CursorTop;
Console.SetCursorPosition(14, 6);
uiBin.PlayerShakeL(); System.Threading.Thread.Sleep(25);
Console.SetCursorPosition(14, 6);
uiBin.PlayerShakeM(); System.Threading.Thread.Sleep(25);
Console.SetCursorPosition(14, 6);
uiBin.PlayerShakeR(); System.Threading.Thread.Sleep(25);
Console.SetCursorPosition(defaultCursorX, defaultCursorY);
public int[,] BreakTree(ConsoleKey uInput, int[,] worldMap) {
UIBin uiBin = new UIBin();
if (uInput == ConsoleKey.UpArrow) { return BreakUp(worldMap, playerX, playerY); }
else if (uInput == ConsoleKey.LeftArrow) { return BreakLEFT(worldMap, playerX, playerY); }
else if (uInput == ConsoleKey.DownArrow) { return BreakDown(worldMap, playerX, playerY); }
else if (uInput == ConsoleKey.RightArrow) { return BreakRight(worldMap, playerX, playerY); }
else { return worldMap; }
static int[,] BreakDown(int[,] worldMap, int playerX, int playerY) {
if (worldMap[playerY + 1, playerX] == 2) { worldMap[playerY + 1, playerX] = 3; return worldMap; }
else { return worldMap; }
static int[,] BreakUp(int[,] worldMap, int playerX, int playerY) {
if (worldMap[playerY - 1, playerX] == 2) { worldMap[playerY - 1, playerX] = 3; return worldMap; }
else { return worldMap; }
static int[,] BreakRight(int[,] worldMap, int playerX, int playerY) {
if (worldMap[playerY, playerX + 1] == 2) { worldMap[playerY, playerX + 1] = 3; return worldMap; }
else { return worldMap; }
static int[,] BreakLEFT(int[,] worldMap, int playerX, int playerY) {
if (worldMap[playerY, playerX - 1] == 2) { worldMap[playerY, playerX - 1] = 3; return worldMap; }
else { return worldMap; }
public int[,] FightEnemy(ConsoleKey uInput, int[,] worldMap, string playerName) {
UIBin uiBin = new UIBin();
if (uInput == ConsoleKey.UpArrow) { return BreakUp(worldMap, playerX, playerY, playerName, expAdd); }
else if (uInput == ConsoleKey.LeftArrow) { return BreakLEFT(worldMap, playerX, playerY, playerName, expAdd); }
else if (uInput == ConsoleKey.DownArrow) { return BreakDown(worldMap, playerX, playerY, playerName, expAdd); }
else if (uInput == ConsoleKey.RightArrow) { return BreakRight(worldMap, playerX, playerY, playerName, expAdd); }
else { return worldMap; }
static int[,] BreakDown(int[,] worldMap, int playerX, int playerY, string playerName, int expAdd) {
PlayerSplashScreens splashScrn = new PlayerSplashScreens();
Enemies enemy = new Enemies();
if (worldMap[playerY + 1, playerX] >= 50 && worldMap[playerY + 1, playerX] <= 52) {
if (worldMap[playerY + 1, playerX] == 50) { splashScrn.Enemy1(); expAdd = enemy.FightEnemy1(playerName); }
else if (worldMap[playerY + 1, playerX] == 51) { splashScrn.Enemy2(); expAdd = enemy.FightEnemy2(playerName); }
else if (worldMap[playerY + 1, playerX] == 52) { splashScrn.Enemy3(); expAdd = enemy.FightEnemy3(playerName); }
worldMap[playerY + 1, playerX] = 3; return worldMap; }
else { return worldMap; }
static int[,] BreakUp(int[,] worldMap, int playerX, int playerY, string playerName, int expAdd) {
PlayerSplashScreens splashScrn = new PlayerSplashScreens();
Enemies enemy = new Enemies();
if (worldMap[playerY - 1, playerX] >= 50 && worldMap[playerY - 1, playerX] <= 52) {
if (worldMap[playerY + 1, playerX] == 50) { splashScrn.Enemy1(); expAdd = enemy.FightEnemy1(playerName); }
else if (worldMap[playerY + 1, playerX] == 51) { splashScrn.Enemy2(); expAdd = enemy.FightEnemy2(playerName); }
else if (worldMap[playerY + 1, playerX] == 52) { splashScrn.Enemy3(); expAdd = enemy.FightEnemy3(playerName); }
worldMap[playerY - 1, playerX] = 3; return worldMap; }
else { return worldMap; }
static int[,] BreakRight(int[,] worldMap, int playerX, int playerY, string playerName, int expAdd) {
PlayerSplashScreens splashScrn = new PlayerSplashScreens();
Enemies enemy = new Enemies();
if (worldMap[playerY, playerX + 1] >= 50 && worldMap[playerY, playerX + 1] >= 52) {
if (worldMap[playerY + 1, playerX] == 50) { splashScrn.Enemy1(); expAdd = enemy.FightEnemy1(playerName); }
else if (worldMap[playerY + 1, playerX] == 51) { splashScrn.Enemy2(); expAdd = enemy.FightEnemy2(playerName); }
else if (worldMap[playerY + 1, playerX] == 52) { splashScrn.Enemy3(); expAdd = enemy.FightEnemy3(playerName); }
worldMap[playerY, playerX + 1] = 3; return worldMap; }
else { return worldMap; }
static int[,] BreakLEFT(int[,] worldMap, int playerX, int playerY, string playerName, int expAdd) {
PlayerSplashScreens splashScrn = new PlayerSplashScreens();
Enemies enemy = new Enemies();
if (worldMap[playerY, playerX - 1] >= 50 && worldMap[playerY, playerX - 1] >= 52) {
if (worldMap[playerY + 1, playerX] == 50) { splashScrn.Enemy1(); expAdd = enemy.FightEnemy1(playerName); }
else if (worldMap[playerY + 1, playerX] == 51) { splashScrn.Enemy2(); expAdd = enemy.FightEnemy2(playerName); }
else if (worldMap[playerY + 1, playerX] == 52) { splashScrn.Enemy3(); expAdd = enemy.FightEnemy3(playerName); }
worldMap[playerY, playerX - 1] = 3; return worldMap; }
else { return worldMap; }
public void GeneratePlayerStart(int worldSize) { playerX = randNum.Next(0, worldSize); playerY = randNum.Next(0, worldSize); }
PlayerSplashScreens playerSplash = new PlayerSplashScreens();
UIBin uiBin = new UIBin();
Random randNum = new Random();
public int[,] EnemiesSpawn(string enemyName, int[,] wrldMap, int playerX, int playerY) {
enX1 = randNum.Next(0, wrldMap.GetLength(1));
enY1 = randNum.Next(0, wrldMap.GetLength(0));
if (enX1 == playerX && enY1 == playerY) {
enX1 = randNum.Next(0, wrldMap.GetLength(1));
enY1 = randNum.Next(0, wrldMap.GetLength(0));
wrldMap[enY1, enX1] = 50;
enX2 = randNum.Next(0, wrldMap.GetLength(1));
enY2 = randNum.Next(0, wrldMap.GetLength(0));
if (enX2 == playerX && enY2 == playerY) {
enX2 = randNum.Next(0, wrldMap.GetLength(1));
enY2 = randNum.Next(0, wrldMap.GetLength(0));
wrldMap[enY2, enX2] = 51;
enX3 = randNum.Next(0, wrldMap.GetLength(1));
enY3 = randNum.Next(0, wrldMap.GetLength(0));
if (enX3 == playerX && enY3 == playerY) {
enX3 = randNum.Next(0, wrldMap.GetLength(1));
enY3 = randNum.Next(0, wrldMap.GetLength(0));
wrldMap[enY3, enX3] = 52;
public int FightEnemy1(string playerName) {
Console.Clear(); playerSplash.Enemy1();
Console.Clear(); playerSplash.Enemy1();
expToAdd = ahhENEMY(playerName);
public int FightEnemy2(string playerName) {
Console.Clear(); playerSplash.Enemy2();
Console.Clear(); playerSplash.Enemy2();
expToAdd = ahhENEMY(playerName);
public int FightEnemy3(string playerName) {
Console.Clear(); playerSplash.Enemy3();
Console.Clear(); playerSplash.Enemy3();
expToAdd = ahhENEMY(playerName);
private int ahhENEMY(string playerName) {
Console.SetCursorPosition(45, 5); uiBin.ColoredText("yellow", playerName + "- ''OH GOD OH NO AN ENEMY!!!!''");
System.Threading.Thread.Sleep(100);
Console.SetCursorPosition(45, 11); uiBin.ColoredText("yellowD", "(!) Keep pressing 'Q' until the damage");
Console.SetCursorPosition(45, 12); uiBin.ColoredText("yellowD", " bar is full!");
Console.SetCursorPosition(45, 13); uiBin.ColoredText("yellowD", "(!) Remember, pressing 'Q' too much");
Console.SetCursorPosition(45, 14); uiBin.ColoredText("yellowD", " will make you faint. ");
int playerSpamQ = 0, tempCurrentCursorPos = 50;
uiBin.ColoredText("blueBLOCK", "");
while (playerSpamQ < 7) {
Console.SetCursorPosition(tempCurrentCursorPos, 16);
if (Console.ReadKey().Key == ConsoleKey.Q) {
playerSpamQ++; tempCurrentCursorPos += 4;
uiBin.BlockedColor("blueBLOCK", playerSpamQ + " ");
Console.SetCursorPosition(tempCurrentCursorPos, 16);
Console.SetCursorPosition(45, 18);
uiBin.BlockedColor("black", "YOU DID IT! +3EXP");
System.Threading.Thread.Sleep(1500);
static void AwwwLoss(UIBin uiBin) { uiBin.ColoredText("red", "you have lost the game and all data has been deleted...."); }
public void ColoredText(string color, string text) {
Console.ForegroundColor = ConsoleColor.Green;
Console.ForegroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.ForegroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Blue;
Console.ForegroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.DarkCyan;
Console.ForegroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Red;
Console.ForegroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Yellow;
Console.ForegroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Gray;
Console.ForegroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.White;
public void BlockedColor(string color, string text) {
Console.BackgroundColor = ConsoleColor.Green;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.DarkGreen;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.Blue;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.Blue;
Console.ForegroundColor = ConsoleColor.Blue;
Console.BackgroundColor = ConsoleColor.DarkCyan;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.Red;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.Yellow;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.DarkYellow;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.Gray;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.DarkGray;
Console.BackgroundColor = ConsoleColor.Black;
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
public void PlayerShakeM() { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(" -o- "); Console.ForegroundColor = ConsoleColor.White; }
public void PlayerShakeR() { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(" -o- "); Console.ForegroundColor = ConsoleColor.White; }
public void PlayerShakeL() { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(" -o- "); Console.ForegroundColor = ConsoleColor.White; }
UIBin uiElmnt = new UIBin();
public void SetWorldSize(int newWS) { worldSize = newWS; }
public void SetPlayerHP(int newPHP) { playerHP = newPHP; }
public int GetPlayerHP() { return playerHP; }
public void SetPlayerEXP(int newPEXP) { playerEXP = newPEXP; }
public int GetPlayerEXP() { return playerEXP; }
string playerName = "Player";
public void SetPlayerName() { uiElmnt.ColoredText("blue", "Enter your name: "); playerName = Console.ReadLine(); }
public string GetPlayerName() { return playerName; }
public void OutputHUDClr() {
uiElmnt.ColoredText("green", " " + playerName);
uiElmnt.ColoredText("greenD", " HP: " + playerHP);
uiElmnt.ColoredText("greenD", " EXP: " + playerEXP);
Console.SetCursorPosition(playerName.Length + 33, 0);
for (int i = 0; i < playerName.Length + 35; i++) { Console.Write("'"); }
Console.SetCursorPosition((playerName.Length + 23) / 2, 1);
if (worldSize > 10) { spaceDyn = " "; } else { }
uiElmnt.ColoredText("blue", spaceDyn + "MAP: " + Convert.ToString(worldSize) + "x" + Convert.ToString(worldSize) + spaceDyn);
Console.SetCursorPosition(0, 3);
class PlayerSplashScreens {
bool ContinueGame = true;
public void WelcomeScreen() {
UIBin uiElmnts = new UIBin();
uiElmnts.ColoredText("white", " Please do not change the window size.");
Console.SetCursorPosition(0, 3);
uiElmnts.ColoredText("white", " ^^ ");
uiElmnts.ColoredText("yellow", "@@@@@@@@@\n");
uiElmnts.ColoredText("white", " ^^ ^^ ");
uiElmnts.ColoredText("yellow", "@@@@@@@@@@@@@@@\n");
uiElmnts.ColoredText("yellow", " @@@@@@@@@@@@@@@@@@ ");
uiElmnts.ColoredText("white", "^^\n");
uiElmnts.ColoredText("yellow", " @@@@@@@@@@@@@@@@@@@@\n");
uiElmnts.ColoredText("blueL", "~~~~ ~~ ~~~~~ ~~~~~~~~ ~~ ");
uiElmnts.ColoredText("yellow", "&&&&&&&&&&&&&&&&&&&& ");
uiElmnts.ColoredText("blueL", "~~~~~~~ ~~~~~~~~~~~ ~~~\n");
uiElmnts.ColoredText("blueL", "~ ~~ ~ ~ ~~~~~~~~~~~~~~~~~~~~ ~ ~~ ~~ ~\n" +
" ~ ~~ ~~ ~~ ~~ ~~~~~~~~~~~~~ ~~~~ ~ ~~~ ~ ~~~ ~ ~~ \n" +
" ~ ~~ ~ ~ ~~~~~~ ~~ ~~~ ~~ ~ ~~ ~~ ~ \n" +
"~ ~ ~ ~ ~ ~~ ~~~~~~ ~ ~~ ~ ~~\n" +
Console.SetCursorPosition(Console.WindowWidth / 2 - 5, 1);
uiElmnts.ColoredText("white", "[");
uiElmnts.ColoredText("green", "1");
uiElmnts.ColoredText("white", "]");
uiElmnts.ColoredText("white", " PLAY GAME!");
Console.SetCursorPosition(Console.WindowWidth / 2 - 5, 2);
uiElmnts.ColoredText("white", "[");
uiElmnts.ColoredText("red", "2");
uiElmnts.ColoredText("white", "]");
uiElmnts.ColoredText("white", " leave...");
Console.SetCursorPosition(0, 12);
uiElmnts.ColoredText("white", "[");
Console.SetCursorPosition(2, 12);
uiElmnts.ColoredText("white", "]");
Console.SetCursorPosition(1, 12);
userReply = Console.ReadKey().Key;
if (userReply == ConsoleKey.D1) { uiElmnts.ColoredText("white", "]"); Console.WriteLine(); break; }
else if (userReply == ConsoleKey.D2) { uiElmnts.ColoredText("white", "]"); ContinueGame = false; break; }
else { uiElmnts.ColoredText("white", "]"); uiElmnts.ColoredText("red", "\nINVALID "); uiElmnts.ColoredText("white", "["); }
public bool GetPlayerPLAY() { return ContinueGame; }
public void Instructions() {
UIBin uiElmnts = new UIBin();
while (Console.ReadKey().Key != ConsoleKey.E) {
uiElmnts.ColoredText("yellow", " WELCOME TO DWORF FOREST!\n");
uiElmnts.ColoredText("yellow", "Before we begin, it is important that you read the instructions and controls for the game.\n");
uiElmnts.ColoredText("yellowD", "- - - - - - - - - - -\n");
uiElmnts.ColoredText("yellowD", "If you would like to change the size of the console window, now would be the time to do so.\n");
uiElmnts.ColoredText("yellow", "\nCONTROLS\n ---------- \n");
uiElmnts.ColoredText("yellowD", "\n(WASD) - Move your character\n(Left Arrow Key) - Break tree to your left.\n");
uiElmnts.ColoredText("yellowD", "(Right Arrow Key) - Break tree to your right.\n(Up Arrow Key) - Break tree above you.\n");
uiElmnts.ColoredText("yellowD", "(Down Arrow Key) - Break tree below you.\n");
uiElmnts.ColoredText("red", " . < This is an enemy.\n");
uiElmnts.ColoredText("yellowD", "(Left Arrow Key) - Interact with enemy to your left.\n(Right Arrow Key) - Interact with enemy to your right.\n");
uiElmnts.ColoredText("yellowD", "(Up Arrow Key) - Interact with enemy above you.\n(Down Arrow Key) - Interact with enemy below you.\n");
uiElmnts.ColoredText("yellow", "\n\n If you understand and are ready to start, press 'E' now.");
UIBin uiElmnts = new UIBin();
uiElmnts.ColoredText("red", " __.......__\n .-:::::::::::::-.\n .:::''':::::::''':::.\n .:::' `:::' `:::. \n .'\\ ::' ^^^ `:' ^^^ ':: /`.\n" +
" : \\ :: _.__ __._ :: / ;\n : \\`: .' ___\\ /___ `. :'/ ; \n: /\\ (_|_)\\ /(_|_) /\\ ;\n: / .\\ __.' ) ( `.__ /. \\ ;\n" +
": \\ ( { } ) / ; \n : `-( . ^'' ^ . ) - ' ;\n `. \\ .'<`-._.-'>'. / .'\n `. \\ \\;`.';/ / .'\n `._ `-._ _.-' _.\n" +
" .'`-.__ .'`-._.-'`. __.-'`.\n .' `. .' `.\n' .' `-. .-' `.\n");
UIBin uiElmnts = new UIBin();
uiElmnts.ColoredText("red", " -. -. `. / .-' _.' _\n .--`. `. `| / __.-- _' `\n '.-. \\ \\ | / _.' `_\n .-. \\ ` || | .' _.-' `.\n" +
" .' _ \\ ' - -' - ` _.-.\n .' `. %%%%% | %%%%% _.-.`-\n .' .-. ><(@)> ) ( <(@)>< .-.`.\n ((''`(- | | - )'''))\n" +
" / \\#)\\ (.(_).) /(#//\\\n ' / ) (( / | | \\ )) (`.`.\n .' (.) \\ .md88o88bm. / (.) \\)\n / /| / \\ `Y88888Y' / \\ | \\ \\\n .' / O / `. - .' \\ O \\ \\\\" +
"\n / / (O) / /| `.___.' | \\(O) \\\n / / / / | | | |\\ \\ \\ \\\n / / // /| | | | \\ \\ \\ \n _.-- / --/ '( ) ) ( ) ) )`\\-\\-\\-._\n((( )())())()) ) ( ) )\n");
UIBin uiElmnts = new UIBin();
uiElmnts.ColoredText("red", " .-''''''''.\n / \\\n __ / .-. .\\\n / `\\ / \\/ \\\n | _ \\/ .==.==.\n | ( \\ / ____\\__\\\n \\ \\ (_()(_()\n \\ \\ '---._\n \\ \\_\n" +
" /\\ |` (__)________ /\n / \\| /\\___ /\n| \\ \\|| VV\n| \\ \\| '''''''',\n| \\ ______)\n\\ \\ /`\n \\(");
UIBin uiElmnts = new UIBin();
uiElmnts.ColoredText("yellow", " _ ______ __ __ ______ _ \n | | | ____| \\ \\ / / | ____| | | \n | | | |__ \\ \\ / / | |__ | | \n | | | __| \\ \\/ / | __| | | \n" +
" | |____ | |____ \\ / | |____ | |____ \n |______| |______| \\/ |______| |______|\n\n\n _ _ _____ _ \n | | | | | __ \\ | |\n | | | | | |__) | | |\n" +
" | | | | | ___/ | | \n | |__| | | | |_|\n \\____/ |_| (_) ");