Where can I find good (well organized) examples of game code?

Posted by smasher on Game Development See other posts from Game Development or by smasher
Published on 2010-07-25T04:30:47Z Indexed on 2011/11/17 2:06 UTC
Read the original article Hit count: 230

Filed under:
|

Where can I find good (well organized) examples of game code? I'm hoping that I can pick up some organizational tips. Most examples in books are too short and leave out lots of detail for the sake of brevity. I'm particularly interested on how to group your variables and methods so that another programmer would know where to look in the code. For example initializers at the top, then methods that take input, then methods that update views.

I don't care about a particular language, as long as its OOP. I looked at the Quake 2 and 3 sources, but they're straight C and not much help for getting tips on organizing your objects.

So, have you seen some good source? Any pointers to code that makes you say "wow, that's well organized" would be great.

© Game Development or respective owner

Related posts about architecture

Related posts about open-source