From The Mana World
This article is currently only a proposal
The features or design guidelines described in this article are only a proposal made by one or some persons. It has not been evaluated or accepted by the core development team yet. Feel free to add your personal opinion about them or make counter proposals.
After a mini-meeting between me and Doener we refined the model. Each animation will be defined by an xml document, here follows an example:
<?xml version="1.0"?> <animation name="player"> <spritemap name="misc" src="player-male-misc.png" width="64" height="64" /> <spritemap name="stab" src="player-male-stab.png" width="64" height="64" /> <spritemap name="bow" src="player-male-bow.png" width="64" height="64" /> <action name="stand"> <frame spritemap="misc" index="0" delay="0" /> </action> <action name="walk"> <frame spritemap="misc" index="0" delay="20" /> <frame spritemap="misc" index="1" delay="20" /> </action> <action name="bow-attack"> <sequence spritemap="bow" start="0" end="5" delay="20" /> </action> </animation>
So if you want to load the playerset you just load player.xml and it takes care of loading all related images. Of course delays are defined in milliseconds.