Field of view algorithms in Lua. Two flavors are available: recursive shadowcasting and precise permissive.
https://github.com/markandgo/Lua-FOV