You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey!
It would be great to add support for Tiled collisions (see screenshot below) in macroquad-tiled. See screenshot below:
Screenshot of Tiled collisions in editor
From what I understand macroquad-tiled does not support object type properties in tile objects in tileset JSON in case of embedded tilemap (tilesets[0].tiles[0]). When Tiled exports tileset, it adds objectgroup property on each tile where Tiled collisions were used. See how generated JSON for the shapes on the screenshot above looks:
Example of JSON generated for collisions from the screenshot above (warning - long code block)
Right now it's not possible to access these properties, and macroquad-tiled actually panics when it encounters object property in tiles.
As far as I understand, macroquad doesn't add any generic physics or shapes that can be used to calculate collisions out of the box (I think only platformer physics crate is available?), so it would be good to add ability to access these properties, and maybe actually implement some shape structs to populate them from Tiled collision areas.
Hey!
It would be great to add support for Tiled collisions (see screenshot below) in macroquad-tiled. See screenshot below:
Screenshot of Tiled collisions in editor
From what I understand macroquad-tiled does not support object type properties in tile objects in tileset JSON in case of embedded tilemap (
tilesets[0].tiles[0]
). When Tiled exports tileset, it addsobjectgroup
property on each tile where Tiled collisions were used. See how generated JSON for the shapes on the screenshot above looks:Example of JSON generated for collisions from the screenshot above (warning - long code block)
Right now it's not possible to access these properties, and macroquad-tiled actually panics when it encounters object property in tiles.
As far as I understand, macroquad doesn't add any generic physics or shapes that can be used to calculate collisions out of the box (I think only platformer physics crate is available?), so it would be good to add ability to access these properties, and maybe actually implement some shape structs to populate them from Tiled collision areas.
Reference from #593
The text was updated successfully, but these errors were encountered: