Games in C with Source Code
A list of links to games in C with source code
Classic Empire - A turn Based Wargame
Classic Empire is a real time, multi-player, Internet-based game, featuring military, diplomatic, and economic goals. Empire is a game that is played against human opponents over a computer network, usually the Internet. It is possible for a game to last from a few hours to many months.
Classic Empire is a real time, multi-player, Internet-based game, featuring military, diplomatic, and economic goals. Empire is a game that is played against human opponents over a computer network, usually the Internet. It is possible for a game to last from a few hours to many months.
Corewars Original Mars Simulator
Core War/Core Wars is a programming game in which two or more programs called warriors" compete for the control of the Memory Array Redcode Simulator (MARS), a virtual computer. These programs are written in an abstract assembly language called Redcode. The object:stop all opposing program's processes. MARS is written in K&R C.
Core War/Core Wars is a programming game in which two or more programs called warriors" compete for the control of the Memory Array Redcode Simulator (MARS), a virtual computer. These programs are written in an abstract assembly language called Redcode. The object:stop all opposing program's processes. MARS is written in K&R C.
Freeciv - Free, Open Source Civilization
Freeciv is a Free and Open Source empire-building strategy game inspired by the history of human civilization and the Sid Meiers (published by Microprose now FirAxis) game Civilization. The game commences in prehistory and your mission is to lead your tribe from the stone age to the space age...
Freeciv is a Free and Open Source empire-building strategy game inspired by the history of human civilization and the Sid Meiers (published by Microprose now FirAxis) game Civilization. The game commences in prehistory and your mission is to lead your tribe from the stone age to the space age...
FreeSpace Source Code Project
A commercial failure, FreeSpace 2, a space combat simulation had its source code released in 2002 and the FreeSpace Source Code Project was born. Several conversions have been released and development still continues through volunteers. Note a full copy of the game (details available at the link) is needed but can be bought for $6.00.
A commercial failure, FreeSpace 2, a space combat simulation had its source code released in 2002 and the FreeSpace Source Code Project was born. Several conversions have been released and development still continues through volunteers. Note a full copy of the game (details available at the link) is needed but can be bought for $6.00.
Heretic and Hexen Source code
In the mid 90s both games were best sellers and now the source code has been released under GPL. This does not include the DMX Sound library or the graphics for the game.
In the mid 90s both games were best sellers and now the source code has been released under GPL. This does not include the DMX Sound library or the graphics for the game.
MAME- Multiple Arcade Machine Emulator
When used in conjunction with an arcade game's data files (ROMs, CHDs, samples, etc.), MAME attempts to reproduce that game as faithfully as possible on a more modern general-purpose system. MAME can currently emulate many thousands of classic arcade video games from the the very earliest CPU-based systems to much more modern 3D platforms.
When used in conjunction with an arcade game's data files (ROMs, CHDs, samples, etc.), MAME attempts to reproduce that game as faithfully as possible on a more modern general-purpose system. MAME can currently emulate many thousands of classic arcade video games from the the very earliest CPU-based systems to much more modern 3D platforms.
Multiple Emulator Super System - Home Computer Emulation
MESS is an acronym that stands for Multiple Emulator Super System. MESS will more or less faithfully reproduce computer and console systems on a PC. MESS can currently emulate over 250 systems from the last 5 decades. MESS is a sister project to MAME and shares some of the codebase.
MESS is an acronym that stands for Multiple Emulator Super System. MESS will more or less faithfully reproduce computer and console systems on a PC. MESS can currently emulate over 250 systems from the last 5 decades. MESS is a sister project to MAME and shares some of the codebase.
Nethack - Slashing and Hacking in Dungeons for 21 years
Nethack is a single-player computer game originally released in 1987. It is a descendant of an earlier game called Hack (1985), which is a descendant of Rogue (1980). The "hack" part of the name refers to a genre of role-playing games known as hack and slash for their focus on combat. The player's character is in search of the Amulet of Yendor.
Nethack is a single-player computer game originally released in 1987. It is a descendant of an earlier game called Hack (1985), which is a descendant of Rogue (1980). The "hack" part of the name refers to a genre of role-playing games known as hack and slash for their focus on combat. The player's character is in search of the Amulet of Yendor.
Open Source Physics Engine
ODE is an open source, high performance library for simulating rigid body dynamics. It is fully featured, stable, mature and platform independent with an easy to use C/C++ API.
ODE is an open source, high performance library for simulating rigid body dynamics. It is fully featured, stable, mature and platform independent with an easy to use C/C++ API.
Role Play Dungeon Level Map and Contents Generator
Full C and C++ Source Code for a Windows application for generating Role Playing game maps for dungeons.
Full C and C++ Source Code for a Windows application for generating Role Playing game maps for dungeons.
Simon Tatham's Filigrams
Filigrams are a type of pretty pictures generated by mathematical means and devised by Simon Tatham. They're not technically a type of fractal, although they contain elements which people who know fractals might find hauntingly familiar.
Filigrams are a type of pretty pictures generated by mathematical means and devised by Simon Tatham. They're not technically a type of fractal, although they contain elements which people who know fractals might find hauntingly familiar.
Space Tyrant - A Multi-Threaded Space Game Server
Space Tyrant is a multi-threaded Game Socket (telnet) Server in C. With ports, planets, starbases, trading posts, spaceports and other players. It's just one large C file, nearly 10,000 lines long.
Space Tyrant is a multi-threaded Game Socket (telnet) Server in C. With ports, planets, starbases, trading posts, spaceports and other players. It's just one large C file, nearly 10,000 lines long.
Toledo Chess - Tiny but Powerful Chess Programs
These very small yet powerful chess programs have been written by Óscar Toledo Gutiérrez and are very heavily obfuscated. He has won 4 times at http://www.ioccc.org/ with them.
These very small yet powerful chess programs have been written by Óscar Toledo Gutiérrez and are very heavily obfuscated. He has won 4 times at http://www.ioccc.org/ with them.
