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

Fix wall visibility #6

Open
SnowyCoder opened this issue Oct 6, 2020 · 1 comment
Open

Fix wall visibility #6

SnowyCoder opened this issue Oct 6, 2020 · 1 comment
Labels
easy Easy code editing enhancement New feature or request

Comments

@SnowyCoder
Copy link
Owner

Now a wall is visible with no regards to its light conditions (you may think of it as being always illuminated).
That's because the current PlayerVisibleComponent is thought for points, not lines, and if it is applied to walls then they will appear visible even if the light is at the other side of the player viewing it. This does not seem to be an issue for now, but a perfect solution would be to count player/light count for each side and also the vicinity of a player (if a player touches a wall it does not need a light to know it exists).

@SnowyCoder SnowyCoder added enhancement New feature or request easy Easy code editing labels Oct 6, 2020
@SnowyCoder SnowyCoder reopened this Oct 11, 2020
@SnowyCoder
Copy link
Owner Author

Whoops, wrong comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Easy code editing enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant