Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
664 stars 75 forks source link

fix!: adjust tile transformations for bevy_ecs_tilemap 0.8 #136

Closed Trouv closed 1 year ago

Trouv commented 1 year ago

bevy_ecs_tilemap 0.7 anchored tiles to the bottom-left, while 0.8 anchors tiles to the center.

For example, the (0,0) tile used to render the bottom-left pixel of the tile at the origin, but it now renders the center of the tile at the origin.

Since bevy_ecs_ldtk adds transforms to tiles, the transform logic needed to be adjusted after updating to bevy_ecs_tilemap 0.8. This PR performs that update, which introduces a breaking change to some utility functions

To do

Trouv commented 1 year ago

Thought I fixed it but I think I actually just forgot to pull the bevy_ecs_tilemap update in main woops