Ejemplo n.º 1
0
        private static void Program35()
        {
            Game.ShowSceneAndAddTurtle();

            var player = Game.AddPlayer(PlayerData.Ant.WithPosition(400, 200));

            for (int i = 0; i < 7; i++)
            {
                player.MoveLeft(100);
                Turtle.Say($"Distance: {Turtle.GetDistanceTo(player):F2}\r\nAngle: {Turtle.GetDirectionTo(player):F2}");
                player.Say("Press <Space> to continue.");
                Game.WaitForKeyDown(KeyboardKey.Space);
            }
            Turtle.Say("Done.");
            player.ShutUp();
        }