I Making Connect line, example simpe match right object via line
Develop games in your browser. Powerful, performant & highly capable.
Create a line sprite or TiledBackground with origin point at the left.
Set line position to point A.
Set line angle towards point B.
Set line width to distance(PointA.x, PointA.y, PointB.x, PointB.y)