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