summaryrefslogtreecommitdiff
path: root/tmw-darkside.servegame.com/graphics/sprites/monsters/monster-snowflake.xml
blob: 18f63671b0ce8f126ab89398be6fc5293b56aa2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0"?>
<!-- The Big Snowflake Monster! -->
<sprite>
<!-- height and width are equal to sprite frame size -->
 <imageset name="base" src="graphics/sprites/monsters/monster-snowflake.png" width="29" height="30" />
<!-- index=static frame. for start, each frame is decided from width/height above, if I understand correctly, and end is the last frame. Delay is in milliseconds. Offset is for alignment correction purposes. No alignment problems from what I can see. -->
 <action name="stand" imageset="base">
  <animation direction="down">
    <frame index="0" />
  </animation>
  <animation direction="left">
    <frame index="6" />
  </animation>
  <animation direction="up">
    <frame index="0" />
  </animation>
  <animation direction="right">
    <frame index="12" />
  </animation>
 </action>

 <action name="walk" imageset="base">
  <animation direction="down">
   <frame index="0" />
   <end />
  </animation>
  <animation direction="left">
   <frame index="6" />
   <end />
  </animation>
  <animation direction="up">
   <frame index="0" />
   <end />
  </animation>
  <animation direction="right">
   <frame index="12" />
   <end />
  </animation>
 </action>
<!-- Animated death must be in this format. Doing it like the other actions will result in extra frame.--> 
 <action name="dead" imageset="base">
  <animation direction="default">
   <sequence start="18" end="21" delay="250"/>
     <end />
  </animation> 
 </action>

 <action name="attack" imageset="base">
  <animation direction="down">
   <sequence start="2" end="5" delay="150" />
     <end />
  </animation>
  <animation direction="left">
   <sequence start="8" end="11" delay="150" />
     <end />
  </animation>
  <animation direction="up">
   <sequence start="0" end="0" delay="150" />
     <end />
  </animation>
  <animation direction="right">
   <sequence start="14" end="17" delay="150" />
     <end />
  </animation>
 </action>
</sprite>