I thought I'd manage to make sense of the codeš¤£I can't because I've never seen a single line of C beforeš¬from looking into it, I don't know what the nodes would be for my algorithm? Would I use a tilemap or would soemthing else be better to use?
Viewing post in AI and A*pathfinding
Forget the abstract concept of ānodesā. Youāre using tiles, so just think of them like that.
You need a set of āopen tilesā and āclosed tilesā, and both kinds hold the position of said tile, the position of its parent tile, and the cost of getting to that tile.
When the algorithm starts, your open tile set contains the starting point. After that the algorithm will naturally expand outwards by querying neighboring tiles, which are very easy to find on a tilemap.