Author Topic: [Resource] A* Implementation (Pathfinding)  (Read 20533 times)

Made some bad neighbor finding code, maybe if I optimize it I'l release.

[img ]http://localhostr.com/file/9SWpaC4jOx8c/Blockland_00284.png[/img]
WINNINGG
Why didn't it take the easier path to the left?

Why didn't it take the easier path to the left?
it can't go on black, the point was to make sure it didn't try to go that way because it was blocked.


This honestly came at like, the best time ever. I think ;)

Man, this is so cool! I got some sample code working and man, this is sweet. Thanks so much for sharing this!

EDIT: I've noticed that if the path is too strenuous for it, Blockland will crash :I Is this because of the maximum capacity of a variable or something?
« Last Edit: February 11, 2013, 03:41:58 PM by Reinforcements »

EDIT: I've noticed that if the path is too strenuous for it, Blockland will crash :I Is this because of the maximum capacity of a variable or something?

Could you be more specific? How many nodes are you working with and how far away are your start and end nodes in terms of complexity between them?

Could you be more specific? How many nodes are you working with and how far away are your start and end nodes in terms of complexity between them?
Pretty complex, and I use around 1,000 iterations (huurr) to try to get it to get to it's goal. I wonder if it would work much faster if it weren't combining strings with @ and instead used pseudo arrays. (Just a thought, I really appreciate the sample code as it is you know ;) )

I've created a proper GitHub repository for this now.
https://github.com/portify/ts-pathing

It also includes some great documentation along with examples and definitions to make your life a bit easier.


And here's some kind of website that mirrors the README.md from the GitHub repository.
http://portify.github.com/ts-pathing/

I don't get It what does it do?

I don't get It what does it do?
It's a path finding algorithim

It's a path finding algorithim

I have NO idea what that is


« Last Edit: April 17, 2013, 11:43:40 AM by Port »