2
votes
2answers
129 views

Should widgets be part of a scene in a 2D game?

I'm in the middle of separating logic and drawing of a 2D game, i.e. I'm moving from scenes/entities that draw themselves to scenes/entities that merely store and update data, getting drawn by a ...
2
votes
1answer
171 views

Selecting the entities needed for rendering [duplicate]

Currently I'm sorting and looping every entity on my level but I really don't need to. Only a small subset would be on screen. If I could extract a list of entities from my main list that are on ...
3
votes
4answers
279 views

Sprite and Physics components or sub-components?

I'm taking my first dive into creating a very simple entity framework. The key concepts (classes) are: Entity (has 0+ components, can return components by type) SpriteEntity (everything you need to ...