Closed igordreher closed 2 years ago
It's possible you're running into the issue fixed here: https://github.com/StarArawn/bevy_ecs_tilemap/pull/151
Try patching the bevy_ecs_tilemap
dependency:
[patch.crates-io]
bevy_ecs_tilemap = { git = "https://github.com/StarArawn/bevy_ecs_tilemap", rev = "d5169b6acf96d5f4a88592c3d6d24bde8ad724f6" }
It works now with this patch, Thank you
For someone who finds this issue later. In Bevy 0.7 and bevy_ecs_ldtk 0.3 this rounding issue is solved and the patch is not needed (and doesn't work), but the overrunning the bounds
panic still occurs. In my case, the root cause was that I used a tilemap with a tile spacing of 1px. Enabling atlas
feature on bevy_ecs_ldtk solves it.
@bardt, I found this to be true of bevy
= 0.12.0
and bevy_ecs_ldtk
= 0.9.0
. I really appreciate you taking time to document the issue.
Thread main panics when running a minimal setup code.
Code used:
Error message: