Exemplo n.º 1
0
 public void Move(Player play)
 {
     if (play.playerXPos > monsterXPos)
         monsterXPos++;
     if (play.playerXPos < monsterXPos)
         monsterXPos--;
     if (play.playerYPos > monsterYPos)
         monsterYPos++;
     if (play.playerYPos < monsterYPos)
         monsterXPos--;
 }
Exemplo n.º 2
0
 public void initializeGame()
 {
     Console.Clear();
     Console.WriteLine("WELCOME TO MONSTER CHASE!");
     Console.WriteLine("Please configure the game:");
     //map size
     Console.WriteLine("How big do you want the map horizontally?");
     gridXLimit = int.Parse(Console.ReadLine());
     Console.WriteLine("How big do you want the map vertically?");
     gridYLimit = int.Parse(Console.ReadLine());
     //turns for survival
     Console.WriteLine("How many turns must you survive?");
     survivalCount = int.Parse(Console.ReadLine());
     //number of monsters
     Console.WriteLine("How many monsters do you want to run from?");
     monsterCount = int.Parse(Console.ReadLine());
     player = new Player();
     makeMonsters();
     Console.Clear();
 }