Code archives/Algorithms/Z Pathfinding Library

This code has been declared by its author to be Public Domain code.

Download source code

Z Pathfinding Library by Zenith2002
VERSION 2.0

What does this library do? -- Well it's a simple-to-use fast pathfinding library
What all can it do?
Unlimited amounts of pathfinds at once, all in realtime! (uses a banks for paths)
4 or 8 direction pathfinding, zpath_Init(dir%), where dir = 4 or 8 IN REALTIME!
Generate a path layout list with one function, zpath_PathFind()
Very OPTIMIZED uses types, but using handle() and object() 90% of the time
Very EASY to use, get the X and Y of the current path: zpath_GetPathX(bank) etc..
Want to go on to the next Path after you're done this one? zpath_GotoNextPath(bank)
The ability to draw the Path layout (if you ever want that debuggin need!)
Clean, Commented, and EASY to understand/modify code (I hope so? :))
Save and Load - Map files, Path layout Files

Honestly, I doubt you'd want to copy paste it -- here's the url to it. EXAMPLE INCLUDED:
http://zen.noelcower.com/zpath.zip
moop

Comments

Spacechimp2006
moop indeed! link broken


Naughty Alien2006
its 3 years old post ..


Spacechimp2006
^_^


puki2006
I can email this.


Naughty Alien2006
@Puki..Email me if you dont mind Puki-master :)


Zenith2007
Hey sorry, fixed the url to my current one: http://zen.noelcower.com/zpath.zip
Good luck!
I don't really advise using it anymore, its pretty bad code, but you be the judge of it. :)


chwaga2007
that's broken too


Zenith2008
oh right, lost that site also, hold a sec..

http://gamingseed.deviousbytes.com/zpath.zip

(how ya doing, chwaga? :))


GW2008



example:


maybe someone can do a Bmax port.


Zenith2008
I wrote this 5 years ago.. BEWARE :)


chwaga2008
lol, I've re-embarked upon the endless quest for simple A*, I asked Xyle to help lol....
(Doing fine, how about you?)

I'd use yours, but it's too slow :(


Code Archives Forum