Sign in to follow this  
patisake

beginning C++ game programming

Recommended Posts

What do you people think of this book as a beginner?

Anyone know a good book to start learning C++?

This is the link to the book

http://www.powells.com/biblio/62-9781592002054-0

Share this post


Link to post
Share on other sites
[quote name='patisake' timestamp='1352297734' post='4998406']
what do you find the best if I want in the future go for 3d games pc and console?? C++ or java?
[/quote]

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.

Share this post


Link to post
Share on other sites
I haven't read it, but there is this book: http://www.greenteapress.com/thinkpython/ which seems nice.

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.

Share this post


Link to post
Share on other sites
I would just buy a book that covers C++ alone such as SAM's Teach Yourself C++ in 21 Days.

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.

Share this post


Link to post
Share on other sites
Amazingly detailed beginner video series http://www.youtube.com/playlist?list=PL1D10C030FDCE7CE0
It goes into advanced stuff too.

Also check out 3dbuzz.com
and
gameinstitute.com

Share this post


Link to post
Share on other sites
[quote name='patisake' timestamp='1352318243' post='4998550']
and what is the difference between ruby program language and python?
[/quote]

Not that much. Just pick something and start already!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Ive read beginning c++ game programming by Micheal Dawson. Its an awesome book for learning c++. You learn C++ and make cool text games. The way he explains the concepts are clear and concise. Its a good book, trust me. Read it and you wont regret it.
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

Share this post


Link to post
Share on other sites
[quote name='teccubus' timestamp='1352296720' post='4998396']
patisake: "beginning game programming" books are generally crap. Learn C++ from Stroustrup's book.
[/quote]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.

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.

Share this post


Link to post
Share on other sites
I have the e-book from michael dawson beginning c++ game programming but not the cd due to an ebook..anyone know where I can find the contence of the cd rom?

Share this post


Link to post
Share on other sites
[quote name='AllEightUp' timestamp='1352352683' post='4998753']
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.
[/quote]

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 :P

Share this post


Link to post
Share on other sites
IMHO, beginning with getting a firm grasp of the basics of C will help you in the long run when delving into C++. As for where to begin learning C++, I think that it's best to go for just a general knowledge of C++, then going to a specific area of programming style, such as game programming.

If you want a mixture of good knowledge of C++ as well as the basics for game programming, I'd recommend the book '[i]C++ Programming for the Absolute Beginner' [/i]by Mark Lee. It teaches you how C++ works just like a normal book would, but using game analogies and examples to teach you, so it's like hitting two birds with one stone.

However, it still stands that you [i]should [/i]learn some C before C++. I started off messing around with C, in which I developed my first text-based game (which I got rid of last year). After that, I read the aforementioned book, and used the net to learn C++, and I'm in the process of making another text-based (soon to be 2D grapical! :D) game.

But still, you should just do what suits you best. All we can offer are pointers and advice. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this