New example of a normal enemy pattern.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 07:49:55 +0000 (00:49 -0700)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 17 Mar 2010 07:49:55 +0000 (00:49 -0700)
examples/normal/threefire.xml [new file with mode: 0644]

diff --git a/examples/normal/threefire.xml b/examples/normal/threefire.xml
new file mode 100644 (file)
index 0000000..d6a35b0
--- /dev/null
@@ -0,0 +1,66 @@
+<?xml version="1.0" ?>\r
+<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">\r
+\r
+<bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">\r
+  <action label="top">\r
+    <actionRef label="threefire">\r
+      <param>10 + 20 * $rank * $rand</param>\r
+    </actionRef>\r
+  </action>\r
+\r
+  <action label="threefire">\r
+    <fire>\r
+      <bulletRef label="dropper">\r
+       <param>$1</param>\r
+       <param>0</param>\r
+      </bulletRef>\r
+      <direction>0</direction>\r
+    </fire>\r
+    <fire>\r
+      <bulletRef label="dropper">\r
+       <param>$1</param>\r
+       <param>-90</param>\r
+      </bulletRef>\r
+      <direction type="sequence">-90</direction>\r
+    </fire>\r
+    <fire>\r
+      <bulletRef label="dropper">\r
+       <param>$1</param>\r
+       <param>90</param>\r
+      </bulletRef>\r
+      <direction type="sequence">180</direction>\r
+    </fire>\r
+  </action>\r
+\r
+  <bullet label="dropper">\r
+    <speed>1</speed>\r
+    <action>\r
+      <wait>3</wait>\r
+      <changeSpeed>\r
+       <term>1</term>\r
+       <speed>0</speed>\r
+      </changeSpeed>\r
+      <changeDirection>\r
+       <term>1</term>\r
+       <direction type="relative">-$2</direction>\r
+      </changeDirection>\r
+      <wait>1</wait>\r
+      <repeat>\r
+       <times>$1</times>\r
+       <action>\r
+         <fire>\r
+           <bullet>\r
+             <direction type="relative">0</direction>\r
+             <speed type="absolute">1</speed>\r
+           </bullet>\r
+         </fire>\r
+         <wait>4</wait>\r
+       </action>\r
+      </repeat>\r
+      <changeSpeed>\r
+       <term>1</term>\r
+       <speed>1</speed>\r
+      </changeSpeed>\r
+    </action>\r
+  </bullet>\r
+</bulletml>\r