1. Computing

Next C SDL Empire Tutorial Published

By March 11, 2013

Follow me on:

Screenshot of latest empire

I've taken the map generator, published in an earlier tutorial and combined it with the main program in this SDL Empire tutorial. You can see it in action, it no longer loads the map from a predefined text file but one click of the New Map button and instantly there is a new map. I've temporarily removed the shroud so you can see the new maps in all their glory.

There was a fair bit of refactoring; the map generator had its own SDL code which has been ditched. It's now just a library that's called from the main program but adding it meant a bit of radical surgery, moving comon type declarations into a common.h header file and other changes.

Now I can progress towards the actual game play, adding armies etc.

Comments
Comments are closed for this post.
Leave a Comment

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

©2014 About.com. All rights reserved.