<!-- 同時に各種方向にいっぱい弾を撃つ.-->

<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">
<bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top">

  <actionRef label="main_top"></actionRef>
  <repeat>
    <times>60 * $rank - 1</times>
    <actionRef label="main_seq"></actionRef>
  </repeat>

  <actionRef label="main_top2"></actionRef>
  <repeat>
    <times>30 * $rank - 1</times>
    <actionRef label="main_seq2"></actionRef>
  </repeat>

  <vanish/>
</action>

<!-- 上に4発発射 -->
<action label="main_top">
      <fire>
        <direction type="absolute">0</direction>
        <speed>14</speed>
        <bulletRef label="down1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>13.5</speed>
        <bulletRef label="down2"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>13</speed>
        <bulletRef label="down3"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>12.5</speed>
        <bulletRef label="down4"></bulletRef>
      </fire>
</action>

<!-- 上に4発発射 -->
<action label="main_top2">
      <fire>
        <direction type="sequence">0</direction>
        <speed>10</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">360.0 / (30.0 * $rank * 3.0)</direction>
        <speed>17</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>3</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">- 360.0 / (30.0 * $rank * 3.0)</direction>
        <speed>10</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
</action>


<!-- 前の弾からずらして4発撃つ -->
<action label="main_seq">
      <fire>
        <direction type="sequence">360.0 / (60.0 * $rank)</direction>
        <speed>14</speed>
        <bulletRef label="down1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>13.5</speed>
        <bulletRef label="down2"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>13</speed>
        <bulletRef label="down3"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>12.5</speed>
        <bulletRef label="down4"></bulletRef>
      </fire>
</action>

<!-- 前の弾からずらして4発撃つ -->
<action label="main_seq2">
      <fire>
        <direction type="sequence">360.0 / (30.0 * $rank)</direction>
        <speed>10</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">360.0 / (30.0 * $rank * 2.0)</direction>
        <speed>17</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">0</direction>
        <speed>3</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
      <fire>
        <direction type="sequence">- 360.0 / (30.0 * $rank * 2.0)</direction>
        <speed>10</speed>
        <bulletRef label="down1_1"></bulletRef>
      </fire>
</action>

<!-- 減速する弾を発射 -->
<bullet label="down1">
  <action>
      <changeSpeed>
       <speed>1.9</speed>
       <term>10</term>
    </changeSpeed>
  </action>
</bullet>
<bullet label="down2">
  <action>
      <changeSpeed>
       <speed>1.7</speed>
       <term>10</term>
    </changeSpeed>
  </action>
</bullet>
<bullet label="down3">
  <action>
      <changeSpeed>
       <speed>1.5</speed>
       <term>10</term>
    </changeSpeed>
  </action>
</bullet>
<bullet label="down4">
  <action>
      <changeSpeed>
       <speed>1.3</speed>
       <term>10</term>
    </changeSpeed>
  </action>
</bullet>

<!-- 減速する弾を発射 -->
<bullet label="down1_1">
  <action>
      <changeSpeed>
       <speed>1.5</speed>
       <term>10</term>
    </changeSpeed>
  </action>
</bullet>

</bulletml>
