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

Tilesets based on collection of images #382

Closed
ewal opened this issue Jun 25, 2022 · 5 comments
Closed

Tilesets based on collection of images #382

ewal opened this issue Jun 25, 2022 · 5 comments

Comments

@ewal
Copy link

ewal commented Jun 25, 2022

Tiled editor v1.8.6
excalibur-tiled v0.26.2
excalibur v0.26.0

Been trying to use a tileset that is based on a "Collection of images" without luck.
Should it be possible to use these types of tilesets, and if not, any plans to add support for them?

In my case I have a set of standalone looping background images that I wish to have in a single tileset. I can use a "Tileset image" tileset for each file but it would just be nice to be able to collect them in a single file :)

image

@eonarheim
Copy link
Member

@ewal I don't think it's currently possible, but it definitely should be part of the plugin. I support this 👍

The workaround right now would be to merge the images into 1 unfortunately.

@ewal
Copy link
Author

ewal commented Jun 26, 2022

Thanks 👍

@ewal ewal closed this as completed Jun 26, 2022
@ewal
Copy link
Author

ewal commented Jun 26, 2022

Saw that you referenced the issue just after I closed it so I'll reopen it.

@ewal ewal reopened this Jun 26, 2022
eonarheim added a commit that referenced this issue Jul 2, 2022
This PR implements the logic to parse collection of images based Tiled tilesets.

<img width="270" alt="image" src="https://user-images.githubusercontent.com/612071/177015856-d32091fa-7450-4856-afa9-76283a51c65c.png">

<img width="659" alt="image" src="https://user-images.githubusercontent.com/612071/175797163-cfd4e6f6-1552-445b-9660-3426353fb551.png">

TODOs
* [x] Tests
* [x] JSON collection of image tileset
* [x] External JSON collection of image tileset
@eonarheim
Copy link
Member

@ewal Thanks for bringing this to our attention!

Closed in #383

@ewal
Copy link
Author

ewal commented Jul 3, 2022

That was fast! Thank you for the quick respond and action. 💪

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