<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "../barrage.dtd">

<barrage>

<barrageInfo>
  <filename>Ketsui_4Boss_pack</filename>
  <group>user</group>
  <title>シンデレラアンバー追い駆け2態</title>
  <description>ケツイ4ボスの第1形態の1つと発狂。</description>
  <capture>執念のコンコン避け。</capture>
</barrageInfo>

<barrageStyle>
  <bulletLanguage name="bulletml"/>
</barrageStyle>

<bulletml type="vertical" xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top">
	<changeDirection>
		<direction type="absolute">180</direction>
		<term>1</term>
	</changeDirection>
	<wait>1</wait>
	<changeSpeed>
		<speed type="absolute">2</speed>
		<term>1</term>
	</changeSpeed>
	<wait>25</wait>
	<changeSpeed>
		<speed type="absolute">0</speed>
		<term>10</term>
	</changeSpeed>
	<wait>30</wait>
	<!-- 1 -->
	<fire>
		<direction type="absolute">0</direction>
		<speed type="absolute">3</speed>
		<bulletRef label="randomShooter"/>
	</fire>
	<repeat>
		<times>7</times>
		<action>
			<fire>
				<direction type="sequence">45</direction>
				<speed type="absolute">3</speed>
				<bulletRef label="randomShooter"/>
			</fire>
		</action>
	</repeat>
	
	<wait>60</wait>
	
	<repeat>
		<times>200</times>
		<action>
			<fire>
				<direction type="aim">2</direction>
				<speed type="absolute">2</speed>
				<bullet/>
			</fire>
			<fire>
				<direction type="aim">0</direction>
				<speed type="absolute">2</speed>
				<bullet/>
			</fire>
			<fire>
				<direction type="aim">-2</direction>
				<speed type="absolute">2</speed>
				<bullet/>
			</fire>
			<wait>2</wait>
		</action>
	</repeat>
	
	<wait>300</wait>
	<!-- F -->
	<fire>
		<direction type="absolute">0</direction>
		<speed type="absolute">0.0001</speed>
		<bulletRef label="aimShooter"/>
	</fire>
	<wait>120</wait>
	<!-- 31*3=93 -->
	<repeat>
		<times>3</times>
		<actionRef label="aimOddway">
			<param>3</param>
			<param>$rank*3</param>
		</actionRef>
	</repeat>
	<!-- 31*3=93 -->
	<repeat>
		<times>3</times>
		<actionRef label="aimOddway">
			<param>5</param>
			<param>$rank*3</param>
		</actionRef>
	</repeat>
	<!-- 31*20=620 -->
	<repeat>
		<times>20</times>
		<actionRef label="aimOddway">
			<param>7</param>
			<param>$rank*3</param>
		</actionRef>
	</repeat>
	
	<wait>120</wait>
</action>

<bullet label="randomShooter">
	<action>
		<repeat>
			<times>100</times>
			<action>
				<wait>10-$rank*7</wait>
				<fire>
					<direction type="absolute">$rand*360</direction>
					<speed type="absolute">0.001</speed>
					<bulletRef label="accelBullet"/>
				</fire>
			</action>
		</repeat>
	</action>
</bullet>

<bullet label="accelBullet">
	<action>
		<wait>120</wait>
		<changeSpeed>
			<speed type="absolute">0.1</speed>
			<term>120</term>
		</changeSpeed>
		<wait>400</wait>
		<changeSpeed>
			<speed type="absolute">1</speed>
			<term>60</term>
		</changeSpeed>
	</action>
</bullet>

<!-- time=2*10+2*200+2*250=920 -->
<bullet label="aimShooter">
	<action>
		<repeat>
			<times>10</times>
			<action>
				<fire>
					<direction type="absolute">90</direction>
					<speed type="absolute">0.5</speed>
					<bulletRef label="aimBullet"/>
				</fire>
				<fire>
					<direction type="sequence">180</direction>
					<speed type="absolute">0.5</speed>
					<bulletRef label="aimBullet"/>
				</fire>
				<wait>2</wait>
			</action>
		</repeat>
		
		<repeat>
			<times>230</times>
			<action>
				<fire>
					<direction type="sequence">3</direction>
					<speed type="sequence">$rank*0.005</speed>
					<bulletRef label="aimBullet"/>
				</fire>
				<fire>
					<direction type="sequence">180</direction>
					<speed type="sequence">0</speed>
					<bulletRef label="aimBullet"/>
				</fire>
				<wait>2</wait>
			</action>
		</repeat>
		
		<repeat>
			<times>220</times>
			<action>
				<fire>
					<direction type="sequence">3</direction>
					<speed type="sequence">0.0</speed>
					<bulletRef label="aimBullet"/>
				</fire>
				<fire>
					<direction type="sequence">180</direction>
					<speed type="sequence">0</speed>
					<bulletRef label="aimBullet"/>
				</fire>
				<wait>2</wait>
			</action>
		</repeat>
		<vanish/>
	</action>
</bullet>

<bullet label="aimBullet">
	<action>
		<wait>30</wait>
		<changeSpeed>
			<speed type="absolute">0.0001</speed>
			<term>30</term>
		</changeSpeed>
		<wait>40</wait>
		<changeDirection>
			<direction type="aim">0</direction>
			<term>1</term>
		</changeDirection>
		<wait>1</wait>
		<changeSpeed>
			<speed type="absolute">1.5+$rank</speed>
			<term>30</term>
		</changeSpeed>
	</action>
</bullet>

<!-- $1=way, $2=seq dir ; time=4*4+15=31-->
<action label="aimOddway">
	<fire>
		<direction type="aim">($1/2-0.5)*(40-$rank*20)-$2*2.5</direction>
		<speed type="absolute">1</speed>
		<bullet><action><vanish/></action></bullet>
	</fire>
	<repeat>
		<times>4</times>
		<action>
			<fire>
				<direction type="sequence">-($1-1)*(40-$rank*20)+$2</direction>
				<speed type="absolute">1.5</speed>
				<bullet/>
			</fire>
			<repeat>
				<times>$1-1</times>
				<action>
					<fire>
						<direction type="sequence">(40-$rank*20)</direction>
						<speed type="absolute">1.5</speed>
						<bullet/>
					</fire>
				</action>
			</repeat>
			<wait>4</wait>
		</action>
	</repeat>
	<wait>15</wait>
</action>

</bulletml>

</barrage>