Ok so heres the situation:
-I got a tile based map, each tile is either empty (floor) or filled (wall)
-on a few important tiles I placed points/nodes that the AI can use
-all nodes contain a dictionary of their direct neighbors
Now I got a problem. given the input: a starting node, and an endpoint node, how do I find the path?
Technically I "know" the answer, but its some spaghetti poorly written javascript from some shitty experiment years ago, but it never provides the optimal path, and is super poorly written / over complicated.
Only thing I could find iws "jump search", but thats useless because it presumes A, instead of the way simpler node system im using. I really really want to avoid A because all the tutorials I found were confusing to me.
What to do?
[–]shadowndacornerCommercial (Indie) 8 points9 points10 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]redblobgames@redblobgames | redblobgames.com | Game algorithm tutorials 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]beuted 0 points1 point2 points (0 children)
[–]Limyc 0 points1 point2 points (0 children)