Skip to content

navigation_astar: Migrate to TileMapLayer and various cleanups #1208

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rudis
Copy link

@rudis rudis commented May 29, 2025

Hi,

besides the TileMapLayer migration I performed a few cleanups and added some comments which might be helpful.

Best,
Simon

rudis added 4 commits May 29, 2025 09:47
This also removes the confusing use of Tile.OBSTACLE. The tile enum is
mostly used for atlas coordinates but in this case it is compared with
the source id which only happens to be zero as well.
This makes it more obvious how to set cells in larger tilesets where the
second position is not zero.

It also removes the constant OBSTACLE which is unused since the last
commit.
Using it in this example is more complex (as the border has no cells)
but it's good to know.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants