Sprite Definition
Sprites are defined in LoM using an XML file with the extension '.sprite'. The syntax is as follows:
<sprite version="0.99">
<imagesheet src="sample_player.png" id="0" />
<action name="default">
<frame index="0" sheetid="0" delay="75" srcx="0" srcy="0" width="64" height="64" anchorx="32" anchory="60" />
</action>
<action name="walk_south">
<frame sheetid="0" index="0" delay="75" srcx="0" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
<frame sheetid="0" index="1" delay="75" srcx="96" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
<frame sheetid="0" index="2" delay="75" srcx="192" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
<frame sheetid="0" index="3" delay="75" srcx="288" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
<frame sheetid="0" index="4" delay="75" srcx="384" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
<frame sheetid="0" index="5" delay="75" srcx="480" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
<frame sheetid="0" index="6" delay="75" srcx="576" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
<frame sheetid="0" index="7" delay="75" srcx="672" srcy="0" width="96" height="96" anchorx="48" anchory="90" />
</action>
</sprite>
TODO:
Need to comment all of the above stuff so that anybody can figure it out.
page_revision: 0, last_edited: 1239875011|%e %b %Y, %H:%M %Z (%O ago)






