Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
selimanac committed Aug 5, 2019
1 parent 572cf33 commit bb9b147
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ astar.setup(map_width, map_height, direction, allocate, typical_adjacent, cache)

### astar.set_map(world)

Set your map data.
Set your map data.
*Setting new map data reset the current cache.

```lua
local world = {
Expand All @@ -83,6 +84,8 @@ Set costs for your walkable tiles on your `world` table. This table keys determi

Table's sum must be the `astar.DIRECTION_FOUR` or `astar.DIRECTION_EIGHT`. In this example we want to move 8 direction.

*Setting new cost data reset the current cache.

```lua
local costs = {
[2] = {
Expand Down

0 comments on commit bb9b147

Please sign in to comment.