I have a tilemap and the coordinates of two tiles on it, for example 6:2 and 3:9. I need to get all the tiles that a line will pass through if a straight line is drawn between the two selected tiles.
Picture to understand the issue.
Red - selected tiles.
Green - tiles through which the line between the selected tiles passes.