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

Multiple Tileset Loading #5

Open
jgordon510 opened this issue May 11, 2020 · 3 comments
Open

Multiple Tileset Loading #5

jgordon510 opened this issue May 11, 2020 · 3 comments

Comments

@jgordon510
Copy link

I found that I wasn't able to load multiple tilesets, and it looked like the loop to load multiple sets had been disabled, and that code was unfinished. I managed to get multiple tilesets loading properly, by adding a key system to the tileN number. Now, it's ["239-0"] instead of just ["239"] with the extra character indicating the number layer. I also figured out how to skip any tiles that aren't used in the map, which greatly speeds up the loading process. I'd be happy to share my changed with you, if you'd like. I'm going to detail another set of changes I made to allow rotation/flipping in another issue. Some of those changes intersect these, particularly the selective tile loading.

@linux-man
Copy link
Owner

Your contribution is much appreciated. I guess I never used multiple tilesets. 😊
About loading: I had that issue on #2, but decided to not implement it. You might want to use unused tiles (changing on events, or animating).
Pull any changes you want to commit, just keep it tight. We all prefer a dozen small/specific requests than a gigantic one.
Thank you!

@jgordon510
Copy link
Author

jgordon510 commented May 11, 2020 via email

@linux-man
Copy link
Owner

I like your ideas. Looking forward to your contributions. 👍

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