summaryrefslogtreecommitdiff
path: root/graphics/sprites/weapons.xml
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-07-24 00:13:24 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-07-24 00:13:24 +0000
commit13e48bb0b5872499bcc849496cf299b853b226ef (patch)
tree962f01af9bcda5a495be098f345ec0220411cb65 /graphics/sprites/weapons.xml
parent476f99d5089d6b00242344fb7da4e2771c54e4a8 (diff)
downloadclientdata-13e48bb0b5872499bcc849496cf299b853b226ef.tar.gz
clientdata-13e48bb0b5872499bcc849496cf299b853b226ef.tar.bz2
clientdata-13e48bb0b5872499bcc849496cf299b853b226ef.tar.xz
clientdata-13e48bb0b5872499bcc849496cf299b853b226ef.zip
Implemented caching of spritesets, including a lot of cleanups to the new
animation system. Action now refers to the Spriteset directly and AnimatedSprite refers to the current Action directly instead of using the std::map with a std::string constantly. Some methods and parameters are marked as const. The READ_PROP macro was replaced by static methods. Warnings are logged when unnamed actions are defined or when actions refer to undefined imagesets. Code is more tolerant towards missing actions.
Diffstat (limited to 'graphics/sprites/weapons.xml')
-rw-r--r--graphics/sprites/weapons.xml9
1 files changed, 1 insertions, 8 deletions
diff --git a/graphics/sprites/weapons.xml b/graphics/sprites/weapons.xml
index d3430507..0e2ce8b7 100644
--- a/graphics/sprites/weapons.xml
+++ b/graphics/sprites/weapons.xml
@@ -1,14 +1,8 @@
<?xml version="1.0"?>
<sprite name="player" action="stand">
-
<imageset name="dagger" src="graphics/sprites/weapon0.png" width="64" height="64" />
<imageset name="bow" src="graphics/sprites/weapon1.png" width="64" height="64" />
- <action name="" imageset="base">
- <animation direction="default">
- </animation>
- </action>
-
<action name="attack_stab" imageset="dagger">
<animation direction="down">
<sequence start="0" end="3" delay="75" />
@@ -38,5 +32,4 @@
<sequence start="15" end="19" delay="75" />
</animation>
</action>
-
-</sprite> \ No newline at end of file
+</sprite>