Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 621 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 621 Bytes

Pathfinder (Alpha)

Defold extension wave path finder

Installation

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

Using

-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)