You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I've started looking around at several TMX file loaders, and I've noticed that a lot of them (this one included) don't load external tilesets that maps / layers use.
Is there a reason for this, or is it just a missing implementation? And how would one do this with go-tmx?
Thanks for any assistance!
The text was updated successfully, but these errors were encountered:
@SolarLune Hi! Based on what I see here, this shouldn't be hard to implement. I'd add a new function Map.decodeTilesets() which would check if the Tileset.Source is set and populate the Tileset by reading that file, and call it from Map.Read().
I can take a look if I can find sometime, but feel free to open a PR!
Hey! I finally took a crack at this, and I ran into a bit of a roadblock - the Read() function doesn't take a direct path to the TMX file, and any external Tilesets' Source attributes are relative paths. That means there's no path to external .TSX files to load them up.
I could add a DecodeTilesets() function on the Map itself that could be called after map creation by the user with a path to the map's file, but that's a bit awkward. However, that could be called in the function that I just PR'd that loads in the map from a string path after map creation, which isn't too bad, I think.
Hello! I've started looking around at several TMX file loaders, and I've noticed that a lot of them (this one included) don't load external tilesets that maps / layers use.
Is there a reason for this, or is it just a missing implementation? And how would one do this with go-tmx?
Thanks for any assistance!
The text was updated successfully, but these errors were encountered: