Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #671: Bresenham's line algorithm port #673

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Conversation

davesmith00000
Copy link
Member

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.

image

https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm

@davesmith00000 davesmith00000 requested a review from a team January 2, 2024 09:55
@davesmith00000 davesmith00000 self-assigned this Jan 2, 2024
@davesmith00000 davesmith00000 merged commit b5ad53f into main Jan 2, 2024
2 checks passed
@davesmith00000 davesmith00000 deleted the bresenhams-line branch January 2, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant