If: Conditional actions.
[python-bulletml.git] / examples / normal / [G_DARIUS]_homing_laser.xml
1 <?xml version="1.0" ?>
2 <!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">
3
4 <bulletml type="horizontal"
5 xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">
6
7 <action label="top">
8 <repeat><times>8</times>
9 <action>
10 <fire>
11 <direction>-60+$rand*120</direction>
12 <bulletRef label="hmgLsr"/>
13 </fire>
14 <repeat><times>8</times>
15 <action>
16 <wait>1</wait>
17 <fire>
18 <direction type="sequence">0</direction>
19 <bulletRef label="hmgLsr"/>
20 </fire>
21 </action>
22 </repeat>
23 <wait>10</wait>
24 </action>
25 </repeat>
26 </action>
27
28 <bullet label="hmgLsr">
29 <speed>2</speed>
30 <action>
31 <changeSpeed>
32 <speed>0.3</speed>
33 <term>30</term>
34 </changeSpeed>
35 <wait>100</wait>
36 <changeSpeed>
37 <speed>5</speed>
38 <term>100</term>
39 </changeSpeed>
40 </action>
41 <action>
42 <repeat><times>9999</times>
43 <action>
44 <changeDirection>
45 <direction type="aim">0</direction>
46 <term>60-$rank*20</term>
47 </changeDirection>
48 <wait>5</wait>
49 </action>
50 </repeat>
51 </action>
52 </bullet>
53
54 </bulletml>