Sign in to follow this  
jbosch

Managing game world objects

Recommended Posts

Hi there,

I'm plannig to write a new game (not very complicated one), but I'd like to do the things as good as possible, so I'd like to know if there are common patterns or techniques to store world data, how to manage all the objects of a level (enemies, obstacles, and so on)

Thanks

Share this post


Link to post
Share on other sites
A common solution would be to store the game objects in a container of some sort (e.g. vector in C++, or List in C#).

It's fairly common also to have a scene graph of some sort (for rendering purposes) and/or a spatial partitioning system (for spatial queries such as collision tests). However, if your game isn't too complicated, storing everything in one or more simple containers may suffice.

Share this post


Link to post
Share on other sites
Thanks!

Do you have any idea where can I find a tutorial about this, or what do I need to query in google to find something related to this?

I'm looking without much success :-(

Thanks!

Share this post


Link to post
Share on other sites
Quote:
Do you have any idea where can I find a tutorial about this, or what do I need to query in google to find something related to this?

I'm looking without much success :-(
Can you specify what it is exactly that you're looking for info on? Container types? How to use containers in a specific language? Scene graphs? Spatial partitioning?

There's plenty of info available, so if you can be a little more specific I'm sure we can point you in the right direction.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this