beginning C++ game programming
#3 Crossbones+ - Reputation: 1159
Posted 07 November 2012 - 08:14 AM
#6 Members - Reputation: 273
Posted 07 November 2012 - 09:39 AM
what do you find the best if I want in the future go for 3d games pc and console?? C++ or java?
It doesn't matter so much. You will probably need years of experience before you can make the games you want to make. And in that time you can and should learn a few different languages. I'd say start with Python, because it is way easier to get started with. If you like programming at all you can learn a new language later, when you know more.
#8 Members - Reputation: 273
Posted 07 November 2012 - 12:08 PM
The advantages of Python is that it is easy to learn, and that there is an interactive interpreter for it. That means that you can type in experssions and statements into the interpreter and have it execute them immediately and show you the result, so you can try things out and get feedback instantly. It is also a bit more high-level than C and Java, etc. so you can get more done in less time and with less code.
#11 Members - Reputation: 497
Posted 07 November 2012 - 02:33 PM
How long should you spend learning your first language before moving on to games development? About six months to a year. Seriously, the more you know your language going into games development the easier it will be.
#12 Members - Reputation: 751
Posted 07 November 2012 - 03:36 PM
It goes into advanced stuff too.
Also check out 3dbuzz.com
and
gameinstitute.com
If this post was helpful and/or constructive please give rep.
SFML2.0 Nightly Download Link http://en.sfml-dev.org/forums/index.php?topic=9513.0
SFML2.0 Tutorials http://www.sfml-dev.org/tutorials/2.0/
#14 Crossbones+ - Reputation: 1923
Posted 07 November 2012 - 11:31 PM
An example of the C versus C++ issue. In C you are required to declare all variables in the current scope, defined or not prior to any code. (Any variable with a definition is considered "code", so has to come after pure declarations: i.e. "int a=0;" is a definition where "int a;" is just a declaration) in C+++ you can define new variables at any point. There are arguments for both cases but I personally prefer to keep declaration, definition and use as close as possible in the text files, so I prefer the C++ standard.
As to all the learn XYZ because they are better, more used etc. In certain contexts all such comments are probably true. If I want to program web pages, I'll use Java script, if I want to generate web pages from templates with DB integration, I'd probably use Lua on Rails, Python and Drupal are pretty popular, etc etc etc etc etc..... But for generic everyday no specific target, I will use C/C++ every time.
#15 Members - Reputation: 619
Posted 08 November 2012 - 12:56 AM
Infact its so good, when i read it I finally understood copy constructors. My humongous c++ textbook couldnt explain it, but this book made it
simple to understand. read it and couple it with a good set of c++ youtube tutorials ( I personally recommend thenewboston tutorials for c+=) and you will be all set to make simple games using sdl/sfml later on
Edited by ISDCaptain01, 08 November 2012 - 01:57 AM.
#16 Crossbones+ - Reputation: 1056
Posted 08 November 2012 - 07:14 AM
Yep, and specifically Stroustrup's Programming: Principles and Practice which is aimed at beginners. If you just say "Stroustrup's book", a lot of people will be thinking about The C++ Programming Language which is not for beginners.patisake: "beginning game programming" books are generally crap. Learn C++ from Stroustrup's book.
Beginners' book here: http://www.stroustrup.com/Programming/
Another good book - but probably too dense for a total newbie - is Accelerated C++.
That said: even with the best material, C++ is not a great place to start.
#20 Members - Reputation: 126
Posted 12 November 2012 - 06:48 AM
If I had a do over, I'd start with a simple C book in order to learn the basics of the language "before" adding the ++ bit to it. Unfortunately such books are becoming less available as everything is C++ now. Learning C++ requires taking bite sized bits at a time, learning the underlying C language is a great start and even though it has some unnecessary work involved, which C++ removes, the logic is often best learned in a more restrictive language. Unfortunately the due to such early language restrictions you have to "unlearn" a couple items when you transition to C++ properly..
An example of the C versus C++ issue. In C you are required to declare all variables in the current scope, defined or not prior to any code. (Any variable with a definition is considered "code", so has to come after pure declarations: i.e. "int a=0;" is a definition where "int a;" is just a declaration) in C+++ you can define new variables at any point. There are arguments for both cases but I personally prefer to keep declaration, definition and use as close as possible in the text files, so I prefer the C++ standard.
As to all the learn XYZ because they are better, more used etc. In certain contexts all such comments are probably true. If I want to program web pages, I'll use Java script, if I want to generate web pages from templates with DB integration, I'd probably use Lua on Rails, Python and Drupal are pretty popular, etc etc etc etc etc..... But for generic everyday no specific target, I will use C/C++ every time.
I kinda started with C for dummies imo its a great book that teaches you the basics of C, since i had no prior knowledge in any language it did its job and now i went for SDL .
Im having some problems with SDL dont really know is it the problem that im just too stupid for SDL or just cant get the right tutorial for me...
If anyone knows some easy to understand tutorial for SDL please post... Tnx






