The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
40 views

Crafty - How to get the id of the collision element?

As the topic says, I want to know how to get the ID of an active colliding entity. My Player Entity is called with Crafty.e("Player") Please notice, that I do not want the ID of my Player Entity. ...
1
vote
2answers
92 views

How do I create a sound manager? [closed]

I have a basic entity system in place. Now I want to add audio. I want to make a database class that watches over entities, pulls data out of them, and creates audio streams whenever necessary. I'm ...
2
votes
1answer
189 views

MMORPG Entitiy handling on different maps

Is this a good approach for a MMORPG entity handling on different maps? Map Structure and entity existece: A map is basically a parent node in a scene graph. There's one map for each town, room ...
-2
votes
1answer
158 views

Will this Entity Code work? [closed]

How do you create 2D entities? Here is something i tried to write up as a base for entities but is this usable and is entites like this?: public abstract class Entity { int attackRange; // ...
5
votes
3answers
2k views

What's a good entity hierarchy for a 2D game?

I'm in the process of building a new 2D game out of some code I wrote a while ago. The object hierarchy for entities is like this: Scene (e.g. MainMenu): Contains multiple entities and delegates ...
4
votes
4answers
454 views

Recursive or linear gameobjects update?

I have a tree of gameobjects, so every node contains a list of children. In update function: Is it better to do recursive or linear walking through game objects. update() { update self; ...