<!-- ぐるぐる回るやつ. -->
<?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>
	<wait>10</wait>
	
	<repeat>
		<times>6</times>
		<actionRef label="main_seq_r"></actionRef>
	</repeat>
	<wait>3</wait>
	
	<repeat>
		<times>7</times>
		<actionRef label="main_seq_r"></actionRef>
	</repeat>
	<wait>3</wait>
	
	<repeat>
		<times>7</times>
		<actionRef label="main_seq_r"></actionRef>
	</repeat>
	<wait>3</wait>
	
	<repeat>
		<times>7</times>
		<actionRef label="main_seq_r"></actionRef>
	</repeat>
	<wait>20</wait>
	
	<repeat>
		<times>45 * $rank - 1</times>
		<actionRef label="main_seq"></actionRef>
	</repeat>
	<wait>5</wait>
	
	<repeat>
		<times>12</times>
		<actionRef label="main_seq_r"></actionRef>
	</repeat>
	<wait>5</wait>
	
	<repeat>
		<times>12</times>
		<actionRef label="main_seq_r"></actionRef>
	</repeat>
	<wait>5</wait>

	<repeat>
		<times>12 * $rank</times>
		<actionRef label="main_seq"></actionRef>
	</repeat>
	<wait>1</wait>
	
	<repeat>
		<times>12 * $rank</times>
		<actionRef label="main_seq_r"></actionRef>
	</repeat>
  <vanish/>
</action>

<!-- 上に発射 -->
<action label="main_top">
      <fire>
        <direction type="absolute">180</direction>
        <speed>2</speed>
        <bulletRef label="change_dir"></bulletRef>
      </fire>
</action>

<!-- 前の弾から15度ずらして撃つ -->
<action label="main_seq">
      <fire>
        <direction type="sequence">360 / (60 * $rank)</direction>
        <speed>2</speed>
        <bulletRef label="change_dir"></bulletRef>
      </fire>
</action>
<!-- 前の弾から-15度ずらして撃つ -->
<action label="main_seq_r">
      <fire>
        <direction type="sequence">-15</direction>
        <speed>1.5</speed>
        <bulletRef label="change_dir_r"></bulletRef>
      </fire>
</action>


<!-- 角度をかえていく -->
<bullet label="change_dir">
  <action>
	<changeDirection>
		<direction type="sequence">5</direction>
		<term>90</term>
	</changeDirection>
  </action>
</bullet>
<!-- 角度をかえていく -->
<bullet label="change_dir_r">
  <action>
	<changeDirection>
		<direction type="sequence">-5</direction>
		<term>90</term>
	</changeDirection>
  </action>
</bullet>

</bulletml>
