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

Add option to path using "whitelist" instead of "blacklist" #4

Open
darzu opened this issue May 29, 2020 · 1 comment
Open

Add option to path using "whitelist" instead of "blacklist" #4

darzu opened this issue May 29, 2020 · 1 comment

Comments

@darzu
Copy link
Collaborator

darzu commented May 29, 2020

I think it’d be neat if pathing could specify a set of tiles types that sprites could use (e.g. road tiles), instead of just “anything but walls”.

Essentially a “whitelist” of valid tiles (e.g. roads) instead of a “blacklist” of tiles to avoid (e.g. walls).

This decoupling with walls could be nice, because walls are used for many reasons. In one of my games I temporarily set a bunch of a walls, do the pathing, then unset those wall locations just so I can get pathing to work how I want.

@eanders-ms
Copy link
Collaborator

Just noticed this issue after making this: #14. It lets you provide an optional pathable tile image. A list would be better, but makes the block more complicated. Maybe break it up in to a few different blocks of varying complexity?

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

2 participants