KorolevSoftware / Pathfinder

Defold extension wave path finder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Defold extension wave path finder

License:Apache License 2.0


Languages

Language:C++ 96.0%Language:Lua 4.0%