Entity descriptor has scripts
[Tsunagari.git] / src / babysfirst / vlad.entity
blob0cf944ffead274baea4a74031023c9b3fdd53fbe
1 <?xml version="1.0" encoding="UTF-8"?>
2 <entity version="1">
3         <speed>240</speed> <!-- movement speed in pixels per second -->
4         <sprite>
5                 <sheet tilewidth="64" tileheight="64">vlad.sheet</sheet>
6                 <phases>
7                         <phase name="down" pos="0" />
8                         <phase name="down-left" pos="1" />
9                         <phase name="left" pos="2" />
10                         <phase name="up-left" pos="3" />
11                         <phase name="up" pos="4" />
12                         <phase name="up-right" pos="5" />
13                         <phase name="right" pos="6" />
14                         <phase name="down-right" pos="7" />
16                         <phase name="moving up" speed="26">
17                                 <member pos="8" />
18                                 <member pos="9" />
19                                 <member pos="10" />
20                                 <member pos="11" />
21                                 <member pos="12" />
22                                 <member pos="13" />
23                                 <member pos="14" />
24                                 <member pos="15" />
25                         </phase>
27                         <phase name="moving up-right" speed="26">
28                                 <member pos="16" />
29                                 <member pos="17" />
30                                 <member pos="18" />
31                                 <member pos="19" />
32                                 <member pos="20" />
33                                 <member pos="21" />
34                                 <member pos="22" />
35                                 <member pos="23" />
36                         </phase>
38                         <phase name="moving right" speed="26">
39                                 <member pos="24" />
40                                 <member pos="25" />
41                                 <member pos="26" />
42                                 <member pos="27" />
43                                 <member pos="28" />
44                                 <member pos="29" />
45                                 <member pos="30" />
46                                 <member pos="31" />
47                         </phase>
49                         <phase name="moving down-right" speed="26">
50                                 <member pos="32" />
51                                 <member pos="33" />
52                                 <member pos="34" />
53                                 <member pos="35" />
54                                 <member pos="36" />
55                                 <member pos="37" />
56                                 <member pos="38" />
57                                 <member pos="39" />
58                         </phase>
60                         <phase name="moving down" speed="26">
61                                 <member pos="40" />
62                                 <member pos="41" />
63                                 <member pos="42" />
64                                 <member pos="43" />
65                                 <member pos="44" />
66                                 <member pos="45" />
67                                 <member pos="46" />
68                                 <member pos="47" />
69                         </phase>
71                         <phase name="moving down-left" speed="26">
72                                 <member pos="48" />
73                                 <member pos="49" />
74                                 <member pos="50" />
75                                 <member pos="51" />
76                                 <member pos="52" />
77                                 <member pos="53" />
78                                 <member pos="54" />
79                                 <member pos="55" />
80                         </phase>
82                         <phase name="moving left" speed="26">
83                                 <member pos="56" />
84                                 <member pos="57" />
85                                 <member pos="58" />
86                                 <member pos="59" />
87                                 <member pos="60" />
88                                 <member pos="61" />
89                                 <member pos="62" />
90                                 <member pos="63" />
91                         </phase>
93                         <phase name="moving up-left" speed="26">
94                                 <member pos="64" />
95                                 <member pos="65" />
96                                 <member pos="66" />
97                                 <member pos="67" />
98                                 <member pos="68" />
99                                 <member pos="69" />
100                                 <member pos="70" />
101                                 <member pos="71" />
102                         </phase>
103                 </phases>
104         </sprite>
106         <sounds>
107                 <sound name="step">step.sound</sound>
108         </sounds>
110         <scripts>
111                 <script trigger="premove">premove.script</script>
112                 <script trigger="postmove">postmove.script</script>
113         </scripts>
114 </entity>