adrien-bon / bevy_ecs_tiled

Helpers for working with 2D tilemaps created with the Tiled map editor
MIT License
34 stars 8 forks source link

Isometric (Staggered) maps are not supported #31

Open adrien-bon opened 2 months ago

adrien-bon commented 2 months ago

When loading an isometric "staggered" map, tiles do not render properly (issue with bevy_ecs_tilemap or the way we use it ?) and objects placement is messed up. See 2nd map of examples/iso_map.rs

Since it looks like to be not so easy to fix (not well supported by bevy_ecs_tilemap ? multiple combinations of stagger axis/stagger index) and we already have the isometric "diamond" map with the same characteristics, I won't fix this for now.

I added a warning when an user tries to load such a map so he is warned!

Here is an example of the issue:

image

darkautism commented 1 month ago

Is the collider spawn in different space is the same bug? image

darkautism commented 1 month ago

Hex has the same bug image

image

image

adrien-bon commented 1 month ago

No, I don't think it's the same bug. This issue is to track the support for "staggered" isometric map, which currently do not render properly (tiles are all messed up). In your case, the render seems to be correct.

What you observe looks like to be an issue with colliders and objects position. It's a different thing.

~~I bet you are using "infinite" maps: I know they are not well supported right now for isometric and hexagonal orientations, but I did not do extensive testings. Can you please confirm you are using an infinite map in you screenshot ? If so, I'll open a dedicated issue to track this bug.~~

After verification, it's not an infinite map, I'll open a dedicated issue for this.