It's morphin' time!

posted in old blog
Published February 25, 2005
Advertisement
Up until now, my program has been compile-time scaleable. That is to say, I've written a header file of #defines, and written my code with those defines in mind, so that I could change some, and have the code compile perfectly with the new settings.

These settings included changes to resolution, spacers between the window components, number of tiles on the x and y axis in my tileset.bmp file, etc.

This algorithm will be no more. Today, I will convert absolutely everything into an object, and truncate variables where the defines once stood. Arrays will also be redefined as vectors.

This means that the map's size, the window's size, and everything else that was once compile-time scaleable will now be run-time scaleable, and you will be able to do things like drag windows around, resize the map, add tilesets, etc.

Thus, I close the file for another day's work.
0 likes 4 comments

Comments

Rob Loach
Ahhh, the good ol' OO approach.
February 25, 2005 01:13 PM
Ainokea
What exactly is Civsim? Is it a strategy game of some sorts or a sand box type thing (Sim City,Rollor Coaster Tycoon, etc.)? Or something totally diffrent?

Well whatever it is, it looks good. [smile]
February 25, 2005 01:23 PM
Ainokea
I must say, the header certainly made me understand.

Good luck!
February 25, 2005 04:49 PM
H_o_p_s
Just a thought... can you put the main description in the footer, and then just add a link down to it? I dislike having to scroll past it all the time ;)
February 25, 2005 10:05 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement