TheBoneJarmer / TiledCS

TiledCS is a dotnet library for loading Tiled tilesets and maps
MIT License
141 stars 51 forks source link

TiledMap.GetSourceRect does not consider tileset spacing #101

Open Peewi opened 1 year ago

Peewi commented 1 year ago

I realize that this library is no longer maintained, but I am still making this issue so that others might see it without running into it themselves.

TiledMap.GetSourceRect does not consider tile spacing in tilesets, which will cause incorrect results for any tileset with non-zero spacing.

TiledTileset has a Spacing property that is loaded from the tileset file, but it is never used.