Free C++ Game Source Code - Download Now!

  • Context: C/C++ 
  • Thread starter Thread starter powergirl
  • Start date Start date
  • Tags Tags
    Code Games Source
Click For Summary

Discussion Overview

The discussion revolves around the availability and sharing of C++ game source code. Participants express interest in obtaining various game source codes, share resources, and discuss the characteristics of different programming languages used in game development.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants request C++ game source code and suggest that others share any they may have.
  • One participant mentions using Google to find open source games and provides a link to a resource.
  • Another participant notes that games consist of various components and suggests considering which part of a game is of interest.
  • A participant shares their experience with finding first-person RPG source code in QBASIC, noting its limitations.
  • It is mentioned that many Linux games are open source and available across various genres, with a link to a site that lists such games.
  • Discussion includes a reference to the Quake source code, highlighting its use of pure C and critiquing the use of C++ in comparison.
  • One participant argues that C++ offers better functionality and that the Quake source code contains many optimizations and techniques worth learning.
  • Concerns are raised about the complexity of older game rendering techniques compared to modern practices using hardware acceleration.

Areas of Agreement / Disagreement

Participants express differing opinions on the merits of C versus C++ for game development, with some favoring C++ while others defend the use of C. There is no consensus on the best approach or language for game development.

Contextual Notes

Participants reference various resources and examples, but there are no detailed discussions on specific game components or programming techniques. The conversation remains informal and exploratory without deep technical analysis.

Who May Find This Useful

Individuals interested in game development, programming languages, and open source projects may find this discussion relevant.

powergirl
Source code of Games!

Gaming!

I would like to have some Games..coded in C++...
If someone have those..please post it here for me...please...:shy:
 
Technology news on Phys.org
powergirl said:
Gaming!

I would like to have some Games..coded in C++...
If someone have those..please post it here for me...please...:shy:

Google is your friend.
 
powergirl said:
Gaming!

I would like to have some Games..coded in C++...
If someone have those..please post it here for me...please...:shy:

Google is your friend.

For example, some open source games:
http://osswin.sourceforge.net/games.html"
 
Last edited by a moderator:
There are plenty, but since games are made up of different components, you might want to consider what part of a game you want to see.
 
I once found some first person RPG source code written in QBASIC. Looked pretty good actually, although it was only an engine and was crashing often. :smile:
 
A majority of linux games are open source. You can find source for games in almost all the genres - FPS, RTS, MMORPG, and even the simple games that are text based which you play from the terminal. This is a great way to see C/C++ in action, you can start from the simple text based then work your way up to games such as Cube.

http://www.ubuntugames.org/
Its not in English, but has it points to some open source games.

Please note that a majority of these games also have win32 versions (along with the source).
 
Last edited by a moderator:
Do a search for Quake - back in the last century id software released the source code - whicn of course killed the community.

it's written in pure c, none of that c++ garbage.
 
it's written in pure c, none of that c++ garbage.
Excuse you. C++ garbage?
 
ptabor said:
Do a search for Quake - back in the last century id software released the source code - whicn of course killed the community.

it's written in pure c, none of that c++ garbage.

Lots of the functionality of C++ is recreated by hand in this code... better to just use C++ in the first place. :)

Be warned that a lot of the Quake source is highly optimised... there are lots of good tricks to be learned from there though. (The fast approximate inverse square root function is one of my all time favourites)

Also, Quake uses a very powerful software renderer, this means that if you look at the renderer code you will most likely get totally lost. Modern games use 3d hardware accelerated libraries which wrap things up like "draw a triangle" rather than expecting you to change the corresponding pixel values yourself. If you learn how to make a basic OpenGL/Direct3D window and have some reference (internet) at hand, then you already have all of the same rendering power with a faster implementation which is easier to use and requires less code. i.e. If you look at old games, don't copy the renderers, they are usually terrible by today's standards.
 
Last edited:

Similar threads

  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 133 ·
5
Replies
133
Views
12K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K