Demo showing simple A* pathfinding in 2D. It is second wariant so its quit simple. It uses unsorted open list.
When writing it I was largery influenced by this Patrick Lesters article:
http://www.policyalmanac.org/games/aStarTutorial.htm
download source code:
http://www.spintz.com/arras/Files/PathDemo070512.zip
Pathfinding Demo
Pathfinding Demo
Last edited by arras on Sat May 12, 2007 8:04 am, edited 1 time in total.
-
- Posts: 1029
- Joined: Thu Apr 06, 2006 12:45 am
- Location: Tennesee, USA
- Contact:
-
- Posts: 157
- Joined: Tue Mar 20, 2007 8:30 am
IrrWizard has A*Star path-finding built-in, if you'd rather not re-invent the wheel.
You'll probably need to make a few tweaks to IrrWizard to compile with 1.3, but if I can get IrrSpintz to use IrrWizard then 1.3 shouldn't be too involved either.
You'll probably need to make a few tweaks to IrrWizard to compile with 1.3, but if I can get IrrSpintz to use IrrWizard then 1.3 shouldn't be too involved either.
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
olivehehe_03 >> pathfinding code can be used in pseudo 3D easily, to make it work in real 3D environment with seweral lewels above each other would be slightly more chalenging.
sio2 >> principle of A* is fairly simple and universal however its implementation is wery application specific. Thats why I "reinvented"
sio2 >> principle of A* is fairly simple and universal however its implementation is wery application specific. Thats why I "reinvented"
Yeah, I was replying to the poster who wanted it in 3D.arras wrote:sio2 >> principle of A* is fairly simple and universal however its implementation is wery application specific. Thats why I "reinvented"
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
-
- Posts: 275
- Joined: Fri May 12, 2006 6:37 pm
- Location: Germany
sio2 >> OK
TheGameMaker >> yes prebuild nodes work wery well with A* but are also quit restricting ...again, its wery application specific. Bye the way tiles (or hexagoons) are in a way also kind of prebuild nodes...
That article I have found when I was coding with Dark Basic, which is some 5-6 years ago. But since then I did not find better. It also include exelent list of links.
Midnight >> man I have no idea what are you talking about Did you returned from some wild party yesterday?
What is "zombie dome thingy"?
TheGameMaker >> yes prebuild nodes work wery well with A* but are also quit restricting ...again, its wery application specific. Bye the way tiles (or hexagoons) are in a way also kind of prebuild nodes...
That article I have found when I was coding with Dark Basic, which is some 5-6 years ago. But since then I did not find better. It also include exelent list of links.
Midnight >> man I have no idea what are you talking about Did you returned from some wild party yesterday?
What is "zombie dome thingy"?