Closed danwinkler closed 10 years ago
But do it like this, so you cant see around walls: http://ncase.github.io/sight-and-light/ http://www.redblobgames.com/articles/visibility/ http://www.byronknoll.com/visibility.html
Probably way too computationally expensive, because it would have to be a ray for each unit on your team, to each vertex.
This is added in a sort of blocky style. It's fairly slow, so I made it optional.
But do it like this, so you cant see around walls: http://ncase.github.io/sight-and-light/ http://www.redblobgames.com/articles/visibility/ http://www.byronknoll.com/visibility.html
Probably way too computationally expensive, because it would have to be a ray for each unit on your team, to each vertex.