Mercurial > touhou-doc
comparison 06/anm.xml @ 10:d0e992b282a0
Fix anm XML format to be consistant with ecl.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 23 Aug 2011 23:42:34 +0200 |
parents | 6d47bfc23c64 |
children | 79dfd9765a67 |
comparison
equal
deleted
inserted
replaced
9:6d47bfc23c64 | 10:d0e992b282a0 |
---|---|
11 | 11 |
12 <op> | 12 <op> |
13 <num>1</num> | 13 <num>1</num> |
14 <name>set_sprite</name> | 14 <name>set_sprite</name> |
15 <params> | 15 <params> |
16 <param type="S">Sprite number.</param> | 16 <param type="S" name="number" unit="sprite"/> |
17 </params> | 17 </params> |
18 <desc>Displays a certain sprite, or change from the previous sprite.</desc> | 18 <desc>Displays a certain sprite, or change from the previous sprite.</desc> |
19 </op> | 19 </op> |
20 | 20 |
21 <op> | 21 <op> |
22 <num>2</num> | 22 <num>2</num> |
23 <name>set_scale</name> | 23 <name>set_scale</name> |
24 <params> | 24 <params> |
25 <param type="f" default="in the sprite section">X factor.</param> | 25 <param type="f" name="sx" default="in the sprite section"/> |
26 <param type="f" default="in the sprite section">Y factor.</param> | 26 <param type="f" name="sy" default="in the sprite section"/> |
27 </params> | 27 </params> |
28 <desc>Resizes the current sprite.</desc> | 28 <desc>Resizes the current sprite.</desc> |
29 </op> | 29 </op> |
30 | 30 |
31 <op> | 31 <op> |
32 <num>3</num> | 32 <num>3</num> |
33 <name>set_alpha</name> | 33 <name>set_alpha</name> |
34 <params> | 34 <params> |
35 <param type="S">alpha (0 to 255)</param> | 35 <param type="S" name="alpha" values="0 to 255"/> |
36 </params> | 36 </params> |
37 </op> | 37 </op> |
38 | 38 |
39 <op> | 39 <op> |
40 <num>4</num> | 40 <num>4</num> |
41 <name>set_color</name> | 41 <name>set_color</name> |
42 <params> | 42 <params> |
43 <param type="c">g</param> | 43 <param type="c" name="green"/> |
44 <param type="c">b</param> | 44 <param type="c" name="blue"/> |
45 <param type="c">r</param> | 45 <param type="c" name="red"/> |
46 <param type="c">padding</param> | 46 <param type="c" name="padding"/> |
47 </params> | 47 </params> |
48 </op> | 48 </op> |
49 | 49 |
50 <op> | 50 <op> |
51 <num>5</num> | 51 <num>5</num> |
52 <name>jump</name> | 52 <name>jump</name> |
53 <params> | 53 <params> |
54 <param type="S">absolute offset within the script of the instruction to jump to</param> | 54 <param type="S" name="offset">absolute offset within the script of the instruction to jump to</param> |
55 </params> | 55 </params> |
56 <desc>Jump to the given instruction and reset the frame counter to the instruction's frame.</desc> | 56 <desc>Jump to the given instruction and reset the frame counter to the instruction's frame.</desc> |
57 </op> | 57 </op> |
58 | 58 |
59 <op> | 59 <op> |
64 | 64 |
65 <op> | 65 <op> |
66 <num>9</num> | 66 <num>9</num> |
67 <name>set_3d_rotation</name> | 67 <name>set_3d_rotation</name> |
68 <params> | 68 <params> |
69 <param type="f">-x</param> | 69 <param type="f" name="-x">Warning: negative!</param> |
70 <param type="f">y</param> | 70 <param type="f" name="y"/> |
71 <param type="f">-z</param> | 71 <param type="f" name="-z">Warning: negative!</param> |
72 </params> | 72 </params> |
73 <desc>Set a rotation for the current object.</desc> | 73 <desc>Set a rotation for the current object.</desc> |
74 </op> | 74 </op> |
75 | 75 |
76 <op> | 76 <op> |
77 <num>10</num> | 77 <num>10</num> |
78 <name>set_3d_rotation_speed</name> | 78 <name>set_3d_rotation_speed</name> |
79 <params> | 79 <params> |
80 <param type="f">-x</param> | 80 <param type="f" name="-x">Warning: negative!</param> |
81 <param type="f">y</param> | 81 <param type="f" name="y"/> |
82 <param type="f">-z</param> | 82 <param type="f" name="-z">Warning: negative!</param> |
83 </params> | 83 </params> |
84 </op> | 84 </op> |
85 | 85 |
86 <op> | 86 <op> |
87 <num>11</num> | 87 <num>11</num> |
88 <name>set_scale_speed</name> | 88 <name>set_scale_speed</name> |
89 <params> | 89 <params> |
90 <param type="f">sx speed</param> | 90 <param type="f" name="sx_speed"/> |
91 <param type="f">sy speed</param> | 91 <param type="f" name="sy_speed"/> |
92 </params> | 92 </params> |
93 </op> | 93 </op> |
94 | 94 |
95 <op> | 95 <op> |
96 <num>12</num> | 96 <num>12</num> |
97 <name>fade</name> | 97 <name>fade</name> |
98 <params> | 98 <params> |
99 <param type="f">new_alpha</param> | 99 <param type="f" name="new_alpha"/> |
100 <param type="S">duration</param> | 100 <param type="S" name="duration" unit="frames"/> |
101 </params> | 101 </params> |
102 </op> | 102 </op> |
103 | 103 |
104 <op> | 104 <op> |
105 <num>13</num> | 105 <num>13</num> |
117 | 117 |
118 <op> | 118 <op> |
119 <num>16</num> | 119 <num>16</num> |
120 <name>set_random_sprite</name> | 120 <name>set_random_sprite</name> |
121 <params> | 121 <params> |
122 <param type="S">id of the first sprite</param> | 122 <param type="S" name="first" unit="sprite"/> |
123 <param type="S">number of sprites</param> | 123 <param type="S" name="number"/> |
124 </params> | 124 </params> |
125 <desc>Select a sprite in the [[id, id+number)) range.</desc> | 125 <desc>Select a sprite in the [first, first+number) range.</desc> |
126 </op> | 126 </op> |
127 | 127 |
128 <op> | 128 <op> |
129 <num>17</num> | 129 <num>17</num> |
130 <params> | 130 <params> |
131 <param type="f"></param> | 131 <param type="f"/> |
132 <param type="f"></param> | 132 <param type="f"/> |
133 <param type="f"></param> | 133 <param type="f"/> |
134 </params> | 134 </params> |
135 </op> | 135 </op> |
136 | 136 |
137 <op> | 137 <op> |
138 <num>18</num> | 138 <num>18</num> |
139 <params> | 139 <params> |
140 <param type="f"></param> | 140 <param type="f"/> |
141 <param type="f"></param> | 141 <param type="f"/> |
142 <param type="S"></param> | 142 <param type="S"/> |
143 <param type="S"></param> | 143 <param type="S"/> |
144 </params> | 144 </params> |
145 </op> | 145 </op> |
146 | 146 |
147 <op> | 147 <op> |
148 <num>19</num> | 148 <num>19</num> |
149 <params> | 149 <params> |
150 <param type="f"></param> | 150 <param type="f"/> |
151 <param type="f"></param> | 151 <param type="f"/> |
152 <param type="S"></param> | 152 <param type="S"/> |
153 <param type="S"></param> | 153 <param type="S"/> |
154 </params> | 154 </params> |
155 </op> | 155 </op> |
156 | 156 |
157 <op> | 157 <op> |
158 <num>20</num> | 158 <num>20</num> |
159 <params> | 159 <params> |
160 <param type="f"></param> | 160 <param type="f"/> |
161 <param type="f"></param> | 161 <param type="f"/> |
162 <param type="f"></param> | 162 <param type="f"/> |
163 <param type="S"></param> | 163 <param type="S"/> |
164 </params> | 164 </params> |
165 </op> | 165 </op> |
166 | 166 |
167 <op> | 167 <op> |
168 <num>21</num> | 168 <num>21</num> |
169 </op> | 169 </op> |
170 | 170 |
171 <op> | 171 <op> |
172 <num>22</num> | 172 <num>22</num> |
173 <params> | 173 <params> |
174 <param type="S"></param> | 174 <param type="S"/> |
175 </params> | 175 </params> |
176 </op> | 176 </op> |
177 | 177 |
178 <op> | 178 <op> |
179 <num>23</num> | 179 <num>23</num> |
180 <name>set_bottom_left_as_origin</name> | 180 <name>set_bottom_left_as_origin</name> |
181 <desc>Set the sprite's bottom-left corner as its origin (otherwise, the sprite's origin is its center). | 181 <desc>Set the sprite's bottom-left corner as its origin (otherwise, the sprite's origin is its center).<br/> |
182 This parameter effectively translates the sprite by (width / 2., height / 2., 0.) once every other sprite operation has been executed.</desc> | 182 This parameter effectively translates the sprite by (width / 2., height / 2., 0.) once every other sprite operation has been executed.</desc> |
183 </op> | 183 </op> |
184 | 184 |
185 <op> | 185 <op> |
186 <num>24</num> | 186 <num>24</num> |
187 </op> | 187 </op> |
188 | 188 |
189 <op> | 189 <op> |
190 <num>25</num> | 190 <num>25</num> |
191 <params> | 191 <params> |
192 <param type="S"></param> | 192 <param type="S"/> |
193 </params> | 193 </params> |
194 </op> | 194 </op> |
195 | 195 |
196 <op> | 196 <op> |
197 <num>26</num> | 197 <num>26</num> |
198 <params> | 198 <params> |
199 <param type="S"></param> | 199 <param type="S"/> |
200 </params> | 200 </params> |
201 </op> | 201 </op> |
202 | 202 |
203 <op> | 203 <op> |
204 <num>27</num> | 204 <num>27</num> |
205 <name>shift_texture_x</name> | 205 <name>shift_texture_x</name> |
206 <params> | 206 <params> |
207 <param type="f">dx</param> | 207 <param type="f" name="dx" unit="pixels"/> |
208 </params> | 208 </params> |
209 <desc>Add dx to the x coordinates of the texture, causing the texture to "move".</desc> | 209 <desc>Add dx to the x coordinates of the texture, causing the texture to "move".</desc> |
210 </op> | 210 </op> |
211 | 211 |
212 <op> | 212 <op> |
213 <num>28</num> | 213 <num>28</num> |
214 <name>shift_texture_y</name> | 214 <name>shift_texture_y</name> |
215 <params> | 215 <params> |
216 <param type="f">dy</param> | 216 <param type="f" name="dy" unit="pixels"/> |
217 </params> | 217 </params> |
218 <desc>Add dy to the y coordinates of the texture, causing the texture to "move".</desc> | 218 <desc>Add dy to the y coordinates of the texture, causing the texture to "move".</desc> |
219 </op> | 219 </op> |
220 | 220 |
221 <op> | 221 <op> |
222 <num>29</num> | 222 <num>29</num> |
223 <params> | 223 <params> |
224 <param type="S"></param> | 224 <param type="S"/> |
225 </params> | 225 </params> |
226 </op> | 226 </op> |
227 | 227 |
228 <op> | 228 <op> |
229 <num>30</num> | 229 <num>30</num> |
230 <name>scale_in</name> | 230 <name>scale_in</name> |
231 <params> | 231 <params> |
232 <param type="f">new_sx</param> | 232 <param type="f" name="new_sx"/> |
233 <param type="f">new_sy</param> | 233 <param type="f" name="new_sy"/> |
234 <param type="S">duration</param> | 234 <param type="S" name="duration" unit="frames"/> |
235 </params> | 235 </params> |
236 <desc>Sets the scale factor to (new_sx, new_sy) in duration frames.</desc> | 236 <desc>Sets the scale factor to (new_sx, new_sy) in duration frames.</desc> |
237 </op> | 237 </op> |
238 | 238 |
239 <op> | 239 <op> |
240 <num>31</num> | 240 <num>31</num> |
241 <params> | 241 <params> |
242 <param type="S"></param> | 242 <param type="S"/> |
243 </params> | 243 </params> |
244 </op> | 244 </op> |
245 </opcodes> | 245 </opcodes> |