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

Let computeFieldOfView allow fractional player locations #20

Open
sbj42 opened this issue Apr 14, 2022 · 0 comments
Open

Let computeFieldOfView allow fractional player locations #20

sbj42 opened this issue Apr 14, 2022 · 0 comments

Comments

@sbj42
Copy link
Owner

sbj42 commented Apr 14, 2022

The algorithm should work just as well for player locations that are "in between" tile centers. For instance, a player at (1.25, 4) would be 25% of the way from (1, 4) to (2, 4). Their field of view could be computed as if they were at (1, 4), except that the shadow angles would be different.

This could be used for smooth transitions as the player moves from one tile to another.

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

No branches or pull requests

1 participant