Handmade Hero»Forums»Code
1 posts
Source code for other games
This is perhaps slightly off-topic, so apologies if it's over that particular line, but this round up of releases of game source code has been making the rounds lately: http://www.codersnotes.com/notes/the-man-behind-the-curtain

I knew about quite a few of these, in particular the id Software ones since they're famous for releasing their code, and I've read a bunch of the code reviews linked along with those (which are fantastic). Others, like Star Control 2 and some of the others I hadn't seen.

Since many of the games are old enough that they were programmed in a very low-level way like we're doing with Handmade, I figured some of them might be interesting/educational. :)
Patrick Lahey
67 posts
Source code for other games
The Shadowgrounds games are fun. The source code was release a few years back:

shadowgrounds

Be warned, the code is a bit of a mess...
Mārtiņš Možeiko
2357 posts / 2 projects
Source code for other games
Some of games in Humble Bundle are open-sourced as well:
Aquaria - http://blog.wolfire.com/2010/06/Aquaria-goes-open-source
Gish - http://blog.wolfire.com/2010/05/Gish-goes-open-source
Lugaru - http://blog.wolfire.com/2010/05/Lugaru-goes-open-source
Penumbra Overture - http://blog.wolfire.com/2010/05/Penumbra-goes-open-source
Revenge of Titans - http://www.puppygames.net/blog/?p=914
Thomas Frase
12 posts
Source code for other games
Edited by Thomas Frase on
I totally forgot that the source to Doom 3 got released. Interesting stuff. Looked at the audio source for Doom 3, [strike]XAudio 2[/strike][strike] (and that game was released in 2004). Why are we using that messy DirectSound stuff again? :whistle:[/strike]
David Owens II
69 posts
A software engineer that enjoys living in enemy territory.
Source code for other games
Edited by David Owens II on
"The first version of XAudio2, XAudio2 2.0, shipped in the March 2008 release of the DirectX SDK."

Source: https://msdn.microsoft.com/en-us/...ws/desktop/ee415802(v=vs.85).aspx

Doom 3 source: https://github.com/id-Software/DO.../master/neo/sys/win32/win_snd.cpp

Looks like DirectSound to me.

You're looking at the version of Doom 3 that shipped much later, the "BFG Edition".
Thomas Frase
12 posts
Source code for other games
Whoops, my bad. The Doom 3 source is still quite interesting to look through.
Mārtiņš Možeiko
2357 posts / 2 projects
Source code for other games
Doom 3 BFG (released in 2012) uses XAudio2: https://github.com/id-Software/DOOM-3-BFG/tree/master/neo/sound