I've build a architecture based on the entity-component-system-idea. So I got
- Components - Just store Data
- Systems - Operates isolated on Components
- Scripts - Which are just objects from type Script and attached to a ScriptComponent. A ScriptSystem will execute the init() and update() functions on the scripts then.
However, I'm wondering where to place the central game logic since the I have to check a few things about the overall game process, holding the map, counting the points, checks the points if they are enough for the end-screen, etc. ...
Should I create a single entitiy with just such a script attached to it or are there better solutions out there?