5
votes
Accepted
Should entities auto-register to systems based on their component signature?
TL;DR Entities SHOULD NOT auto-register to systems based on component signatures; prefer instead to explicitly declare component sets/nodes to register your entities to systems that operate on ...
3
votes
Cannot decide between using a MessageBus and entities for events in my ECS game
My approach was to have a PhysicsSystem which works on entities that have a ColliderComponent/PhysicsComponent/TransformComponent...
3
votes
Should entities auto-register to systems based on their component signature?
I think you may be overthinking this.
The point of ECS is to be simple:
An entity is nothing more than an aggregate of components.
A system is only interested in a subset of those components. For ...
2
votes
Accepted
How can I make an entity invulnerable to fall damage?
Your onEntityFall method is not registered to the event bus. Notice where your yourPlayerHarvestEvent method is and how its ...
1
vote
How to delete Unity Hybrid ECS Entities?
Coming from an Entitas background here, i usually:
Create a component called Destroy.
at the end of the execution cycle i have a Cleanup System that reacts for entities that have the Destroy ...
1
vote
Network limitation in multiplayer game
Your problem reminds me of this article about AoE: https://www.gamasutra.com/view/feature/131503/1500_archers_on_a_288_network_.php
The articles solution for AoE's large number of units on screen is ...
1
vote
Java - Entity Collision only working for last index of the Entity Array
[SOLVED]: Added a CollisionID attached to the "i" variable iteration of each index of the Entities array when collision has been detected. This effectively pinpoints the actual location of the ...
1
vote
Accepted
How would a server handle sending entity updates to clients?
First of all, you're using Java and LibGDX, so you have access to UDP. UDP is better in a lot of aspects than TCP if you make anything but a strategy or puzzle game (as a rule of thumb, UDP is better ...
1
vote
Accepted
The most correct/efficient way to update millions of entities that change over time in an mmo?
Both scenarios are useful, there are object that will require to be implemented in the second scenario. Yet, I suggest to use the first one as much as possible.
Scenario 1
Using scenario 1 falls ...
1
vote
Creating Multiple Render System to Draw Different Entities in Entity-Component-System
What you should ask yourself is what is the actual difference between the two types?
An animated entity typically has both some form of a skeleton of bones which are animated through various ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
entity × 47entity-system × 18
entity-component × 12
java × 9
architecture × 8
component-based × 7
c++ × 6
collision-detection × 5
unity × 4
libgdx × 4
c# × 3
2d × 3
networking × 3
xna × 2
rendering × 2
movement × 2
ai × 2
path-finding × 2
events × 2
entity-component-system × 2
game-design × 1
javascript × 1
algorithm × 1
multiplayer × 1
ios × 1