Thursday, March 20, 2008

Resizing windows and cleaning up the house

I’ve spread my self around last night, doing minor work on both CnC and Fishguts.

In CnC I built the game to resize the SDL window, and it works quite well, I’m very surprised, and it only took about 3 lines of C code to make it work. One suckage thing is that SDL clears the buffer so if you resize and hold the mouse down you get a black window until the game redraws the window, but you dont get that message until after you release the mouse button…

In Fishguts news, I’ve been tidying up my constants, the game uses a lot of constants in the C code and int he Lua code, and basically I have duplicate on the Lua side. I spent last night cleaning a lot up by having them set by the C code when a new Lua State is created, this stops me having to load the same constants in at the top of a script in an include file… so that is pretty nice.

Joy dislocated her shoulder so I’ve been doing all the baby caring stuff on my own lately which has killed any productivity but thats ok, its what marriage is about, taking care of each other. We are hoping its not a torn rotator cuff, so I might be doing only minor work on CnC + Fishguts for a few more weeks.

Posted by Stu on 03/20 at 07:23 AM Permalink to this post.
Filed Under : ComputersDevelopmentCracks and CrevicesFishguts
Commented on by (0) people. Read or Post Comments Here
Linked To by (0) blogs. Get a Trackbacks link here

Page 1 of 1 pages