Bacon2D/Bacon2D

Tiles of different sizes are positioned incorrectly

Elleo opened this issue · 2 comments

Elleo commented

Currently the TiledScene uses a tile's own dimensions to calculate its cell position, this should be done with the map's tile dimensions to correctly place tiles of different sizes.

Elleo commented

Here's a quick example app in which this can be seen:
tile-fix-example.tar.gz

The tree top and trunk tiles are both 96x96, whereas the map itself is 32x32. This renders correctly in the Tiled Editor, but incorrectly in Bacon2D.

This is what it looks like at the moment:

tile-fix-before

And what it looks like after the fix in pull request #138 is applied:

tile-fix-after

+1