Component-based designs rely on separating the multiple logical attributes of business objects and game objects into small components dedicated only to specific tasks. Whereas game objects are usually modeled to reproduce the attributes and behavior of "real world" objects by aggregating them ...
4
votes
1answer
107 views
Dynamic Components
I am attempting to design a component-based architecture that allows Components to be dynamically enabled and disabled, much like the system employed by Unity3D. For example, all Components are ...
2
votes
1answer
121 views
Getting Started with Component Architecture: DI?
TLDR: if I have entities like Ship and Bullet and components like Positionable and Drawable, should I create interfaces for each component and inject them into my entities using DI, or should I be ...
3
votes
2answers
117 views
Adding sub-entities to existing entities. Should it be done in the Entity and Component classes?
I'm in a situation where a player can be given the control of small parts of an entity (i.e. Left missile battery). Therefore I started implementing sub entities as follow.
Entities are Objects with ...
0
votes
1answer
96 views
Game component causes game to freeze
I'm trying to add my camera component to Game1 class' constructor like so:
Camera camera; // from class Camera : GameComponent
....
public Game1()
{
graphics = new ...
3
votes
2answers
239 views
Can I remove the systems from a component entity system?
After reading a lot about entity/component based engines. I feel like there is no real definition for this kind of engine. Reading this thread: Implementing features in an Entity System and the linked ...
10
votes
3answers
374 views
The reasons behind Unity3D engine design (game object/transform component)
I'm trying to understand the reasoning behind Unity3D engine design and this is something I can't get my head around yet: why is transform data stored in a separate component, instead of being a part ...
8
votes
3answers
354 views
Component-based design: handling objects interaction
I'm not sure how exactly objects do things to other objects in a component based design.
Say I have an Obj class. I do:
Obj obj;
obj.add(new Position());
obj.add(new Physics());
How could I then ...
1
vote
1answer
164 views
Implicity of “Objects” in component based design
For a while, I have mostly been using "standard OOP" (inheritance heavy, tree structure, etc.) styled designs for my Game Development needs. However, for my current project I am trying to shift over ...
4
votes
3answers
400 views
Composition heavy OOP vs pure entity component systems? [closed]
I admit, I have made the sin of overusing, and even abusing inheritance. The first (text) game project that I made when I was taking my OOP course went as far as "Locked door" and "unlocked door" from ...
1
vote
2answers
327 views
Is there any option other than Component Based for game architecture?
Having read a lot recently on Component Based systems (for games), i find it hard to go back to my earlier state of mind.
If static object hierarchies fail to model "objects with a dynamic set of ...
1
vote
1answer
265 views
Is my engine concept a good one?
I'm currently writing a generic engine for my incoming games. I have developed few games already but never with the same "base" and my code was/is quite a mess. The idea was to create an engine that I ...
10
votes
5answers
728 views
Implementing features in an Entity System
After asking two questions on Entity Systems (1, 2), and reading some articles on them, I think that I understand them much better than before.
But, I still have some uncertainties, and mainly they ...
4
votes
2answers
305 views
Tilemaps in a Entity System Framework?
I have been reading up on Entity System Frameworks specifically Artemis. I am trying to decide if it is right for me. I strictly work on tile based 2d pixel art games, and I don’t think they will ever ...
7
votes
3answers
714 views
Why is it a bad idea to store methods in Entities and Components? (Along with some other Entity System questions.)
This is a followup to this question, which I answered, but this one tackles with a much more specific subject.
This answer helped me understand Entity Systems even better than the article.
I've ...
6
votes
3answers
676 views
Entity Component System based engine
Note: I'm programming this in Javascript, but it should be language agnostic in the most part.
I am thinking about converting my engine to an ECS based one.
I get the basic idea (note: this is ...