Skip to main content
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 ...
Danny Yaroslavski's user avatar
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...
nenchev's user avatar
  • 141
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 ...
Ian Young's user avatar
  • 2,679
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 ...
Draco18s no longer trusts SE's user avatar
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 ...
Omar Guendeli's user avatar
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 ...
Connor Hollis's user avatar
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 ...
Ryan's user avatar
  • 41
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 ...
Bálint's user avatar
  • 15k
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 ...
Theraot's user avatar
  • 27.5k
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 ...
Naros's user avatar
  • 2,022

Only top scored, non community-wiki answers of a minimum length are eligible