9 Oct 2000 scjody   » (Journeyer)

Spent the afternoon playing with Gnapster, so that downloaded .mp3's would automatically queue in xmms. That much was fairly easy, but I decided to add an option to Preferences. This was more challenging, given that I've never done any gtk programming. The gtk part isn't working yet.. I'm going to wait until Kevin gets home and ask him what I'm doing wrong :)

Oh yeah that reminds me, it's Thanksgiving weekend in Canada.. and I have nowhere to go :( Not only that, but the guys I'm staying with have both gone home for the weekend. (Home for me is Newfoundland, the other side of the country..)

I finally did some polegame in the evening. Decided to try compiling Gameloop.cpp (which is where all the fun happens). I turned up a whole stack of problems, and am now working on them. One fun thing I discovered: there is another way for the game to end: If the direct draw init fails, DestroyWindow is called. Not sure how to port this. Probably just exit(1). I also commented out a lot of sound initialization code.. I'm going to comment out all sound for now. I'd rather just get the game working first.

After completing Gameloop.cpp, I moved on to Layers.cpp. There, I discovered a rather interesting piece of code:
#define dSCROLLACCELERATION = 1;
[...]
nScrollVelocity +=dSCROLLACCELERATION;

I had to stare at it for a while before I realized what was wrong, but now a larger question: why did it compile correctly under Visual C++?

I finished Layers.cpp and tried to compile the rest of the .cpp's in control/ . The only one left that won't compile is Timer.cpp, and I'll work on that tomorrow. It seems to do a couple of Windows-specific things.

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!