Tagged Questions
5
votes
1answer
194 views
Design to handle logic within a state
I am designing a new game and I am trying out the entity-component design where entities are comprised of groups of components holding a bunch of attributes. I also have a stack of 'game states' and ...
4
votes
2answers
276 views
Game state management: the buck doesn't stop “here” soon enough
I realize there are already many Q&As on this site about GameState/GameScreen management, state machines, state stacks, etc. This question is meant as a follow-up:
Suppose hypothetically I ...
8
votes
2answers
927 views
Game state and input handling in component-based entity systems
My question is:
How can I handle game states in my entity system, without resorting to keeping a stack of game state objects around?
So the design of my entity system means that when an entity needs ...
5
votes
3answers
625 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 ...
6
votes
2answers
392 views
State changes in entities or components
I'm having some trouble figuring how to deal with state management in my entities.
I don't have trouble with Game state management, like pause and menus, since these are not handled as an entity ...
4
votes
2answers
2k views
How to structure game states in an entity/component-based system
I'm making a game designed with the entity-component paradigm that uses systems to communicate between components as explained here. I've reached the point in my development that I need to add game ...