/Field-of-View-demonstration

Bresenham algorithm based library to calculate the field of view. Includes demonstrative program for love2d.

Primary LanguageLuaMIT LicenseMIT

#Bresenham’s algorithm based field of view demonstration. ##Created by Spellweaver (spellsweaver@gmail.com)

Controls:

Space: switch between field of view demonstration and walls map (useful for map editing) Left click: add/remove wall [F]: switch between square and circle field of view [+]/[-] or mouse wheel: adjust vision distance limit.