If: Conditional actions.
[python-bulletml.git] / examples / normal / threefire.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 <action label="top">
6 <actionRef label="threefire">
7 <param>10 + 20 * $rank * $rand</param>
8 </actionRef>
9 </action>
10
11 <action label="threefire">
12 <fire>
13 <bulletRef label="dropper">
14 <param>$1</param>
15 <param>0</param>
16 </bulletRef>
17 <direction>0</direction>
18 </fire>
19 <fire>
20 <bulletRef label="dropper">
21 <param>$1</param>
22 <param>-90</param>
23 </bulletRef>
24 <direction type="sequence">-90</direction>
25 </fire>
26 <fire>
27 <bulletRef label="dropper">
28 <param>$1</param>
29 <param>90</param>
30 </bulletRef>
31 <direction type="sequence">180</direction>
32 </fire>
33 </action>
34
35 <bullet label="dropper">
36 <speed>1</speed>
37 <action>
38 <wait>3</wait>
39 <changeSpeed>
40 <term>1</term>
41 <speed>0</speed>
42 </changeSpeed>
43 <changeDirection>
44 <term>1</term>
45 <direction type="relative">-$2</direction>
46 </changeDirection>
47 <wait>1</wait>
48 <repeat>
49 <times>$1</times>
50 <action>
51 <fire>
52 <bullet>
53 <direction type="relative">0</direction>
54 <speed type="absolute">1</speed>
55 </bullet>
56 </fire>
57 <wait>4</wait>
58 </action>
59 </repeat>
60 <changeSpeed>
61 <term>1</term>
62 <speed>1</speed>
63 </changeSpeed>
64 </action>
65 </bullet>
66 </bulletml>