Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions readme.txt → readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Field of view algorithms in Lua.
# __Field of view algorithms in Lua.__

Two algorithms are available:
-Recursive shadowcasting
-Precise permissive
* Recursive shadowcasting
* Precise permissive

The demo requires LOVE.
**The demo requires LOVE.**

Example code:
````````````````````````````````````````````````````````````````````````
__Example code:__
```lua
fov = require 'fov'

-- Required callbacks:
Expand Down Expand Up @@ -35,8 +35,8 @@ Example code:
-- Calculate fov:
fov(px,py,radius,isTransparent,onVisible,
start_angle,last_angle,permissiveness)
````````````````````````````````````````````````````````````````````````
```

More information can be found by searching:
FOV using recursive shadowcasting - Björn Bergström
Precise permissive field of view - Jonathon Duerig
Precise permissive field of view - Jonathon Duerig