Closed davesmith00000 closed 11 months ago
This PR ports the Bresenham's line algorithm implementation from the Roguelike-Starterkit back to Indigo's extras package.
It's for this sort of thing, useful for drawing pixel art lines and doing line of sight checks across grids and so on.
https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
This PR ports the Bresenham's line algorithm implementation from the Roguelike-Starterkit back to Indigo's extras package.
It's for this sort of thing, useful for drawing pixel art lines and doing line of sight checks across grids and so on.
https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm