-
Notifications
You must be signed in to change notification settings - Fork 0
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
When the arena is very empty, vision behaves weirdly #34
Comments
Hm...I actually coded it this way. What should the alternative be? That if you're facing one direction, you have 180 degree field of vision? I'm not sure you should be able to see infinitely off to your left and right. That's how the original hunt does it, but I think it detracts from maze-like quality. Hopefully, with wall regen, this won't be that big of a deal. |
Well, I think it doesn't make sense if you can't. If there are not walls in But like you said, with wall regen it shouldn't matter as much. I can only On Fri, Dec 5, 2014 at 7:43 PM, Alan Du [email protected] wrote:
|
Hm...fair enough. I guess the question then is how to technically do it. Write now, I just use the four cardinal directions (except them one to your back) and extend them until you see a wall to get the current view. So, for example
How would we make walls block line-of-sight if we do 180 degree vision? |
Yeah, it's tricky. I never said it would be easy hahahaha. Could do some sort of primitive ray tracing, where a square visible only if there's a direct path to the you from it.
Where B is not seen or "blocked" and U is seen or "unblocked". |
In theory, you should be able to see anything blocked by walls, but when there are very little walls you can still only see in about 3 columns/rows.
The text was updated successfully, but these errors were encountered: