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.
- Link to Game Development Links

