What are good books for learning c++ game development. Im looking for something that starts from the complete beginning with something like hello world and works on from there. Probably something that at the end of the chapter gives you a project to test what you just learned in the chapter. It can be a book series or anything. Im not able to take a C++ class for a few months and just eager to learn it.
Ive found a book but some of ghe reviews are good and bad so im not sure exactly what to expect.
I've seen that book (Beginning C++ Through Game Programming) recommended, as well as SFML Game Development and SDL Game Development. Unfortunately, every book will have good and bad reviews because every person learns differently. Some find one book a godsend while others find them lacking. It depends on how you learn and what method you like because some books do overkill the technical details and others skim them over.
I've kept this bookmarked for quite sometime for situations like this http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
_C++ primer_ comes with my recommendation (NOT C++ primerplus, that's a different book and apparently it has some problems)
_Programming: Principles and Practice Using C++_ is also a great starting book, the first edition isn't grossly out of date and the second edition is coming sometime around June (I think)
@Lachlan Easton
He is wanting to learn C++ Game Development all those books focus mostly on C++.
@football52
You may want to look at http://www.gamedev.net for advice in the area of books, tutorials, videos, etc. that cover game development as well.
@football52
I would say that is a good starting point if, like you say, you want something that starts from the complete beginning and are interested in learning games since everything in it is oriented around making games. For general C++ learning it is lacking in many things that are covered in other beginner books. It wont cover reading and writing to file, structs (classes, yes), or several other things for example, but it will get you started and ready to move on to those things while getting you thinking in terms of game mechanics.
Yes game programming books. And well im specifically looking fkr bokks that give you like a challenge or test program at the end of each chapter so you can test yourself from the stuff in the chapter before
Yeah, usually all books have some exercises at the end of chapters. The down side is that a lot of books, like C++ Primer, have the exercises and no answers so you don't know if you answered right to see if you are understanding the material properly.
I agree not having solutions tends to make the exercises pointless in most cases and the only book I know of that does (Programming Principles and Practices) makes it harder to understand because the solutions given go beyond anything covered previously in the book. The up side is that someone can show what they did and ask opinions at places like this to see how they did.
Out of all them I would say maybe start off with SFML Game Development to get familiar with some basic concepts in 2D (Most of it will transfer easily to 3D) then maybe move onto Game Coding Complete and Game Engine Architecture (Amazing book).
After that you should have more then enough knowledge to decide what you want to specialize in (Or just be a Generalist) and continue your learning from there. Also if you are looking for some cool tips and tricks from professionals on different subjects of game programming check out the Game Programming Gems series.
Like BHX said you definitely should start with a beginners C++ book or the tutorials here (Though that might not be enough) before even considering the SFML book. That book requires you to have a decent understanding of C++ for the most part and some parts can get into pretty advanced aspects.
Just starting out, I'd advise against tutorials or books that use separate libraries like SFML and just learn the basics first, especially classes, polymorphism, inheritance, and pointers. You can easily mimic code using those things, but that doesn't mean you'll understand any of it. It won't necessarily make it easier to understand later when you need to either.
Amazon link
http://www.amazon.co.uk/C-Primer-Stanley-B-Lippman/dp/0321714113
This is the one I use. This book does not tell you how to compile code. It presumes that you have compiled and run code before. We can teach you that, pretty simple.
This book also challenges you, so it might ask you to do something that you havn`t done. But thats what Google is for.
Yes it does, it`s rewritten for C++11 and make sure you don`t but C++ Primer Plus 6th edition, that book was written over a period of more than 10 years(added more as c++ matured) and is written by someone else.
Primer 5th edition uses K&R style and has around 900 pages(pdf has I think 1400) . The PDF version is the same but has less written on a page(zoomed in).