TheBoneJarmer / TiledCS

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

Incorrect index formula in readme #78

Closed awebmekhilef closed 2 years ago

awebmekhilef commented 2 years ago

Hey.

Your formula for calculating the index given x and y is supposed to be (y * _tileLayer.width) + x instead of (y * _tileLayer.height) + x.

TheBoneJarmer commented 2 years ago

You are absolutely right, well spotted!

TheBoneJarmer commented 2 years ago

Updated readme in develop branch, change will be available with next release.