bcvery1 / tilepix

Library for combining tiled maps with pixel
MIT License
46 stars 14 forks source link

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

Closed pierredavidbelanger closed 5 years ago

pierredavidbelanger commented 5 years ago

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)).