Jump to content
  • Advertisement
Sign in to follow this  

Good base game engine classes?

This topic is 5407 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Every time I read a tutorial or skim through a book on making games or game engines, they all seem to use a different method of structuring the classes together. I was wondering, to anyone here who has experimented enough with trying to put decent base game engine classes together... what book or books out there demonstrate what you've found to be the most modify-friendly way of structuring them, so that making games derived from those classes can take place with a good balance between amount of work and being intuitive and easy to follow? I'm talking about how easy the code is to decipher to a new programmer, or even modifying it when you come back to it after a long break without having to relearn it all, clean and effective use of global objects (if that exists), keeping it from becoming spaghetti from all the class-class references, etc. Thanks for any suggestions.

Share this post

Link to post
Share on other sites
OpenGL Game Programming had a simple, yet nicely designed architecture.

3D Game Engine Programming is pretty good as well, although there are some compile and code issues.

Eberly alos has, albeit more complicated, solid architecture design imho.

(I am assuming, of course, this is limited to 3D games...).

Hope that helps -


Share this post

Link to post
Share on other sites
"(I am assuming, of course, this is limited to 3D games...)."

Assuming that 2D games now just use quads to render textures, sure. I'm also looking for good base sound, network, input and resource classes. You know, all the pieces that go into a game engine. Does 3D Game Engine Programming cover those subjects as well?

Share this post

Link to post
Share on other sites
Of what I have read of it, its not too bad. However, not every detail is covered in the book. Many times you are encouraged to review the source code on the CD and assumed to be able to understand it. Again, there are compile problems and the reviews seem to be polarized. Here's the contents:

Part I - Introduction to the Topics
Chapter 1: 3D Engines and Game Programming
Chapter 2: Designing the Engine
Chapter 3: Engineering the Engine
Chapter 4: Fast 3D Calculus

Part II - Rendering Graphics
Chapter 5: Materials, Textures, and Transparency
Chapter 6: The Render Device of the Engine
Chapter 7: 3D Pipelines and Shaders
Chapter 8: Loading and Animating 3D Models

Part III - Support Modules for the Engine
Chapter 9: The Input Interface of the Engine
Chapter 10: The Audio Interface of the Engine
Chapter 11: The Network Interface of the Engine
Chapter 12: Timing and Movement in the Engine
Chapter 13: Scene Management

Part IV - Black Art of Game Programming
Chapter 14: Computer-Aided Design (CAD) Tools
Chapter 15: Deathmatch Shooter

The OpenGL book was *very* good and I have read all the way through it (it was written by some fairly 'known' members here) but is obviously OpenGL specific and does not cover abstractions to the raster API. Its also older so it doesn't cover shader topics at all. If you need to save a few dollars you may find it used on Amazon - that way you could justify buying both.

Hope that helps..


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!