Is anybody using/has used Entity/Component design in their games?
I was reading about entity systems in games. For any of you who haven't seen them before, read the links below, they should explain it better than I can. It looks like ebs is the most common framework for python and I was wondering if any of you have used it or something like it. If so, how was it? It's certainly a shift from the way I normally think, so I'm not sure I'm going to do it this pygame, but it's something to consider.http://python-utilities.readthedocs.org/en/latest/ebs.html
http://entity-systems.wikidot.com/
(log in to comment)
Cosmologicon on 2014/04/22 15:54:
Yes. I forced myself to try a component-based design a while ago, and now I love it. I rolled my own framework for JavaScript and now I'll never go back to an inheritance tree if I don't need to. There's a learning curve but it's definitely worth it in my opinion. (I do, however, think that most component-based frameworks make it more complicated than necessary. Mine is simpler than most. Maybe if I were writing bigger games that would be a problem.)However, I've never done it in python. I considered writing a framework for python, but I don't know about porting my JavaScript framework: it uses some JavaScript features that python lacks.