MSGhero / mono2D

My attempt at a framework using Heaps and ECS
MIT License
3 stars 0 forks source link

Consider formalizing Proto #9

Open MSGhero opened 3 months ago

MSGhero commented 3 months ago

Proto is an entity with stored references to its components. This violates the premise of ECS, but damn is it convenient as hell when you need to do things that are too broad to want to make a System for each time.

Ex:

Ex:

MSGhero commented 3 months ago

Maybe there isn't a single Proto and single every-subclass-of-Proto. Instead, maybe core classes similar to HaxeUI's Component for UI, some kind of sprite+anim thing, physics Body, etc which likely have a lot of overlap but otherwise are not related to each other

Or maybe more complex Protos have a reference to the simpler ones, instead of just extending them