Retail Console Game Source code (C/C++)
Edit on Github | Updated: 9th April 2022It is very rare that a commercial game releases its source code to the public, it is even rarer for that to be a console game, but there have been a few exciting cases in recent history which we will explore in this post.
To be considered for this list the game must have at least a quarter of the source code used to make the game/prototype released.
This list does not contain fan decompilations of retail games, for those we have a separate page:
Nintendo Systems
Nintendo systems have by far the largest selection of official source code to choose from, some of it has been leaked and others have been released officially by the developers.
GameBoy (DMG & GBC)
Days of Thunder
Little Mermaid Pinball
Mr Do!
Pokemon Red/Blue/Yellow
Pokemon Silver/Gold
The source code to Pokemon Silver and Gold were released as part of the Nintendo Leaks in early 2020.
Game Boy Advance
The GBA was the first Nintendo portable to have most of its games written in the C language as compilers had finally become good enough to develop full retail games with.
Manic Miner
Nintendo Entertainment System
Games for Nintendo’s first console was almost exclusively written in 6502 assembly language as anything higher level would simply be too slow due to early compilers producing less efficient code than human programmers.
Captain Comic
Hero Quest
Home Alone 2
John Smith Special Agent (aka James Bond Jr.`)
Magician
Raid 2020
Super Nintendo Entertainment System
DOOM (DOOM FX)
B.O.B.
Nintendo 64
Most of these games have been leaked due to part 2 of the infamous Gigaleak.
Gigaleak 2 games
Games with Source Code Leaked:
- 1080 Snowboarding
- Animal Crossing (Animal Forest)
- Dr Mario 64
- F-Zero X
- Mario Kart 64
- NBA Courtside 1 & 2
- Star Fox 64
- Super Mario 64 (Decompiled + Partial official leak)
- Yoshi’s Story
- Wave Race 64
Mortal Kombat Trilogy
Turok 64
Nintendo Wii
Resident Evil: Umbrella Chronicles
Sega Systems
Finding source code for SEGA systems is many times harder than finding code from their rival Nintendo.
Sega Mega Drive
Cliff Hanger
Source Code Archive : The Chris Shrigley Page
Ex-Mutants
Source Code Archive : The Chris Shrigley Page
Gargoyles
Source Code Archive : The Chris Shrigley Page
Mr Nutz 2 - Hoppin Mad
Sega CD
Batman Returns
Sega Saturn
Retail Sega Saturn source code is almost as rare as Hen’s teeth, due to this fact we have included Three Dirty Dwarves but cannot yet confirm if it actually contains complete source code or not.
Three Dirty Dwarves
Sega Dreamcast
Chicken Run
Hydro Thunder
Sony Systems
Sony Playstation 1
360: Three Sixty
Battle Konchuuden
Beatmania APPEND 5th MIX
California Watersports
Chill
Jimmy Johnson’s VR Football ‘98
Pachi Slot Master
Spongebob Squarepants: SuperSponge
Monopoly
Mortal Kombat 3
Ultimate Mortal Kombat 3 (Unreleased)
Re-Volt
The Misadventures of Tron Bonne
The source code for the misadventures of Tron Bonne was released as part of the November 2020 Capcom leaks.
Tomb Raider II
Urban Chaos
WarCraft II: The Dark Saga
Wipeout
On the 27th March 2022 March42 and Forest of Illusion released the official source code to one of the most popular original Playstation games, Wipeout!
Sony Playstation 2
This section lists all the known leaked source code for retail Playstation 2 games. This does not include Homebrew or decompiled games as they have their own pages.
Tony Hawk’s Underground
Devil May Cry 2
The source code to Devil May Cry 2 was released as part of the Capcom Leaks in November 2020.
Kelly Slater’s Pro Surfer Source Code
The complete source code for Kelly Slater’s Pro Surfer, a 2002 extreme sports game developed by Treyarch has been released online. The repository offers a rare look into the development of a sixth-generation console title, containing C++ source files, engine logic (built on the Tony Hawk’s Pro Skater engine framework), and development assets for the PS2, Xbox, and GameCube platforms.
Microsoft Systems
This section has all the consoles Microsoft made which are considered retro enough to include here. We currently do not list anything after the original Xbox but this may change in the future when the 360 can safely be classified as a retro system.
Original Xbox
The original Xbox was a joy to program for, especially for PC developers who were familiar with the Direct X API. However very few xbox games have ever has their source code leaked.
Star Wars: Jedi Academy
Windows (PC)
Jurassic Park: Trespasser
Sea Dogs / Pirates of the Caribbean
Siege of Avalon
Rogue Legacy 1
Postal 1
You can get the official source code for the first Postal Here