|
From: Jone M. V. <vi...@ns...> - 2001-02-13 11:53:54
|
Hi, everybody;)
Here's the news from the cvs-trenches:
Introduction of KGB_Singleton: a template-based singleton class that
implements objects inherited from it as singletons. This has been the fate of
KGB_Game and KGB_Time, as these two only should have one instance in a game,
and it simplifies the interface to some other classes constructors.
ex:
KGB_SurfaceFactory("name", game->getConfNode(), game->time) has changed into
KGB_SurfaceFactory("name", game->getConfNode()), and is going to end up as
KGB_SurfaceFactory("name") when I am completely done with this transition.
We also now have time/frame based animation of surfaces. To use this feature,
insert a new value (dTime) in the xml-definition of Surface like this:
<Surface ObjectName="frame1" FileName="gfx/ball-1.png" dTime="10"/>
dTime means displaytime, and is measured in 1/1000 seconds. Watch out, as
this is a minimum-value displaytime e.g. you are guaranteed that the surface
is displayed dTime. I am not sure if we should implement a max-time as well.
Speak up if you think so.
KGB_Game no gets it background-surface from an xml-definition of a
SurfaceFactory with ObjectName="background". This is the first waypoint in
making the background behave as a normal SurfaceFactory, and should
eventually make it possible to write custom scrolling/tiled etc. backgrounds.
I have also cleaned out some memoryleaks, but there are still issues with,
amongst aothers, KGB_ConfNode. If anybody cares to take a look at this
(prefect:)), please do so.
Plans for the coming days: I want to do some rigid-body physics, clean up the
collisionhandling, maybe a finite-state machine class, and I would like to
take a look at sound (it's about time). There are also some weeding to be
done to the sources, as there are classes that are not used anymore, but are
still present in the repository.
If you have any suggestions, please use this list.
...and last, but not least: do a cvs update -d, and check if everythings
working.
btw. After correcting a bug in the EventHandling-code, KGB now compiles as a
shared library again.
Have a nice day!
inful
BLiP!
|