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

read tsx assets relative to the tsx not the tmx #93

Conversation

pierredavidbelanger
Copy link
Contributor

In my project, tilesets and their assets are in the same folder, which is different from the map. Tiled has no problem with this. But using this lib, they could not be found because the code was trying to load the sprite file relative to the map folder (filepath.Join(ts.parentMap.dir, ts.Image.Source)).

@bcvery1 bcvery1 merged commit 28b1bbd into bcvery1:master Sep 14, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants