PDA

View Full Version : What "parts" do game consist of?



Theater
01-06-2003, 01:57 AM
Hi!

I'm just curious about how a typical game is structured. What "parts" do OpenGl games consist of (Objectloader.....etc) ?

MickeyMouse
01-06-2003, 06:36 AM
In game engine you need to control things like:
-Models
-Textures
-Shaders
-Entities (e.g. monsters, lights, cameras)
-Level
-Sound
-Events
I'd suggest something like manager for everyone.

Furthermore you need stuff like:
-Scripting language
-UI (User Interface, that is windows, menus etc)
-Input/Output (console, binds etc)
-Net support

And some low level things like:
-Math
-Convenient structures to keep data
-Memory management
-Files

OpenGL has very few to do with game engine, since graphics is not the biggest part of game engine.
You can encapsulate whole OpenGL specific code in few classes derived from virtual ones (for example class that keeps track of state changes), so you're not OpenGL dependent.

Hope it helps.
I may have missed something, but I believe those I mentioned are most important in professional game engine.

[This message has been edited by MickeyMouse (edited 01-06-2003).]