Skip to content

KorolevSoftware/Pathfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)