Beispiel #1
0
        public static string GetPathOfMap()
        {
            Console.WriteLine("Akarsz megadni sajat terkepet? [Y/N]");
            var  input         = Console.ReadKey();
            char pressedButton = input.KeyChar;

            pressedButton = char.ToUpper(pressedButton);
            switch (pressedButton)
            {
            case 'Y':
                Console.Clear();
                Console.WriteLine("A terkeped neve legyen: \n map.txt");
                return(Brief.PathSetByUser(UsersMapName));

            default:
                return(Brief.PathSetAuto(DefaultMapName));
            }
        }
Beispiel #2
0
 public static void TheGame(Player PlayerOne, Player PlayerTwo, Player Winner)
 {
     while (Brief.Alive)
     {
         Brief.Draw(PlayerOne, PlayerTwo);
         Move(PlayerOne, PlayerTwo);
         Accessories.TokenSpawn();
         if (PlayerOne.HP < 1)
         {
             Brief.Alive = false;
             Winner      = PlayerTwo;
         }
         if (PlayerTwo.HP < 1)
         {
             Brief.Alive = false;
             Winner      = PlayerOne;
         }
     }
     Brief.EndingScreen(Winner);
 }