Currently maps are represented a single struct. We perhaps need to introduce a new type into engi of a Group. Using a group we break the map down into separate entities (foreground, middle ground, scenic ground, background) each with a different tilemap/layer component. When the RenderSystem comes across a group entity it should (instead of adding the entity straight to the RenderSystem.renders map) scan through it's sub-entities and add them to the RenderSystem.renders map.
This would require more restructuring... But we are inevitably going to have to add a Group type anyway. Again, I would suggest doing this in a separate PR.
@paked writes "
Currently maps are represented a single struct. We perhaps need to introduce a new type into engi of a
Group
. Using a group we break the map down into separate entities (foreground, middle ground, scenic ground, background) each with a different tilemap/layer component. When the RenderSystem comes across a group entity it should (instead of adding the entity straight to theRenderSystem.renders
map) scan through it's sub-entities and add them to theRenderSystem.renders
map.This would require more restructuring... But we are inevitably going to have to add a
Group
type anyway. Again, I would suggest doing this in a separate PR."