New answers tagged

0

The point of System (as in ECS) is to update components of a single entity. System will be designed around that core assumption, with all the pros and limitations. Your goal, on the other hand, is to update entire set of entities, while using entire table of components as an input to this operation. You'll need to access the input entities all at once (...


0

I think your example is very specific, so I don't think there is anything in "textbooks" about this. I'll start with mentioning that there is no ECS police, and so if an implementation and an approach works for you, your team and your case, then it's fine to go with it and not overthink it. It's not clear to me what would be the interaction between ...


0

Is a platform an entity in 2D Platform in ECS pattern? Yes, it is. * Keep in mind that although you design your objects with tiles, only the graphical part needs to have "one sprite per tile". For example, although a platform is composed of four tiles, you do not have to have four physics "blocs" for this platform, you can extend a ...


0

Should the configuration files for entity types (be able to) just list all the component types an entity contains? No. As it's been pointed out in the comments, "You'd presumably want to store more than just the type of each component, but also the values of its relevant parameters/properties/fields." So, for example, your JSON file could look ...


Top 50 recent answers are included