Newbrict / engi

Oaktales engi fork
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Render Groups #25

Open Newbrict opened 9 years ago

Newbrict commented 9 years ago

@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 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.

"