Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to list all tiles that returned path passes through? #2

Open
aafishman opened this issue Aug 16, 2020 · 0 comments
Open

Possible to list all tiles that returned path passes through? #2

aafishman opened this issue Aug 16, 2020 · 0 comments

Comments

@aafishman
Copy link

Hello,

I've been playing with the library and scripts over the last couple of days and overall its been fun - very solid path finding for 4-dir and 8-dir, useful for a lot of applications I have in mind.

I have not been able to find a way to cleanly generate a list of all the tiles that the returned path passes through. I can see all of the nodes and pass those around for various interactions, but now I am needing a list of each individual tile that the path passes through. Do you have any suggestions for how to go about this?

Either by editing existing functions or somehow iterating over the generated path to pull out the tiles it passes through (possibly very inefficient)? It seems that of course each 'correct' tile in the path has been evaluated by the algorithms at some point and deemed 'being on path,' but I am having trouble identifying where those are. If I could I could just add them to a list of 'on-path tiles', removing duplicates if need be if the obvious solutions create doubles.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant