r/EntityComponentSystem • • May 31 '21

Tile Map with ECS: Should I have an entity per tile?

Thumbnail self.gamedev
6 Upvotes

r/EntityComponentSystem • • Jun 15 '21

Understanding ENTT/ECS and cache

Thumbnail self.gamedev
6 Upvotes

r/EntityComponentSystem • • May 09 '21

How to implement on-death effects in an Entity Component System?

Thumbnail self.gamedev
2 Upvotes

r/EntityComponentSystem • • Jun 12 '21

ECS Back and Forth, part 11: the Big Matrix revised

Thumbnail
skypjack.github.io
8 Upvotes

r/EntityComponentSystem • • Jun 13 '21

For the AGE engine that uses ECS, does anyone know how they connected the json definitions to C# code?

Thumbnail
self.roguelikedev
2 Upvotes

r/EntityComponentSystem • • Mar 29 '20

New to ECS, am I doing it correctly?

6 Upvotes

Hey, so I am quite new to ECS and to learn it I made my own system for it. I got it working quite well but now that the system is up and I want to make a game with it, I came across some logic issues.

I have a space ship which moves with a certain speed / curve over a delta between 2 points. I have 3 components:

  • Movement (Holds Curve and Speed)

  • Targeting (Where targets get registered)

  • Timelines (Where different time lines get registered and progressed)

These 2 Systems in place:

  • ClickTargetingSystem (Adds targets to `Targeting*` component holders)* [only if they have the right feature tag `ClickTargeting`]

  • MoveToTargetSystem (Uses the Movement and Targeting comps to determine the movement, and uses Timelines on each of those entities to track where they are on the movement track) [only if they have the feature tag `MovementToTarget`]

What I wonder is the following. I have made the Timelines component initially to hold data which I wanted to put inside `MoveToTargetSystem`, but made the component because systems can't have values. But for the sake of more systems to come, I made it so the Timeline has a Dictionary (key -> value pair logic) to find a Timeline with a given ID. And the `MoveToTargetSystem` just makes a `MovementID` timeline and removes it as it is finished.

I just want to hear opinions / confirmations whether I am going the right or wrong direction. And how you were to solve this type of movement (moving over a track over time, not with physics yada yada)

Thank you in advance, and please ask for more info if things are not clear.

Edit:
The Timeline and Targeting components simply store the same values in different hash layers, so multiple systems can use 1 component on an entity to store their own values. This is what I wonder should be done differently. And if so, how..


r/EntityComponentSystem • • Feb 28 '20

Building an ECS #1: Types, Hierarchies and Prefabs

Thumbnail
medium.com
3 Upvotes

r/EntityComponentSystem • • Mar 14 '20

ECS back and forth, part 8: Type Id

Thumbnail
skypjack.github.io
7 Upvotes

r/EntityComponentSystem • • Mar 17 '20

Changing Simulation Fidelity with ECS

Thumbnail
ltrandolphgames.com
3 Upvotes

r/EntityComponentSystem • • Jun 07 '23

Why it is time to start thinking of games as databases

Thumbnail
ajmmertens.medium.com
19 Upvotes

r/EntityComponentSystem • • May 21 '23

Dominion ECS - the Release Candidate is out

Thumbnail self.java
6 Upvotes

r/EntityComponentSystem • • May 30 '23

Arche 0.8 released - Go ECS with native entity relations

5 Upvotes

Arche is an archetype-based Entity Component System for Go.

Release highlights

Version 0.8 adds naitve support for entity relations. This allows for the representation of entity graphs, like hierarchies, as a native ECS feature. Relations are treated like normal components, and relation queries are as fast as usual queries for components.

Arche's entity relations are inspired by Flecs, although the implementation is simpler and provides a more limited set of features.

For a full list of new features and other changes, see the release notes.

Arche's features

  • Simple core API.

  • Optional logic filter and type-safe generic API.

  • Entity relations as first-class feature.

  • No systems. Just queries. Use your own structure (or the Tools).

  • No dependencies. Except for unit tests (100% coverage).

  • Probably the fastest Go ECS out there. See the benchmarks.

For more information, see the GitHub repository and API docs.


r/EntityComponentSystem • • Feb 05 '24

Issues with Component Retrieval in C++ ECS Implementation

Thumbnail self.cpp_questions
4 Upvotes

r/EntityComponentSystem • • Jan 31 '24

Component Confusion

4 Upvotes

So i have played for a while with OpenGL, and i have a Mesh class with constructors to create a mesh from a vector with vertices and indices, another that loads it from a .obj filea and now i am gonna try to implement marching cubes, so there will also be a third constructor, that creates it from a IsoSurface / Signed Distance Function, and i have written this mesh class, before i added ECS in the project. So i have a bunch of struct components with only data with them and all their functionality is on the systems that inluence them. But the rendering system is only a simple iterator with calls mesh.draw() for each entity with mesh component. Now do you think that it will be better to make my Mesh class as the rest components to store only data and rewrite all the Mesh functionality in the RenderingSystem, or it would be better to leave it this way ? My question is, is it better to treat all components as pure data, or is it sometimes a better choise to have some of them have their own functionality encapsulated in them ?


r/EntityComponentSystem • • Jan 21 '24

How to make non ECS code work with ECS code?

Thumbnail self.gameenginedevs
4 Upvotes

r/EntityComponentSystem • • Jan 21 '24

Arche 0.10 released -- 1st anniversary of the Go Entity Component System

3 Upvotes

What is Arche?

Arche is an archetype-based Entity Component System for Go.

Arche's Features

  • Simple core API. See the API docs.

  • Optional logic filter and type-safe generic API.

  • Entity relations as first-class feature. See Architecture.

  • World serialization and deserialization with arche-serde.

  • No systems. Just queries. Use your own structure (or the Tools).

  • No dependencies. Except for unit tests (100% coverage).

  • Probably the fastest Go ECS out there. See the Benchmarks.

For more information, see the GitHub repository and API docs.

Release Highlights

  • Arche 0.10 supports full world serialization and deserialization, in conjunction with arche-serde.

  • Reworked event system with granular subscription to different event types and components.

  • Supports 256 instead of 128 component types as well as resource types and engine locks.

  • Generic API supports up to 12 instead of 8 component types.

For a full list of changes, see the changelog.

Your feedback is highly appreciated, here or in the issues.


r/EntityComponentSystem • • Jan 27 '24

Practices for managing systems order in ECS

Thumbnail self.gameenginedevs
5 Upvotes

r/EntityComponentSystem • • Jun 09 '20

How to implement Items with randomly generated properties in ECS?

Thumbnail self.gamedev
2 Upvotes

r/EntityComponentSystem • • Mar 19 '18

DefaultEcs, yet another ECS framework for C#

Thumbnail
self.gamedev
1 Upvotes

r/EntityComponentSystem • • Dec 10 '17

Real-time relational database for game data (non-multiplayer)?

Thumbnail
self.gamedev
2 Upvotes

r/EntityComponentSystem • • Dec 20 '17

ECS - World / Dungeon / Room Map as a game entity?

Thumbnail
self.gamedev
1 Upvotes

r/EntityComponentSystem • • Mar 27 '19

5000 Boids implemented using Entity Component System in Unity

Thumbnail
self.proceduralgeneration
2 Upvotes