lathomas64 / panic-at-the-portal

0 stars 0 forks source link

Line of sight #9

Open lathomas64 opened 4 months ago

lathomas64 commented 4 months ago

We need to determine line of sight for some obstacles like fog or walls to work properly.

http://www-cs-students.stanford.edu/~amitp/Articles/HexLOS https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm