Re-reverse coordinate system to match OpenGL.
[python-bulletml.git] / examples / normal / threefire-offset.xml
1 <?xml version="1.0" ?>
2 <!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">
3
4 <bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml"
5 xmlns:py="http://code.google.com/p/python-bulletml/">
6 <action label="top">
7 <actionRef label="threefire">
8 <param>10 + 20 * $rank * $rand</param>
9 </actionRef>
10 </action>
11
12 <action label="threefire">
13 <fire>
14 <bulletRef label="dropper">
15 <param>$1</param>
16 <param>0</param>
17 </bulletRef>
18 <direction>0</direction>
19 <py:appearance>red</py:appearance>
20 </fire>
21 <fire>
22 <bulletRef label="dropper">
23 <param>$1</param>
24 </bulletRef>
25 <py:offset><py:x>5</py:x><py:y>-5</py:y></py:offset>
26 <py:appearance>green</py:appearance>
27 </fire>
28 <fire>
29 <bulletRef label="dropper">
30 <param>$1</param>
31 </bulletRef>
32 <py:offset><py:x>-5</py:x><py:y>-5</py:y></py:offset>
33 <py:appearance>blue</py:appearance>
34 </fire>
35 </action>
36
37 <bullet label="dropper">
38 <speed>0</speed>
39 <action>
40 <repeat>
41 <times>$1</times>
42 <action>
43 <fire>
44 <bullet>
45 <direction type="relative">0</direction>
46 <speed type="absolute">1</speed>
47 </bullet>
48 </fire>
49 <wait>4</wait>
50 </action>
51 </repeat>
52 <changeSpeed>
53 <term>1</term>
54 <speed>1</speed>
55 </changeSpeed>
56 </action>
57 </bullet>
58 </bulletml>