Learning C++ for Games Developers

Ronin Storm

Administrator
Staff member
Strikes me that one or two of you might find this interesting if you've an interest in writing games and/or learning C++.

Back in mid-2006, GameDev.net ran a workshop on their forums that ran over 20 weeks or so to help motivated people to learn C++ with a focus on how it might be applied (simply) to games development.

From their workshop introduction:

C++ Workshop Introduction said:
Overview:

This workshop is designed to aid people in their journey to learn beginning C++. This workshop is targeted at highly motivated individuals who are interested in learning C++ or who have attempted to learn C++ in the past, but found that without sufficient support and mentoring they were unable to connect all the pieces of this highly complex but powerful programming language. This is a 'guided' self-teaching C++ workshop. Each student is responsible for taking the time to read the material and learn the information. The community and tutors that arise out of this workshop are here for making the learning process run more smoothly, but are not obligated to baby-sit a person's progress. Because everyone will be working from the same textbook, students may find it easier to get answers to the specific questions they might have. There is no minimum age requirement, and there is no previous programming experience required.

The course appears to be relatively generic in terms of the C++ it teaches, focusing on using the free and legal Visual Studio 2005 Express Edition as the course recommended IDE and SAMS Teach Yourself C++ in 21 Days (5th Edition) as the course text.

Broadly, the book is divided up into 21 chapters, each chapter needing a few hours to get through and complete the exercises. Every 4/5 chapters, GameDev tutors post a (simple) game development project based on the stuff you should now know from the book. Their format was to do a chapter a week, though the first week was actually chapter 1 and 2.

I've started on this yesterday and I'm now complete on week 1's material, after about 4 or 5 hours of both reading the book, reading the forum threads and writing a little code. Admittedly, I'm an experienced C# programmer so a lot of the syntax and early concepts are familiar to me, though some are not and, in fact, work differently to C# at times!

Anyone else interested in working through this with me?

I'm going to carry on regardless but it might be interesting to compare notes and/or run our own study group on THN if there's a few of us... :)

[edit]Doh, almost forgot...[/edit]

The actual forum for the C++ workshop can be found here.
 

Ronin Storm

Administrator
Staff member
GameDev.net are already running a C# workshop, if you're interested in that instead. I think it may actually still be running, or only recently finished.
 

Iron_fist

Super Moderator
Staff member
what i've seen looks pretty good but i forsee that my system design project will be eating my time soon so i'll have to look at it some point at the end of term
 

Ronin Storm

Administrator
Staff member
Not sure if anyone else here is picking this up but when I spot something worth noting about the course I'll post it up here.

Just done their chapter 3 section (i.e. week 2) and their discussion thread walks off track for a good 10/15 posts using all sorts of terminlogy that hasn't been introduced in the course text by that point. The main course tutor (JWalsh) does intervene and clarify that is the case eventually but in case programming neophytes come to that part and die in fright, take heart! Chapter 3 is actually much more straight-forward than that part of the discussion makes out! :)

(I'll answer any questions I can, if you get there and have some.)
 

Ronin Storm

Administrator
Staff member
Because the GameDev.net forum is a bit pants, it doesn't contain the useful feature of sorting threads by first post date rather than last post date. This makes it a little tricky to figure out which is the next thread to read, where the questions are and where the official answers are.

Partly for my own reference and partly to help out any others who fancy looking into this, I'll post a structured list below to help find the chapters, questions, answers and any other important posts in any given week/chapter.

 

Traxata

Junior Administrator
Because the GameDev.net forum is a bit pants, it doesn't contain the useful feature of sorting threads by first post date rather than last post date. This makes it a little tricky to figure out which is the next thread to read, where the questions are and where the official answers are.

Partly for my own reference and partly to help out any others who fancy looking into this, I'll post a structured list below to help find the chapters, questions, answers and any other important posts in any given week/chapter.

Psst, you may want to fix that and not look bad :p
 

Ronin Storm

Administrator
Staff member
Still posting updates here; chapter and question links updated. As always, if you're following along and have questions then I may be able to help.
 

Ronin Storm

Administrator
Staff member
Another bump as I prepare to move on to "week 6". Figure it's just me for now. Maybe I should write a blog on this... ;)
 

Traxata

Junior Administrator
I don't have the time for C++ at the moment, but as you've made such a nice categorized list and all I may look at it in the future, I'm already diving head first into learning Java by helping my friend code his little project.. which I have no idea if I can talk about so I won't :p

but good work on the whole frontier :D
 

Ronin Storm

Administrator
Staff member
Another chapter done. Ready for chapter 8. Into the stuff I haven't seen before: pointers.

That said, C# makes all the stuff I've looked at so far much easier and more elegant. Makes me wonder if people who diss C# have ever spent any serious time programming with it. No prototypes and no header files FTW!
 

Iron_fist

Super Moderator
Staff member
it's looking like a big part of my project this year will be in C++ so I may well be joining you within the next few days
 

Ronin Storm

Administrator
Staff member
That'd be awesome, Iron. As said elsewhere, if you get any questions feel free to post them here and I'll try to answer them (or we can get TB or elD to pitch in :) ).
 

thatbloke

Junior Administrator
That'd be awesome, Iron. As said elsewhere, if you get any questions feel free to post them here and I'll try to answer them (or we can get TB or elD to pitch in :) ).

For a small "fee," of course...

good luck with the pointers stuff though. Its probably the hardest concept to understand but once you have fully understood them everything to do with C/C++ suddenly becomes crystal clear...
 

Traxata

Junior Administrator
"fee" This is either going to be bob tokens, rep, or nipple doughnuts ? ( modelled by nanor ofcourse! )
 
Top