summaryrefslogtreecommitdiff
path: root/graphics/sprites/monsters/bobone.xml
blob: 4eb136983ad8f0b8bd0321976fe898e4cebc2442 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0"?>
<!--
Frame map:

  s/w   w   w   w   a   a   a   d
r   0   1   2   3   4   5   6   7
l   8   9  10  11  12  13  14  15
d  16  17  18  19  20  21  22  23
u  24  25  26  27  28  29  30  31

a = attack
d = death
s = stand
w = walk

l = left
r = right
d = down
u = up
-->
<sprite>
<imageset name="base" src="graphics/sprites/monsters/bobone.png" width="86" height="78" offsetY="8"/>
  <action name="stand" imageset="base">
    <animation direction="down">
      <frame index="16"/>
    </animation>
    <animation direction="left">
      <frame index="8"/>
    </animation>
    <animation direction="up">
      <frame index="24"/>
    </animation>
    <animation direction="right">
      <frame index="0"/>
    </animation>
  </action>
  <action name="walk" imageset="base">
    <animation direction="down">
      <sequence start="16" end="19" delay="120"/>
    </animation>
    <animation direction="left">
      <sequence start="8" end="11" delay="120"/>
    </animation>
    <animation direction="up">
      <sequence start="24" end="27" delay="120"/>
    </animation>
    <animation direction="right">
      <sequence start="0" end="3" delay="120"/>
    </animation>
  </action>
  <action name="dead" imageset="base">
    <animation direction="down">
      <frame index="23" delay="900"/>
    </animation>
    <animation direction="left">
      <frame index="15" delay="900"/>
    </animation>
    <animation direction="up">
      <frame index="31" delay="900"/>
    </animation>
    <animation direction="right">
      <frame index="7" delay="900"/>
    </animation>
  </action>
  <action name="attack" imageset="base">
    <animation direction="down">
      <sequence start="20" end="22" delay="100"/>
      <end/>
    </animation>
    <animation direction="left">
      <sequence start="12" end="14" delay="100"/>
      <end/>
    </animation>
    <animation direction="up">
      <sequence start="28" end="31" delay="100"/>
      <end/>
    </animation>
    <animation direction="right">
      <sequence start="4" end="6" delay="100"/>
      <end/>
    </animation>
  </action>
</sprite>