1. About.com
  2. Computing & Technology
  3. C / C++ / C#

Discuss in my forum

David Bolton

C++ Star Empires Tutorial One Published

By , About.com Guide   October 15, 2011

Follow me on:

As the C game programming tutorials proceed, I'm following them with the C++, C# and then eventually Objective-C. The tutorials are different though even though they are about the same games. Interestingly the C++ version of Star Empires is approximately the same number of lines of code as the C version even though it includes a number of classes.

Part of the fun is taking a C application then objectifying it, and even for a fairly straightforward game like Star Empires whichg only has six classes (two of those being structs). I wouldn't say it's a perfect design as the galaxy class is slightly large with 15 public and 9 private methods making it pretty big. Suggestions for improving it are always welcomed.

Note that I've rushed this a bit and there are one or two bugs so as I find and remove them, I'll update the source code.

Comments
No comments yet.  Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Related Searches star empires bado

©2012 About.com. All rights reserved. 

A part of The New York Times Company.