2d game by C++ compiler

Pages: 12
I'm ubber newb don't know "ANYTHING YET" I don't even know where to download the latest C++ compiler nor where to start, I dreamed of making a "2d Game" with my friend (he knows how to use C++ and he has the latest C++ compiler but like me he don't know how to make 2d game using the C++ compiler and his home is far away from me so I need to get my self my own C++ compiler, if you know where to get one! Please give me the link, advance thanks :D). It would be great if you teach me where to start like how do I make a window with the 2d game that I'm trying to make. I AM REALLY SORRY! I'M 100% MEGA UBBER NEWB!
Why not making it 3D :D
@Donanza

Based on my OTHER friend in collage it is mega hard to make 3d, so we will start up making 2d.
Any help guys?? You can show me some code on how to make a window that will pop up with my 2d game and please tell me where to download the C++ latest compiler.
Last edited on
There are many C++ compilers, the two most important being Visual C++ (most used compiler on Windows) and g++ (the main compiler on most other platforms).
For the former, you can download Visual Studio Express, for the latter you can download Code::Blocks or wxDev-C++ (assuming you're using Windows).

After that, you'll need to install SFML, which is a library intended for the creation of 2D games.
http://www.sfml-dev.org/
It is not mega hard, really. He doesn't really know how to make 3d games this is why he said mega hard. I think it is even harder in 2D as there are no free, powerful compilers.
Anyway here is a simple 2D compiler.
http://www.codecutter.net/tools/quincy/
If u google for that man u find millions of 2D compilers.
Also, i just found a SUPER BOOK for games!
http://www.gamedev.net/books
There is no one single C++ compiler. C++ is a language defined on a piece of paper, and then various groups make and release compilers that implement that language.

Pick one from here that meets your needs.

http://en.wikipedia.org/wiki/List_of_compilers#C.2B.2B_compilers

Whatever happens, please do not choose to use Dev-C++
Last edited on
DAMN! Which one that you posted is right??????? I'm confused! Does your all of your point tells that "I can't make a 2d game using a single C++ compiler?"?
closed account (10oTURfi)
1 compiler is all you need :D
I dont see a reason why use more than one.

What are they linking is different libraries for developing 2D games...
@Krofna
Thanks for explaining :)! got more question :D There's a lot of C++ compiler to choose from, by the link of "Moschops", what if I choose a "No" online? will I able to make the game online after I've finished it or no?
Anyway here is a simple 2D compiler.
http://www.codecutter.net/tools/quincy/

There is no such thing as a "2D or 3D compiler". That is not a compiler either, it's some IDE. It uses MinGW/gcc.

And your college friend was right, making 3D games is much, much harder than 2D games.

what if I choose a "No" online? will I able to make the game online after I've finished it or no?

That doesn't have anything to do with the programs you create. You can create an online game with any compiler. An "online compiler" such as Ideone just allows you to paste code on a website and it will compile it for you. For example:
http://ideone.com/94RIs
Last edited on
@Athar
This might sound dumb or very very stupid indeed but if I use that compiler, can I publish the game that I have made with my own COPY RIGHT, RULES, etc using that?
Not sure which one you mean, but yes, you can freely distribute your programs under a license of your choice as long as they were created with a legally purchased copy of a compiler (since Visual C++ and GCC are free, that's not an issue anyway).
THANK YOU SO MUCH! but can I make my game using your compiler online after I've finished it?

Which one is it?
"Download Quincy 2005"
or
"Download the Visual C++ project"
or
BOTH?
but can I make my game using your compiler online after I've finished it?

No, ideone is just meant to test and post code snippets for forums or IRC channels.

I recommend either Visual Studio or Code::Blocks.
No offense, but maybe you shouldn't be worried about publishing and copyrighting issues until you've at least started to learn how to code???

Start with Visual C++ Express: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

Watch some tutorials: http://www.google.com/search?q=visual+c%2B%2B+express+tutorial+2010&ie=utf-8&oe=utf-8&aq=t&rls=com.frontmotion:en-US:unofficial&client=firefox-a

Get your feet wet by coding some small apps, write some simple games, then bigger games... and Have Fun!

BTW, don't forget to look at the tutorials on this site.
@Athar
"No, ideone is just meant to test and post code snippets for forums or IRC channels."

What do you mean by this? I can't make my 2d game online? by using ""Download the Visual C++ project""

"I recommend either Visual Studio or Code::Blocks."

you mean this? "Download the Visual C++ project", I'm already downloading it, thanks.
@cnoeval
Thanks! I will use it, downloading it right now (It looks cool!).
Last edited on
Yeah im with cnoeval on here.. you clearly know nothing about programming - so don't worry about making games until you at least have passed every tutorial on this site, then when you are done with that do the practice programs on this site as well.. http://www.cplusplus.com/forum/articles/12974/

Unless you are a genius that will keep you busy for a few weeks / months.
@cnoeval
Thanks! I will use it, downloading it right now (It looks cool!).


It is an amazing IDE (Integrated Development Environment - meaning an editor/de-bugger/compiler) for the price ($0) and it prepares you to use MS Visual Studio which is very popular.

I suggest you go through its tutorials but if you want to jump right in and try to code Hello World (or something simple like that) don't get confused by all the templates it provides. Just open a new EMPTY PROJECT, then right-click the Source Files folder, Add > New Item. Then select the Code category and pick C++ File(.cpp) template. Name it what you want and there's your editor window for typing in or copy/pasting code. When you want to run it: Debug > Start Debugging (F5) will compile and run it.

Start simple and learn the Visual C++ IDE as you learn C++. If you try to use the advanced templates and features too soon you will get confused and frustrated as even the Express Edition is very powerful. Good Luck.
Pages: 12