Defold extension wave path finder
You can use the Pathfinder extension in your own project by adding this project as a Defold library dependency. Open your game.project file and in the dependencies field under project add:
https://github.com/KorolevSoftware/Pathfinder/archive/v1.zip
-1 is block
map only two dimension
local start = vmath.vector3(1, 1, 1)
local finish = vmath.vector3(4, 4, 4)
local map = {
{0, 0,0,0},
{-1,0,0,0},
{0, 0,0,0},
{0, 0,0,0}
};
local path = pathfinder.solve(map, start, finish)