Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
674 stars 76 forks source link

tile_pos_to_int_grid_with_grid_tiles_tile_maker checks grid_tiles #228

Closed MScottMcBee closed 1 year ago

MScottMcBee commented 1 year ago

A possible solution to https://github.com/Trouv/bevy_ecs_ldtk/issues/227, this PR changes tile_pos_to_tile_if_int_grid_nonzero_maker to take in an grid_tiles array as an argument and checks against it to see if an invisible tile should be made or not.

Trouv commented 1 year ago

Thanks for the detailed issue, and the contribution!