Exemplo n.º 1
0
        public void Start(int AIDifficulty = 1)
        {
            Console.Clear();
            Food Food = new Food();

            ai = new AI();
            ai.MovementTime *= AIDifficulty;
            Food.FoodTeleport(Map);//Initializing  Starting Food Position
            Player.Pause += Pause;
            while (true)
            {
                ai.AIMovement(Map, Food);
                Player.MovementAsync(Map);
                FoodCheck(Player, Food, ai);

                Interface.MapDraw(Map, Player, Food, ai);

                Interface.PointsShow(Map, Player, ai, MaxPts);
                Interface.PauseTextToggle(Map, Paused);
            }
        }