The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
32 views

Does a Standard Exist for Game Entity View Frustums

I was just recently adding the ability for my in-game entities to have their own Frustums, with the intentions of making them able to see enemies later down the road of my development cycle. My custom ...
0
votes
1answer
43 views

Ideas for refactoring regarding simple state management in entities and level

I'm actually developing a very simple 3D game, Arkanoid/Breakout style, with very simple mechanics, and it's progressing while I learn the game dev domain own concepts and techniques (My background is ...
0
votes
1answer
89 views

Organizing Setup(), Update() and Draw() function in a game engine

I'm creating my first game engine and I want help with organizing the Setup(), Update() and Draw() functions in the correct way. Here is how my main() function looks like /* BEGIN main() Function */ ...
2
votes
2answers
106 views

Assigning IDs to entities and obects for use in scripts and by other objects

I'm currently planning a small, simple scripting system for my game engine that will allow me to easily define scenes (similar to the "cutscenes" found in 2D RPGs). It consists mainly of simple ...
0
votes
2answers
233 views

Creating Entities from Identifiers (C#)

I am writing a game in C#/XNA. Often, it's useful to have a function like this in a game engine: Entity CreateEntity(string id, Vector3 location) { ... } So that, for instance, you ...
0
votes
1answer
111 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
265 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
247 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
166 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; // ...
7
votes
3answers
3k 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 ...
6
votes
4answers
649 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; ...