I have added worldtest.cc to CVS, which is the test app originally created by Alex for his new mapengine code. Integration into v0.4 took a little longer than I wished, as I had to hunt down a couple of subtle bugs.
Biggest problem was to get stuff working on my Windows box ... finally managed today after a MinGW developer sent me a bugfix for the latest mingw runtime (very helpful folks there, and quick too! Kudos!). Unfortunately, the demo isn't behaving as expected yet, so I'll have to do some debugging to figure out what's wrong. I probably messed up the code while porting it over from v0.3 ;-). Anyway, a couple of things I wanted to mention: * The animation class has a couple of TODOs for saving/restoring the exact state of an animation. I think this should not be part of the animation class itself. Instead, objects that use an animation might want to save their state and restore it later. The animation class should really just contain the basic sprite data. * I've started adding the demo graphics and models to test/data/ (sorry for the mail-traffic on adonthell-commits), so that the demo will run out of the box. The gfx module in CVS is meant more like a generic media repository and I don't think we're ready to start a dunbarethsol module yet. * If you do an out-of-source build, the worldtest program will end up where it can't find its data files. Use the -g parameter to supply the data directory to the engine. I noticed however, that the png loader didn't honor the engine search path; that's fixed now. * I also noticed that one of the character animations (south) doesn't appear to load properly. All the colors are wrong on my Mac, so it looks like an endian issue to me. The other directions look fine though. Could they be in a different format (RGB vs. RGBA)? I'll have a look when I find the time, but maybe it's obvious to somebody else. The next steps are to fix the remaining worldtest issues and adding some objects to the test map. Help is welcome, as always. If somebody wants to get artistic, feel free to draw some stuff that'd look good in the demo. Kai _______________________________________________ Adonthell-devel mailing list Adonthell-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/adonthell-devel