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

have a way to path a single sprite (or group of sprites) to any tile of a certain kind (e.g. go to water) #8

Open
darzu opened this issue May 29, 2020 · 2 comments

Comments

@darzu
Copy link
Collaborator

darzu commented May 29, 2020

No description provided.

@jwunderl
Copy link
Owner

jwunderl commented Jun 1, 2020

Oh, you already had this here:

export function aStarToAnyOfType(start: tiles.Location, tile: Image) {
-- did we just need to discuss the block for this? (I guess we could consider allowing an array of images, in case you have several types of e.g. water)

@darzu
Copy link
Collaborator Author

darzu commented Jun 2, 2020

Yeah, the block design should be all that's needed.
An array is an interesting idea. I like that, since by default it can be an array with one element. And the wordage "any of (array ...)" works out well I think

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