7
votes
3answers
2k views

How to update entity states and animations in a component-based game

I'm trying to design a component-based entity system for learning purposes (and later use on some games) and I'm having some troubles when it comes to updating entity states. I don't want to have an ...
8
votes
1answer
986 views

Abstracting Entity System animation states

I recently started designing a Game Engine using the Entity System paradigm, i.e. having entities as an aggregation of components, and systems that implement the actual game. Whereas I've had ...
1
vote
1answer
491 views

How to determine what animation to render in a component-based system without breaking encapsulation?

In a component based system, how should change the rendering/visual state of an entity such that I know what animation to use, without breaking encapsulation? My guess is that it would have to be ...