Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've oscillated back and forth between the different entity paradigms numerous times. In my most recent try I moved towards a design that is essentially an inversion of typical component strategy to put less emphasis on components as unique structures, since in so many cases, they're a repackaging of an existing data type.

To do this, I have some generic container types that are extensions of common ones(list, bag, etc.) to be aware of entities and clean up after them. Instances of the generics are subsequently parametrized with the data I need. The top level entities hold the minimum of information needed to do despawning.

It's had some success in use, but I'm not ready to say it's a major improvement.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: