Newsflash

Wohoo PDF Print E-mail
Written by Stefan Hendriks   
Thursday, 31 May 2007
Looks like i have a bit of spare time and therefor written a few results. The SVN Repository is now at Revision 51 as i write this. Still waiting for anyone who is willing to participate.


The code is updated and supports now a simple XML reader. You can specify your bitmaps within a resources.xml , so basically you can say "load picture located at X with an id of Y". In code, i can match the ID due the nice little layer (MMEDataBase) i have written which has all the surfaces loaded with their ids. Sweet thing is, the id is a name in the XML, and you can access it with that name in code as well. But, to make it a bit faster, the code is being prepared to remember what name id is the id in the array, therefor one lookup is only needed, after that its blazing fast accessing directly from the array.


In short, i have a few bitmaps , place holders, and they are loaded via my resources.xml. Then i draw a little map, and i have a mouse cursor drawn over it. Thats all, but, i can notice that due the nice little API that is written as the engine fundament, its getting easier to write some stuff, and also gives solid and fast results.


Also, when something goes wrong, i get notified properly with asserts.


Want to see it? Grab the code at code.google.com , project "shaihulud".

< Prev   Next >
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.