Skip to main content
GameDev.net gamedev.net
🔒 Locked

Need Pathfinding Library / Code

Started by GameCreator Aug 20, 2008 at 11:16 AM 2 replies 1.8k views
Original Post
GameCreator
GameCreator
I'm hoping to find a simple, 2D pathfinding library or code where I can give it an array like this bool a[1024][768]; (which is filled with zeroes and ones) and start and end coordinates and it will return the shortest array of locations which lead from the start to the end. Does anyone know a simple library that does this? (I've looked into A * but I've gotta be honest, it's a little intimidating and I'm looking for something easier to use.) Thank you.
beun
beun
Quote:
(I've looked into A * but I've gotta be honest, it's a little intimidating and I'm looking for something easier to use.)


A* isn't a library or code. It's an algorithm, and yes, many algorithms are intimidating. Just Google for a* pathfinding library and you'll find something you like.

Maybe http://www.cs.ualberta.ca/~games/pathfind/libpathfind/0.1.0/doc/index.html?
GameCreator
GameCreator
The library you provided uses nodes instead of arrays but I'm sure that can be made to work. Thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.