Tiles of different sizes are positioned incorrectly #137

Open
opened 2017-06-23 21:31:02 +00:00 by Elleo · 2 comments
Elleo commented 2017-06-23 21:31:02 +00:00 (Migrated from github.com)

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.

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 2017-06-23 21:41:47 +00:00 (Migrated from github.com)

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

Here's a quick example app in which this can be seen: [tile-fix-example.tar.gz](https://github.com/Bacon2D/Bacon2D/files/1099117/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](https://user-images.githubusercontent.com/59350/27501408-fa25984c-5864-11e7-87fd-af6978e51941.png) And what it looks like after the fix in pull request #138 is applied: ![tile-fix-after](https://user-images.githubusercontent.com/59350/27501411-01d894b8-5865-11e7-8a67-441a948b3d60.png)
adderly commented 2017-06-23 23:12:10 +00:00 (Migrated from github.com)

+1

+1
Commenting is not possible because the repository is archived.
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mdkcore/Bacon2D#137
No description provided.