Sign in to follow this  
3DModelerMan

3D adventure game structure

Recommended Posts

3DModelerMan    1173
Hi, I'm working on a 3D adventure game, I have some code already written, but I'm planning on refactoring it in a little while. How should I have everything structured? Right now I have it like this:

A main game manager class contains all subsystems:
Scene graph, physics manager, input receiver, actor/entity system, event manager,
and sound system.
The physics manager encapsulates creation of rigid bodies, soft bodies, and collision shapes.
The scene graph and sound systems encapsulate sounds and scene nodes, and whatever other classes I make for them.
The input receiver sends the game event for the key event (key up is sent as player move forward). It uses the event manager to do this, which is just a simple event system.
And finally the actor manager, contains game actors/entities and updates them each frame. The actors/entities themselves encapsulate their own scene nodes, and sometimes character controller physics objects.

Does anyone have any suggestions for a better architecture? I would really appreciate any input.

[Edited by - 3DModelerMan on October 18, 2010 8:04:47 AM]

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