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

tilemaps sharing a tileset #4

Open
konsumer opened this issue Aug 11, 2021 · 0 comments
Open

tilemaps sharing a tileset #4

konsumer opened this issue Aug 11, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@konsumer
Copy link
Member

In Tiled, you can link to an external tileset, and share tilesets between maps. This can really cut down on filesize/request-count, if you have a bunch of maps that use the same tiles. Currently, this loader requires inline tilesets, but the code is in-place to link to external URL-base (location is used for images, and could be used for tilesets.)

When implementing, make sure inserrting an image as well as a URL (like how map works) is supported, so that users can load a tileset on their own, or link to a URL, or just load a map complete with referenced tilesets. I am a big fan of looking at looking at type of things in tilesets and determine the correct thing to do (load external tileset or use it as-is) SO it works with very little friction how the user expects, and it works similar to how map works, currently.

I could see the unpacking routine in loadTiledMap being broken-out into a separate loadTileset, so ti can be used separately, and automatically when loading a map.

Relates to #1 #2

@konsumer konsumer added the enhancement New feature or request label Aug 12, 2021
@konsumer konsumer added the help wanted Extra attention is needed label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant