Skip to main content

Questions tagged [entity-system]

A programming paradigm in which gameobjects (entities) are composed out of components, and are operated upon by systems. Each entity is an ID that points to specific components.

Filter by
Sorted by
Tagged with
2 votes
1 answer
1k views

I've got a player entiy in my game that can pick up weapons when colliding with item entities. The player can hold and use the weapon in their hand (the weapon sprite is rendered relative to the ...
EchtFettigerKeks's user avatar
2 votes
0 answers
2k views

I've been creating an interactive fiction game in javascript that uses an entity component system as described here. The problem I've encountered is in developing the AI system for the game. Ideally, ...
pigasus's user avatar
  • 21
0 votes
2 answers
2k views

I'm currently building an entity component system and I just have one question... Should a system be allowed to render things to the screen? For example, should I make a SpriteComponent that contains ...
user avatar
1 vote
2 answers
1k views

I read a lot about ECS (strategy) pattern and have a few questions. Consider simple space game. We have stars there. Obviously star is an entity. What if I want to ...
Jasper's user avatar
  • 13
-2 votes
1 answer
56 views

I am working on a research project . I need to know the network communication in games in large Multiplayer games (Battlefield,GTA 5). Is there some official documentation present for these games? ...
Waqas Amjad's user avatar
0 votes
1 answer
828 views

I'm developing a top-down shooter in C++ using an entity-component system, and have run into a problem when attempting to refactor powerups. Currently I have a ...
Rich. T.'s user avatar
1 vote
3 answers
2k views

I have started using Lua as a scripting language for my game engine. It works perfectly for things like input, audio etc. However, I'm now trying to bind my entity component system functions which ...
TomShar's user avatar
  • 97
3 votes
2 answers
2k views

I have been trying to get my head around using an entity component system for a game. But I am struggling to understand how I should do 'game-logic'. What I have so far: Components are essentially ...
TomShar's user avatar
  • 97
3 votes
2 answers
2k views

I have been trying to wrap my head around how ECS works when there are components which are shared or dependent. I've read numerous articles on ECS and can't seem to find a definitive answer to this. ...
Driv's user avatar
  • 43
1 vote
1 answer
2k views

I'm new to ECS concept and trying to refactor my app with an ECS manner. After reading some articles, I still don't get a sense about how to organize hierarchy for such pattern. My questions are Is a ...
Lin M's user avatar
  • 11
0 votes
1 answer
493 views

I'm working on a 3d grid based game, and I am trying to implement it using an ECS. I have a position component which indicates the entity's position on the grid. It is comprised of 3 integers (for ...
user92748's user avatar
3 votes
2 answers
2k views

If I knew all of the systems at compile time, I could order them myself. However, I intend on having user-defined mods. This adds a level of complexity, in that I (as the framework developer) don't ...
Zymus's user avatar
  • 131
0 votes
2 answers
2k views

I've been using the ECS pattern for a while now and, as the complexity of the game increased, I started having issues with the timing of the entity initialisation and destruction code. I'll use the ...
loodakrawa's user avatar
0 votes
2 answers
742 views

I'm implementing an ECS and have run into a predicament. Let's say my main loop is something like (super simplified, all code below is pseudo-code) ...
Zymus's user avatar
  • 131
1 vote
1 answer
672 views

I'm currently in the planning phase of a game. The whole thing should be based on the entity-component-system (ECS) pattern. All logic is concentrated inside of the systems, i.e. that the components ...
SimdSeemsSuitable's user avatar
6 votes
2 answers
5k views

I'm planning to develop a game in C# (but I don't think that language matters) and I'll be using Entity Component System since I know by design that my game will have a lot of different game items ...
Andrew's user avatar
  • 111
0 votes
0 answers
162 views

I have seen a lot of game programming tutorials doing this: ...
videogamechef's user avatar
1 vote
2 answers
511 views

I asked this question in stackoverflow, but I didn't get any responses. I think it's better suited in this exchange. I'm building a game engine of sorts (purely educational) and am not sure the best ...
jakedipity's user avatar
0 votes
1 answer
368 views

I'm writing a game engine with an editor that allows you to create individual components like sprites, fonts, and particles. Then you're able to combine these individual components into what I call an ...
Game_Overture's user avatar
1 vote
1 answer
627 views

I am developing a game using Libgdx and Ashley, and I would like to know the best way to detect collisions between different entities. Currently I have been using a ContactListener that detects ...
LizardStd's user avatar
2 votes
1 answer
161 views

EDIT: I forgot to mention that in this implementation E stands for Entity which is just an ID, C => Component as data-only types and S for Systems which should implement logic Currently i'm working ...
Salco's user avatar
  • 23
2 votes
1 answer
445 views

I have been working on libGDX and the Ashley framework, and I have not been able to find any information on resource control in memory. I would like to know if there is any way to control those ...
LizardStd's user avatar
5 votes
2 answers
693 views

I've been working on an entity component system and have the trouble of where to define/put the arrays of each component type. Each component type is user defined so I do not know what or how many ...
TomShar's user avatar
  • 97
1 vote
0 answers
204 views

I am currently coding my own ECS to get a deeper understanding of how such an engine works. I am currently putting together systems. I am aware that there is no right answer to my question as there ...
Martin Sand's user avatar
1 vote
2 answers
3k views

I am implementing an entity-component system. Below is my current implementation in c++. ...
Lesley Lai's user avatar
0 votes
1 answer
828 views

If got an Entity Component System based game-project (like classic zelda). The Player as well as Enemys are Entities with sprite- and tranform-components. The Weapons are also Entities with sprite- ...
EchtFettigerKeks's user avatar
2 votes
1 answer
801 views

I'm doing a game using Phaser with TypeScript. I want to implement a component based architecture for Actors. What I'm trying to achieve is this: ...
Guilherme Recchi Cardozo's user avatar
0 votes
1 answer
2k views

I've used Entitas a bit and it appeared to me as a great way of creating clean, modular code. I've seen few examples of games created with this framework, and most of them were puzzles, TD's, simple ...
dargemir's user avatar
  • 387
7 votes
2 answers
15k views

I want to ask if the following is an effective way to architect event propagation using an ECS? Here is a hypothetical collision scenario using an ECS. Components: ...
Danny Yaroslavski's user avatar
1 vote
2 answers
2k views

I see all the upside in entities registering automatically for basic components. If an entity has a Renderable component, it should be registered to a list that's used by a Renderable System. If an ...
Danny Yaroslavski's user avatar
0 votes
0 answers
694 views

Say I have an entity that has these components: -Transformation -Visual Imagine that these components can nest: If I have a parent transformation component, a child transformation relies on the ...
Danny Yaroslavski's user avatar
2 votes
1 answer
2k views

I'm developing a using the Entity-Component model, and so far have components for position, input, graphics and a camera, and systems for rendering graphics and handling input. All seems to be ...
Rich. T.'s user avatar
2 votes
1 answer
2k views

Reading up on ECS, I've tried to implement a simple 'game', if you can call it that. Basic concepts : You have planets(entity), they produce gold. (gold is a component inside planet) Planets can ...
Patrick's user avatar
  • 163
0 votes
0 answers
149 views

I'm making a kind of entity component system framework and I have a doubt: I have two components 'health_damage', 'physic' (which contains position, weight,...) and 'sprite' (position, dimensions...)....
Liuka's user avatar
  • 595
12 votes
1 answer
3k views

In designing an entity-component system for my engine, I've come across a little snag in the way of storing and retrieving a particular type of component. First, let me set clear up a bit of ...
CRefice's user avatar
  • 221
0 votes
1 answer
388 views

Im currently trying to setup my game and Ive started to implement input. It works like this: I have an Input class who notifies the ...
zebleckDAMM's user avatar
0 votes
1 answer
238 views

Im currently developing a game with the entity-component system of Ashley in Libgdx (Java). In the game you would be able to walk on planets (2D not 3D), fly in the star system and traverse between ...
zebleckDAMM's user avatar
1 vote
1 answer
1k views

I am currently working on a game in Java that uses an entity component system. The game currently has two separate update() and ...
user avatar
0 votes
1 answer
243 views

I have been studying several entity component systems (Anax and EntityX) to get an idea of how they work. For Entity ids, both use 2 numbers. The first number is basically a position in an array, and ...
Ry Lowry's user avatar
  • 103
0 votes
1 answer
117 views

I have created ECS framework from scratch using C++. Everything works fine, but I think my code is not so cute (at #1):- ...
javaLover's user avatar
  • 227
1 vote
2 answers
4k views

I'm designing a simple Arcanoid game with ECS. With ECS there are many systems that only update components once in a while. For example, Particle systems are animated sprites that can be used for ...
Hennio's user avatar
  • 113
1 vote
2 answers
150 views

In my game I have a MoveComponent and a ClimbComponent. Some characters can only move around on one level, others are able to ...
Krumelur's user avatar
  • 299
0 votes
2 answers
886 views

I have some count of weapons - pistol, shotgun, rifle. And I have one system which deals with all weapons, and another system which deals only with pistol. So I need to create both components "weapons"...
saxartom's user avatar
2 votes
2 answers
5k views

I'm developing an isometric RPG, with 3D characters in 2D level. I was using a standard object orientated programming paradigm, but was faced with a lot of issues. Recently, I learned about entity ...
user2610005's user avatar
1 vote
1 answer
316 views

Currently I have an architecture (not 100% accurate): The RenderData contains primitives, which will be processed by the GraphicsEngine. Upon creation I have to send the pointer of the renderData ...
Tudvari's user avatar
  • 801
0 votes
2 answers
195 views

I have a GameObject class, which contains Components, like: Renderer Camera Behaviour Rigidbody First I inherited all of them from Component which has an Update() method, and it is called every frame ...
Tudvari's user avatar
  • 801
3 votes
1 answer
745 views

Many many thanks to anyone who chooses to take the time to read through this all and offer any advice. I'm writing a game in which multiple different kinds of Objects move around a grid-based board ...
CaptainTid's user avatar
0 votes
2 answers
899 views

To get some practice with SpriteKit, entities and components I built a little demo. I created a SKNode subclass (...
Krumelur's user avatar
  • 299
1 vote
1 answer
831 views

I'm using an Entity-Component System and have an AI System that acts on certain entities (agents) within the system. My question is: how should the AI system interact with the world and the agents? I'...
Max's user avatar
  • 316
0 votes
1 answer
1k views

I want to use Ashley but I also want to use actions and listeners with Scene2d. I read that it is not a good idea, but why? Ican create a system with stage.act(); and stage.draw(); in the update ...
Lordeblader's user avatar

1
2
3 4 5
9