11 Jan 2002 chakie   » (Master)

Got back the joy of coding and banged up some new stuff for Civil. The code basically reorganizes the panel a little bit, as the messages to the player (chat etc) that previously was displayed in the right part of the panel now has moved up in the main playfield. There they stay for a while and then scroll away. Looks rather nice, I think. The panel must now be redesigned, but that should be no problem, as TheCorruptor thinks it sucks and wants to redesign it. I think the old messages area could be used for a list of orders for the current unit. Yeah, that could be nice.

I also added a small framework for doing animation. Basically it's dead simple, as it's just a class that manages callbacks to other classes that want to be animated, and calls them on specified intervals. Just a few lines of code, and seems to work ok. If we're going to animate more stuff I need to make the playfield more intelligent, so that it can repaint only parts of itself. Right now repainting the playfield repaints te entire thing, even if the change would be only a few pixels. Clearly it's "slightly" inefficient. Should be fairly possible to come up with a scheme for having it repaint only dirty rectangles.

Been playing a lot of Combat Mission lately, as my dear wife is in Dallas on a bussiness trip. I might get addicted... Also playing my second run through Baldur's Gate, this time as a magician. Quite easy going so far.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!