Sunday, July 12, 2009

Where should i learn c++?

i want to learn c++ and a few of my friends do too


we want to focus on game programming


where do we start?

Where should i learn c++?
You can start reading Thinking in C++ (the eBook version is free in the author's official site): http://www.mindview.net/Books/DownloadSi...





Also I recommend "For Beginners": http://www.gamedev.net/reference/start_h...





Use the biggest and best online game developer community: http://www.gamedev.net/community/forums/
Reply:http://www.cplusplus.com/doc/tutorial/





This site worked for me. (^_^) Have fun.





Also Bioware Neverwinter Nights lets you program your own campaigns using a C++. It'll help you understand the how to use the language in video game context.
Reply:Well, first you need a C++ compiler. Personally, I recommend Micrsoft's. It's pricey, like everything else from MS, but unlike most of the rest, it's actually good. Most other C++ compilers don't do a very good job of showing you where problems in your code are.





If you have the option, I'd recommend taking a beginner's C++ course from a local college, particularly if you don't already know another programming language. Not only will you have an instructor to answer questions for you when the early programs don't work, but you'll likely be able to get a huge discount from the campus bookstore on that C++ compiler, enough to make the cost of the class not so bad. If classes aren't an option, I recommend books written by Deitel %26amp;Deitel. They are fairly frequently used for beginner and intermediate programming courses, and they do a good job of explaining why you should do things the way they present them.





Unfortunately, as I learned after getting my Bachelor's in Computer Science, what you learn in these courses in most universities doesn't really have anything to do with real-time input, which is necessary for any game, even if the game mechanics are turn-based. Still, you will absolutely need the stuff in these in order to understand the more complicated programming techniques use in game programming.





When it comes to learning to code games, there's really only one logical way to go: DirectX. Firstly, you integrate it into the complier you already have, so you aren't forced to work with new tools. Secondly, it is the platform for PC game design and very similar to XBox 360 code, so whatever you make could potentially be handed out to friends or sold to get the word out about you. Finally, the SDK (Standard Developer's Kit) for DirectX is available for free from Microsoft's website.





For books to learn how to actually use DirectX, I found a great one a few years back that was put out by Prima (and later re-released by Premier Press) called something like "The Zen of DirectX Game Programming." The author knows his stuff and does a pretty good job of explaining the code in the book, most of which is written so any game could use it.





DirectX is a beast, requiring over 100 lines of code just to give you a blank screen, so be prepared.


No comments:

Post a Comment