Tagged Questions
0
votes
2answers
210 views
best structure to handle entities in an entity component based game engine
I am trying to develop a 2D entity component based game with multiple layers as tilemaps (front or back from the scene).
I currently handle the tilemap layers in a 3 dimension array[z][y][x]. Each ...
5
votes
4answers
667 views
Should each Entity have its own update and render methods?
First, the questions:
Should each Entity (which are classes like Character, Tree, Enemy) have its own update() and render() methods?
If that's the case, then should I use Interfaces like ...
3
votes
1answer
746 views
How a “Collision System” should be implemented?
My game is written using a entity system approach using Artemis Framework. Right know my collision detection is called from the Movement System but i'm wondering if it's a proper way to do collision ...
4
votes
3answers
990 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 ...
2
votes
1answer
1k views
In a component/entity system, what's the correct way to implement entity-specific components?
I'm trying to create a basic C/E game engine for Android, and I'm trying to re-create pong as a basic warm-up. I currently have a EntityManager class that contains a list of all the UUIDs for its ...
5
votes
4answers
664 views
Drawbacks of using reflection for a component based system at loading-time
I'm coding a little casual game in Java using Slick2D.
This game use a lot of different "objects", managed in a composite way. So, firearms, furniture in the map, NPC and player character will be ...