Skip to main content
GameDev.net gamedev.net
🔒 Locked

Professional Source Code

Started by Protocol 0 Feb 13, 2005 at 3:14 AM 44 replies 9.6k views
Original Post
Protocol 0
Protocol 0
Has anybody got a link to some free profesional source code, so I can get a picture of what the professionals do over at electronic arts or codemasters etc. I'm dying to know how complex their code is, and if I can ever get that far. Oh ... Do some of those major game companies use the stuff that nehe teaches in that tutorial, or is there stuff way out of this planet?
"My Knowledge Has Served Me Right. Unless It Is Serving Me Wrong".
NLDEV
NLDEV
Well, there's some links to some professional source code for various games here at GameDev.
Protocol 0
Protocol 0
Thanks, I'l check it out.
"My Knowledge Has Served Me Right. Unless It Is Serving Me Wrong".
Monkeyget
Monkeyget
Here is a list of proffesional games who are now free (to play): http://liberatedgames.com/gamelisting.php . The source are not always included so you'll have to dig a bit to find all the sources.

Beware professional code != good code. Have a look at http://thedailywtf.com/ if you want to be convinced.
Zakwayda
Zakwayda
Try the Doom 3 sdk.
jbadams
jbadams
If you'd like, you could head over to id software's tech downloads, where you can get the Quake/QuakeII source among other things.
- Jason Astle-Adams
Promit
Promit
Unfortunately, seeing professional source code is usually not a major eye opening experience that shows you the beauty of perfect software engineering. It's generally pretty bad, and sometimes you wonder how such an incredibly awesome game can have code that is that bad.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.
Protocol 0
Protocol 0
Thanks for the replies. I downloaded a few of the games as the first guy said, and tryed compiling them with VC++ 6.0, and none of them worked.

...But they where still good to look at, withough compiling. I got a fair idea.
"My Knowledge Has Served Me Right. Unless It Is Serving Me Wrong".
Madster
Madster
I looked at QuakeII source when I was trying to figure how to organise my code.... and just went WTF

didn't get much of it. Figured I'd be better off cooking my own solutions.
Lots of files though.
Lots.

I'll know if thats really necessary when my project is done =)
Working on a fully self-funded project
dave
dave
I have taken a look at the Quake 2 source and i was also lik OMG!!!!

To be honest if i ever get into the industry as planned my code will probably end up being bodges simply because of deadlines etc.

ace
bmarci
bmarci
Looking at professional source can easily disappoint you. BTW: As much people are working on it as big "mess" it becomes :)
Scarfy
Scarfy
This is one of the great things about Open Source.

I cannot understand why hobby programmers insist on not giving out their source code with their games. When comparing what some guy in his bedroom has written compared to the offering of a professional company it does sound kind of absurd.
Parallel RealitiesProject: Starfighter
Protocol 0
Protocol 0
Woops, the above post is by me lol. I though I was logged in :/
"My Knowledge Has Served Me Right. Unless It Is Serving Me Wrong".
Leffe
Leffe
A good place to learn techniques used in professional games is the IOCCC. Take a look at some of the entries and try to decipher them and figure out what they do, then run it and see if your guess was right.

This essay/article/book is also very important if you ever plan on programming professionally. (You can also learn from it by *not* doing what it says)
darkchrono4
darkchrono4
I'm making a flight sim using the Freespace 2 source code. There are some very ugly things going on it there. Unless I want to rewrite major parts of the code I just have to go with it and do what they do.
Sijmen
Sijmen
Hmm, how about Quake 3? It seems like the source has already been released (look at this page), but the downloads don't work for me. Any mirrors or such?
Mercury
Mercury
The Quake series is terrible for explaining how to write good good, great games? Sure. Great code? Ehhhhhh.
If you're looking for some generally very well done code, I'd check out some stuff by Paul Nettle on his Fluid Studios webpage. Note that he's using some odd HTML trickery on that page, the stuff you want's on the Source Code page. That's what I see as "production quality" code.
Protocol 0
Protocol 0
Quote:
Original post by Sijmen
Hmm, how about Quake 3? It seems like the source has already been released (look at this page), but the downloads don't work for me. Any mirrors or such?

Ahh, mad. Im gunna check out that source. Hopefully I can actually compile it :/
"My Knowledge Has Served Me Right. Unless It Is Serving Me Wrong".
Krisc
Krisc
After working on a professional project I can honestly say that some of the stuff is out of this world and mind boggling. That does not go without saying that well commented code and seeing syntax that I am used to made the code easy to understand and modify.
Anon Mike
Anon Mike
Most commercial apps are driven by time-to-market and artificial deadlines like needing to release in time for Christmas. These sorts of pressures do not encourage high-quality code, especially in games where you have a relatively short shelf-life and little or no long-term maintenance requirement.
-Mike

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.