Sunday, February 15, 2009

Weekend Warrior Log #2

I've been reading the documentation for SDL after looking through Bomberclone's source code. I then began to work on some tutorials found at: http://lazyfoo.net/SDL_tutorials/index.php

I've done the first two and I'm working on the third. I want to get through the first five today; maybe more. At some point, I should look into compiling the examples on windows.

I've put the examples into my projects/sdl/sdl# directory structure.

What I've learned is that I've been avoiding this for too many years. I don't know if it was fear or success or what. I know part of it is my hate for Windows and the way the industry is so owned by Windows (and doesn't seem to mind!) I will
have to see where this takes me. I'm having a lot of fun.

After a long day of Warhammer and some additional chores I'm back and hoping to get at least tutorials 3, 4 and 5 done.
The third is a simple lib include tutorial, it causes me to look at make alternatives because I know that soon I'll want to start scripting the builds.
I found this article: http://freshmeat.net/articles/view/1715/

I've read through lesson 6, I'm going to go a bit further just reading without compiling examples anymore. Each lesson has shown such a small new idea that I'll wait until there is a more complicated example. Having gotten as far as making tetris and pac-man in Java; I understand the concepts going on. SDL seems really nice though!

Saturday, February 14, 2009

Weekend Warrior Log #1

I pulled bomberclone out of cvs. It doesn't configure correctly and I think it may be because of a missing SDL library on my ubuntu box.
I had to install all libsdl*-dev packages.
Bomberclone built and compiled just fine; I'm going to study the source code a bit and see if I can add some new stuff.
It's written in C with SDL (obviously), and it's a bit hard to follow. It's done very old school MUD style with everything just in a struct and kind of built without an overarching design. I kind of like it even though I can't follow it well. I'll have to spend more time with it.