refactored to use Single Entity and System to render all other entities
Previously, each entity which should be rendered had its own draw component. The problem with this system is that it does not allow the order in which entities are rendered to be defined.
Refactored to use a GameEntity
which has a RenderComponent
and RenderSystem
, where the RenderSystem
is responsible for rendering all drawable entities.