PDA

View Full Version : C++ Platform Game Tutorial Needed


yourter12
12-28-2010, 01:42 PM
Can someone help me? I wanted to try making a game using C++. Can anyone help please? Thanks!

Megadog
12-28-2010, 01:56 PM
Do you know how to code in C++?

I too want to do this, but I'm reading the huge C++ book written by it's creator. It is hard, but it makes sense...sorta...

SpaceManiac
12-28-2010, 02:01 PM
First things first, I recommend a general intro to C++. Get a C++ compiler (I recommend Code::Blocks (http://www.codeblocks.org/) - be sure to get the version with Mingw) and check out this tutorial (http://www.cplusplus.com/doc/tutorial/). Go through everything from the beginning, try the examples yourself as you go along, make sure you understand it all.

If you're having troubles or you've got it down, post here. :)

yourter12
12-28-2010, 02:35 PM
Uhh... Anything easier than C++ that's non-GM?

SpaceManiac
12-28-2010, 03:32 PM
I can't think of anything off the top of my head. What're you stuck on?

Blackduck
12-28-2010, 07:23 PM
C++ is a complicated one to start with. I suggest Java since it works on both Windows/Mac & browsers. It also handles stuff for you like memory and garbage collecting (deletes variables that aren't used anymore) for you, amongst other things. I suggest Eclipse as a compiler.

That or you can try Basic, Assembly, Machine Code, Fortran and all those other fun ones.

yourter12
12-29-2010, 12:25 PM
I'll try that.

Julian
12-29-2010, 04:47 PM
Oh no, not java. Sure, it's simple to use, but it teaches you nothing about proper coding (like garbage collection). C/C++ is hard to learn, but just as easy to use once you know it (and you find the proper libraries to use) and it teaches you more about how to code properly.

ASM is the best way to go though, it gets you right in the dirt :p

SpaceManiac
12-29-2010, 06:11 PM
If you're looking at how hard it is to get into at the basic level, there's really no difference between C++ and Java. When you get on to larger scale things, Java gives you some advantages (like fancier garbage collection) but C++ has its own (like more ability to operate with other people's code).

Mr.Onion
12-30-2010, 02:42 AM
Oh no, not java. Sure, it's simple to use, but it teaches you nothing about proper coding (like garbage collection). C/C++ is hard to learn, but just as easy to use once you know it (and you find the proper libraries to use) and it teaches you more about how to code properly.

ASM is the best way to go though, it gets you right in the dirt :p
Cleaning up your own memory is hardly an intrinsic part of coding properly. :p

If you want to learn programming in general, see python (http://python.org), and if you want to make a game, use either Python, Java or C#. All three of those languages have enough frameworks to let you get stuff done without having to bother about the paperwork, such as garbage collection, pointers, or writing your own containers.