<?xml version="1.0" encoding="shift-jis"?>
<exbulletml>

<!-- ********************************************************************* -->
<!-- *** 中ボス戦はここから始ま					*** -->
<!-- *** stage5B中ボス normal					   *** -->

<action label="stage5B_middle_boss">

	<!-- *** 第 N 形態 *** -->
	<global name="boss_state">1</global>
	
	<!-- *** ボスの初期ライフ *** -->
	<global name="boss_life">2</global>
	
	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="enemy_create_middle_boss"><param>240</param><param>-12</param></createRef>


	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stage5middle"></createRef>

	<!-- *** ボス戦が終わるまで待機		  *** -->	
	<!-- *** 最終形態が終わると Lock 10 が開放される *** -->
	<setLock><num>10</num></setLock>
	<waitLock><num>10</num></waitLock>

</action>



<!-- ********************************************************************* -->

<!-- *** 中ボス第 1 形態のボスオブジェクト作成			 *** -->
<!-- ***							       *** -->

<create label="enemy_create_middle_boss">

	<speed>4.5</speed>
	<direction type="absolute">155</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>1500</vital>
	<inv>40</inv>
	<score>170000</score>
	<prate>$__middle_boss_prate</prate>
	<enemyRef label="enemy_middle_boss"></enemyRef>

</create>

<create label="enemy_create_middle_boss2">

	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1700</vital>
	<inv>40</inv>
	<score>190000</score>
	<prate>$__middle_boss_prate2</prate>
	<enemyRef label="enemy_middle_boss"></enemyRef>

</create>

<create label="enemy_create_middle_boss3">

	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1800</vital>
	<inv>40</inv>
	<score>240000</score>
	<prate>$__middle_boss_prate3</prate>
	<enemyRef label="enemy_middle_boss"></enemyRef>

</create>

<create label="enemy_create_middle_boss_escape">

	<speed>0</speed>
	<direction type="absolute">-45</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<inv>1</inv>
	<score>0</score>
	<prate>0</prate>
	<enemyRef label="enemy_middle_boss_escape"></enemyRef>

</create>


<!-- ********************************************************************* -->
<!-- *** 中ボスオブジェクト					    *** -->
<enemy label="enemy_middle_boss">


	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<presentRef label="enemy_present_05_middle"></presentRef>

	<!-- *** VITAL ゲージはボスの子オブジェクトなのでここで作成 *** -->
	<createRef label="boss_vital_create"></createRef>

	<!-- *** 画面下のボス表示を作成 *** -->
	<createRef label="boss_underbar_create"></createRef>

	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage5B_middle_boss_01_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_middle_boss_01_action"></actionRef>

	</repeat>
	<repeat><times>$__boss_state-eq2</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>

		<revengeRef label="stage5B_middle_boss_02_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_middle_boss_02_action"></actionRef>
	</repeat>

	<repeat><times>$__boss_state-eq3</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>

		<revengeRef label="stage5B_middle_boss_03_revenge"></revengeRef>
		<global name="timer">15</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_middle_boss_03_action"></actionRef>
	</repeat>
</enemy>

<enemy label="enemy_middle_boss_escape">

	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<presentRef label="enemy_present_05_middle"></presentRef>

	<action>
		<changeSpeed>
			<speed type="absolute">3</speed><term>45</term>
		</changeSpeed>
	</action>

</enemy>


<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第１形態　				*** -->
<action  label="stage5B_middle_boss_01_action">

	<wait>30</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>

	<wait>19</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->
<repeat><times>4</times>
	<!-- No1 ウィルスばらまき -->
	<repeat><times>2</times>
		<eval name="bul_sp">2.2</eval>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">1.85</eval>
		<fireRef label="middle_boss_fire_01_s"><param>38</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">1.5</eval>
		<fireRef label="middle_boss_fire_01_s"><param>38</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">1.15</eval>
		<fireRef label="middle_boss_fire_01_s"><param>38</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">0.8</eval>
		<fireRef label="middle_boss_fire_01_s"><param>38</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<wait>54</wait>

		<eval name="bul_sp">2.2</eval>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>4</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">1.85</eval>
		<fireRef label="middle_boss_fire_01_s"><param>22</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">1.5</eval>
		<fireRef label="middle_boss_fire_01_s"><param>22</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">1.15</eval>
		<fireRef label="middle_boss_fire_01_s"><param>22</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>5</param><param>2</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<eval name="bul_sp">0.8</eval>
		<fireRef label="middle_boss_fire_01_s"><param>22</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>5</param><param>255</param><param>255</param><param>$bul_sp</param></fireRef>
		</repeat>
		<wait>2</wait>

		<wait>54</wait>

	</repeat>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<wait>90-3</wait>

	<!-- No2 ジャンプto direction 180 -->
	<changeDirection>
		<direction type="absolute">0</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.8</speed><term>10</term>
	</changeSpeed>
	<wait>20</wait>

	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>

	<eval name="bul_sp">1</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_05_ab"><param>0</param><param>$bul_sp</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
	</repeat>
	<repeat><times>2</times>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
		</repeat>
	</repeat>

	<repeat><times>6</times>
		<wait>1</wait>
		<evaladd name="bul_sp">0.25</evaladd>
		<fireRef label="middle_boss_fire_05_ab"><param>0</param><param>$bul_sp</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
		</repeat>
		<repeat><times>2</times>
			<wait>1</wait>
			<repeat><times>8</times>
				<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
			</repeat>
		</repeat>
	</repeat>
	<!-- wait 20 -->

	<changeDirection>
		<direction type="absolute">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">4.5</speed><term>40</term>
	</changeSpeed>
	<wait>90</wait>

	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>

	<wait>19</wait>

	<eval name="bul_sp">1</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_03_ab"><param>-99</param><param>$bul_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_03_s"><param>22</param><param>$bul_sp</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_03_s"><param>22</param><param>$bul_sp</param></fireRef>
	</repeat>

	<repeat><times>6</times>
	<wait>1</wait>
	<evaladd name="bul_sp">0.2</evaladd>
	<fireRef label="middle_boss_fire_03_ab"><param>-99</param><param>$bul_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_03_s"><param>22</param><param>$bul_sp</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_03_s"><param>22</param><param>$bul_sp</param></fireRef>
	</repeat>
	</repeat>

	<changeDirection>
		<direction type="absolute">0</direction><term>1</term>
	</changeDirection>

	<changeSpeed>
		<speed type="absolute">4.5</speed><term>40</term>
	</changeSpeed>


	<wait>25</wait>

	<eval name="bul_sp">1</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_04_ab"><param>-150</param><param>$bul_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_04_s"><param>25</param><param>$bul_sp</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_04_ab"><param>50</param><param>$bul_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_04_s"><param>25</param><param>$bul_sp</param></fireRef>
	</repeat>

	<repeat><times>6</times>
	<wait>1</wait>
	<evaladd name="bul_sp">0.2</evaladd>
	<fireRef label="middle_boss_fire_04_ab"><param>-150</param><param>$bul_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_04_s"><param>25</param><param>$bul_sp</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_04_ab"><param>50</param><param>$bul_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_04_s"><param>25</param><param>$bul_sp</param></fireRef>
	</repeat>
	</repeat>
	<!-- wait 13 -->

	<wait>73-38-20</wait>
	<eval name="bul_sp">1</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_05_ab"><param>0</param><param>$bul_sp</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
	</repeat>
	<repeat><times>2</times>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
		</repeat>
	</repeat>

	<repeat><times>6</times>
		<wait>1</wait>
		<evaladd name="bul_sp">0.2</evaladd>
		<fireRef label="middle_boss_fire_05_ab"><param>0</param><param>$bul_sp</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
		</repeat>
		<repeat><times>2</times>
			<wait>1</wait>
			<repeat><times>8</times>
				<fireRef label="middle_boss_fire_05_s"><param>15</param><param>$bul_sp</param></fireRef>
			</repeat>
		</repeat>
	</repeat>
	<!-- wait 21 -->

	<changeSpeed>
		<speed type="absolute">0</speed><term>23</term>
	</changeSpeed>
	<wait>60-3</wait>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<!-- No3 レーザー+丸弾 -->

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06"><param>0</param><param>2.2</param><param>2</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>0</param></fireRef>
	</repeat>

	<wait>10-4</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_laser"><param>0</param><param>2.3</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>1</param><param>2.2</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-2</param><param>2.2</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>1</param><param>2.1</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>3</param><param>2.0</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-6</param><param>2.0</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>3</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>5</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-10</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>5</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>7</param><param>1.6</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-14</param><param>1.6</param></fireRef>
	<wait>1</wait>

	<wait>10-4</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_laser_s"><param>7</param><param>2.3</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>9</param><param>2.2</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-18</param><param>2.2</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>9</param><param>2.1</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>11</param><param>2.0</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-22</param><param>2.0</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>11</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>13</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-26</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>13</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>15</param><param>1.6</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-30</param><param>1.6</param></fireRef>
	<wait>1</wait>

	<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_06_s"><param>8</param><param>2.2</param><param>2</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>1</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>0</param></fireRef>
		</repeat>
		<wait>20</wait>
	</repeat>


	<repeat><times>3</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>8</param><param>2.2</param><param>2</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>0</param></fireRef>
	</repeat>

	<wait>10-4</wait>	
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_laser"><param>0</param><param>2.3</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>1</param><param>2.2</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-2</param><param>2.2</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>1</param><param>2.1</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>3</param><param>2.0</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-6</param><param>2.0</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>3</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>5</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-10</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>5</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>7</param><param>1.6</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-14</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<wait>10-4</wait>	
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_laser_s"><param>7</param><param>2.3</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>9</param><param>2.2</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-18</param><param>2.2</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>9</param><param>2.1</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>11</param><param>2.0</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-22</param><param>2.0</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>11</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>13</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-26</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_laser_s"><param>13</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>15</param><param>1.6</param></fireRef>
	<fireRef label="middle_boss_fire_laser_s"><param>-30</param><param>1.6</param></fireRef>
	<wait>1</wait>

	<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_06_s"><param>8</param><param>2.2</param><param>2</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>1</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_06_s"><param>15</param><param>2.2</param><param>0</param></fireRef>
		</repeat>
		<wait>20</wait>
	</repeat>
	</repeat>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<wait>55-3</wait>
</repeat>

<wait>60</wait>
<targetRevenge label="enemy_middle_boss"></targetRevenge>

</action>


<fire label="middle_boss_fire_01">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_01_ab">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="middle_boss_bullet_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_01_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_02">
	<speed>2</speed>
	<direction type="absolute">0</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_02"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="middle_boss_fire_02_s">
	<speed>2</speed>
	<direction type="sequence">120</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_02"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="middle_boss_fire_03_ab">
	<speed>0.5</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_03"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_03_s">
	<speed>0.5</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_03"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_04_ab">
	<speed>0.5</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_04"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_04_s">
	<speed>0.5</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_04"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_05_ab">
	<speed>0.5</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_05"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_05_s">
	<speed>0.5</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_05"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_06_ab">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_06"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="middle_boss_fire_06_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_06"><param>$2</param><param>$3</param></bulletRef>
</fire>


<bullet label="middle_boss_bullet_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>9</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>$1</red><green>$2</green><blue>$3</blue>
	</img>
	<rotateImg>
		<direction>1.8</direction><term>-1</term>
	</rotateImg>

	<action>
		<fireRef label="middle_boss_fire_02"><param>$1</param><param>$2</param><param>$3</param><param>10</param></fireRef>
		<fireRef label="middle_boss_fire_02_s"><param>$1</param><param>$2</param><param>$3</param><param>10</param></fireRef>
		<fireRef label="middle_boss_fire_02_s"><param>$1</param><param>$2</param><param>$3</param><param>10</param></fireRef>

		<changeSpeed>
			<speed type="absolute">$4</speed><term>8</term>
		</changeSpeed>

		<wait>120</wait>

		<changeSpeed>
			<speed type="absolute">2</speed><term>45</term>
		</changeSpeed>

	</action>

</bullet>

<bullet label="middle_boss_bullet_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<child>1</child>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>12</width><height>12</height>
		<alpha>255</alpha><red>$1</red><green>$2</green><blue>$3</blue>
	</img>


	<action>
		<changeSpeed>
			<speed type="absolute">0.04*$4</speed><term>$4</term>
		</changeSpeed>
		<wait>$4+1</wait>

		<changeDirection>
			<direction type="relative">90</direction><term>1</term>
		</changeDirection>
		<wait>1</wait>

		<repeat><times>-1</times>
			<changeDirection>
				<direction type="relative">360</direction><term>200</term>
			</changeDirection>
			<wait>200</wait>
		</repeat>
	</action>

</bullet>

<bullet label="middle_boss_bullet_03">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>

	<img type="normal">
		<file type="dds">bullet</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<action>
		<wait>24</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>20</term>
		</changeSpeed>
	</action>
</bullet>

<bullet label="middle_boss_bullet_04">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>

	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*6</left><top>0</top><right>32*7</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<action>
		<wait>12</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>20</term>
		</changeSpeed>
	</action>
</bullet>

<bullet label="middle_boss_bullet_05">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>

	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*3</left><top>0</top><right>32*4</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<action>
		<wait>24</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>20</term>
		</changeSpeed>
	</action>
</bullet>

<bullet label="middle_boss_bullet_06">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>255</red><green>202</green><blue>2</blue>
	</img>

	<action>
		<wait>1+$2</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>15</term>
		</changeSpeed>

	</action>

</bullet>


<!-- ********** 中ボス用レーザー  ************  -->
<fire label="middle_boss_fire_laser">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_fire_laser_bullet"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_laser_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_fire_laser_bullet"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss_fire_laser_bullet">
	<collision type="sync"><left>-2</left><top>-7</top><right>2</right><bottom>7</bottom></collision>
	
	<img type="add">
		<file type="dds">laser32xg</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>4</height>
		<alpha>255</alpha><red>255</red><green>240</green><blue>240</blue>
	</img>	
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeImgSize>
			<width>7</width><height>17</height><term>3</term>
		</changeImgSize>
		<wait>21</wait>
		<changeSpeed>
			<speed>$1</speed><term>1</term>
		</changeSpeed>
	</action>

</bullet>


<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第２形態　				*** -->

<action  label="stage5B_middle_boss_02_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>150</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->

	<eval name="wait_time">2</eval>

	<createRef label="stage5B_middleboss_create_3_01"><param>$wait_time</param></createRef>
	<repeat><times>5</times>
		<createRef label="stage5B_middleboss_create_3_01_s"><param>$wait_time</param></createRef>
	</repeat>
	<wait>1</wait>
	<evaladd name="wait_time">-1</evaladd>
	<repeat><times>6</times>
		<createRef label="stage5B_middleboss_create_3_01_s"><param>$wait_time</param></createRef>
	</repeat>

	<repeat><times>10</times>
		<wait>360-3</wait>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->
	</repeat>

<wait>60</wait>
<targetRevenge label="enemy_middle_boss"></targetRevenge>

</action>

<!-- 白魔法陣 -->
<create label="stage5B_middleboss_create_3_01">
	<speed>0</speed>
	<direction type="aim">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_middleboss_enemy_3_01"><param>$1</param></enemyRef>
</create>

<create label="stage5B_middleboss_create_3_01_s">
	<speed>0</speed>
	<direction type="sequence">30</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_middleboss_enemy_3_01"><param>$1</param></enemyRef>
</create>

<enemy label="stage5B_middleboss_enemy_3_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>
	<img type="normal">
		<file type="dds">s_mahoujin2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<wait>$1</wait>

		<changeSpeed>
			<speed type="absolute">4</speed><term>1</term>
		</changeSpeed>


		<changeDirection>
			<direction type="relative">90</direction><term>23</term>
		</changeDirection>
		<wait>22</wait>
		<changeDirection>
			<direction type="relative">50</direction><term>1</term>
		</changeDirection>
		<wait>1</wait>
		<eval name="bul_dir">0</eval>

	<repeat><times>6</times>

		<repeat><times>3</times>
			<eval name="bul_sp">1.0</eval>
			<changeDirection>
				<direction type="relative">360</direction><term>120</term>
			</changeDirection>
			<repeat><times>4</times>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<repeat><times>10</times>
				<fireRef label="middle_boss_fire_3_01"><param>$bul_dir</param><param>$bul_sp</param></fireRef>
				<wait>1</wait>
				<evaladd name="bul_dir">1</evaladd>
				<wait>1</wait>
				<evaladd name="bul_sp">0.04</evaladd>
				<wait>1</wait>
			</repeat>
			</repeat>
		</repeat>

		<repeat><times>2</times>
			<eval name="bul_sp">2.1</eval>
			<changeDirection>
				<direction type="relative">360</direction><term>120</term>
			</changeDirection>
			<repeat><times>4</times>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_3_02"><param>$bul_dir</param><param>$bul_sp</param></fireRef>
				<wait>3</wait>
				<evaladd name="bul_dir">4</evaladd>
			</repeat>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_3_02"><param>$bul_dir</param><param>$bul_sp</param></fireRef>
				<wait>3</wait>
				<evaladd name="bul_dir">-3</evaladd>
			</repeat>
			</repeat>
		</repeat>

	</repeat>

	<changeDirection>
		<direction type="relative">360</direction><term>120</term>
	</changeDirection>
	<wait>120</wait>

	</action>
</enemy>


<fire label="middle_boss_fire_3_01">
	<speed>0.3</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_3_01"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_3_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>


	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>
	</action>

</bullet>

<fire label="middle_boss_fire_3_02">
	<speed>0.3</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_3_02"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_3_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>8</width><height>8</height>
		<alpha>255</alpha><red>255</red><green>2</green><blue>2</blue>
	</img>


	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>
	</action>

</bullet>



<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第３形態　                                *** -->
<!-- *** 　EnemyTensionCicuit　                                        *** -->
<action  label="stage5B_middle_boss_03_action">
<!-- 魔方陣作成 -->
	<wait>10</wait>
	<actionRef label="mahoujin_middle"><param>190</param><param>195</param><param>195</param><param>5</param></actionRef>
	<wait>2</wait>

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>150</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="ttc_start_check">$_ttc_frame</global>
	<global name="miss_start">$_misscount</global>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->

	<createRef label="stage5B_boss_create_2_01"><param>2</param><param>45</param><param>60</param><param>1</param></createRef>
	<createRef label="stage5B_boss_create_2_02"><param>2</param><param>-45</param><param>60</param><param>2</param></createRef>
	<createRef label="stage5B_boss_create_2_03"><param>2</param><param>135</param><param>60</param><param>3</param></createRef>
	<createRef label="stage5B_boss_create_2_04"><param>2</param><param>-135</param><param>60</param><param>4</param></createRef>

<repeat><times>15</times>
	<wait>57</wait>

	<changeDirection>
		<direction type="absolute">-80+160*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.7</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>

	<eval name="bul_sp">2.3</eval>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_08"><param>0</param><param>$bul_sp</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
	</repeat>
	<repeat><times>6</times>
		<wait>2</wait>
		<evaladd name="bul_sp">-0.1</evaladd>
		<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
		</repeat>
	</repeat>

	<wait>60-12</wait>

	<eval name="bul_sp">2.3</eval>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_08"><param>0</param><param>$bul_sp</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
	</repeat>
	<repeat><times>6</times>
		<wait>2</wait>
		<evaladd name="bul_sp">-0.1</evaladd>
		<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
		</repeat>
	</repeat>


	<changeDirection>
		<direction type="relative">-180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.7</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>

	<eval name="bul_sp">2.4</eval>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_08"><param>0</param><param>$bul_sp</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
	</repeat>
	<repeat><times>6</times>
		<wait>2</wait>
		<evaladd name="bul_sp">-0.1</evaladd>
		<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_08_s"><param>60</param><param>$bul_sp</param></fireRef>
		</repeat>
	</repeat>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>


<wait>60</wait>
<targetRevenge label="enemy_middle_boss"></targetRevenge>

</action>


<!-- 赤魔法陣 -->
<create label="stage5B_boss_create_2_01">
	<speed>$1</speed>
	<direction type="absolute">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_enemy_2_01"><param>$3</param><param>$4</param></enemyRef>
</create>

<enemy label="stage5B_boss_enemy_2_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>
	<img type="normal">
		<file type="dds">s_mahoujin</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10+$2</wait>

			<repeat><times>15</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_ab"><param>0</param><param>255</param><param>5</param><param>2</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>255</param><param>5</param><param>2</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
		<repeat><times>50</times>
			<repeat><times>10</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_ab"><param>0</param><param>255</param><param>5</param><param>2</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>255</param><param>5</param><param>2</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
			
			<repeat><times>20</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_s"><param>66</param><param>255</param><param>5</param><param>2</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>255</param><param>5</param><param>2</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
		</repeat>

	</action>

</enemy>

<!-- 黄魔法陣 -->
<create label="stage5B_boss_create_2_02">
	<speed>$1</speed>
	<direction type="absolute">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_enemy_2_02"><param>$3</param><param>$4</param></enemyRef>
</create>

<enemy label="stage5B_boss_enemy_2_02">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>

	<img type="normal">
		<file type="dds">s_mahoujin6</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10+$2</wait>

			<repeat><times>20</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_ab"><param>0</param><param>255</param><param>205</param><param>2</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>255</param><param>205</param><param>2</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
		<repeat><times>50</times>
			<repeat><times>10</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_ab"><param>0</param><param>255</param><param>205</param><param>2</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>255</param><param>205</param><param>2</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
			
			<repeat><times>20</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_s"><param>60-11</param><param>255</param><param>205</param><param>2</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>255</param><param>205</param><param>2</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
		</repeat>

	</action>

</enemy>

<!-- 青魔法陣 -->
<create label="stage5B_boss_create_2_03">
	<speed>$1</speed>
	<direction type="absolute">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_enemy_2_03"><param>$3</param><param>$4</param></enemyRef>
</create>

<enemy label="stage5B_boss_enemy_2_03">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>

	<img type="normal">
		<file type="dds">s_mahoujin5</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10+$2</wait>

			<repeat><times>10</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_ab"><param>0</param><param>2</param><param>105</param><param>255</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>2</param><param>105</param><param>255</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
		<repeat><times>50</times>
			<repeat><times>10</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_ab"><param>0</param><param>2</param><param>105</param><param>255</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>2</param><param>105</param><param>255</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
			
			<repeat><times>20</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_s"><param>60+8</param><param>2</param><param>105</param><param>255</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>2</param><param>105</param><param>255</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
		</repeat>

	</action>

</enemy>

<!-- 緑魔法陣 -->
<create label="stage5B_boss_create_2_04">
	<speed>$1</speed>
	<direction type="absolute">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_enemy_2_04"><param>$3</param><param>$4</param></enemyRef>
</create>

<enemy label="stage5B_boss_enemy_2_04">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>

	<img type="normal">
		<file type="dds">s_mahoujin3</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10+$2</wait>

		<repeat><times>50</times>
			<repeat><times>10</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_ab"><param>0</param><param>2</param><param>255</param><param>5</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>2</param><param>255</param><param>5</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
			
			<repeat><times>20</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_07_s"><param>60-14</param><param>2</param><param>255</param><param>5</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="middle_boss_fire_07_s"><param>60</param><param>2</param><param>255</param><param>5</param></fireRef>
			</repeat>
			<wait>10</wait>
			</repeat>
		</repeat>

	</action>

</enemy>



<!-- 共通bullet -->
<fire label="middle_boss_fire_07_ab">
	<speed>1.9</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_07"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="middle_boss_fire_07_s">
	<speed>1.9</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_07"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_07">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>12</width><height>12</height>
		<alpha>255</alpha><red>$1</red><green>$2</green><blue>$3</blue>
	</img>

	<action>
	</action>

</bullet>


<fire label="middle_boss_fire_08">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_08"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_08_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_08"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_08">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>
	<img type="maskadd">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>2</red><green>6</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<action>

		<changeSpeed>
			<speed type="absolute">0</speed><term>30</term>
		</changeSpeed>

		<wait>30</wait>

		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>

	</action>

</bullet>




<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ						*** -->
<!-- ***							       *** -->

<revenge label="stage5B_middle_boss_01_revenge">

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	
	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフの減少 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>32-($_self_cx%9)*8</param><param>32-$_self_cx%64</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>26/2</param><param>$counter_e</param><param>1410</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>40</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="enemy_create_middle_boss2"><param>($_self_cy-gt250)+($_self_cy-gt350)</param></createRef>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>

<revenge label="stage5B_middle_boss_02_revenge">

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	
	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフの減少 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>32-($_self_cx%9)*8</param><param>32-$_self_cx%64</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>28/2</param><param>$counter_e</param><param>1360</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>40</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<!-- *** enemy tension形態のため、TTC発動、ミスのチェック *** -->
	<global name="ttc_start">$_ttc_frame</global>
	<createRef label="enemy_create_middle_boss3"></createRef>

	<!-- *** 終了 *** -->
	<vanish></vanish>	
	
</revenge>

<revenge label="stage5B_middle_boss_03_revenge">
	<eval name="localcounter">$_counter</eval>
	<actionRef label="bg_fadein_action"></actionRef>
	<!-- enemy tension形態のため、TTC発動、ミスのチェック *** -->
	<eval name="ttc_end">$_ttc_frame</eval>
	<eval name="miss_end">$_misscount</eval>

	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_2"></actionRef>

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>

	<!-- *** ライフ表示を消す *** -->
	<targetRevenge label="boss_life"></targetRevenge>
	<!-- *** ボス名称表示を消す *** -->
	<targetRevenge label="boss_name_stage5middle"></targetRevenge>

	<wait>1</wait>
	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>32-($_self_cx%9)*8</param><param>32-$_self_cx%64</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<!-- *** ETC Break 判定 -->
	<eval name="etb_num">(($ttc_end-$__ttc_start)-eq$localcounter)*($miss_end-eq$__miss_start)*($__ttc_start_check-gt240)</eval>
	<repeat><times>$etb_num-eq0</times>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>1</param><param>1</param></actionRef>
			<createRef label="item_create_01_etb"><param>-11000</param><param>370000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>32/2</param><param>$counter_e</param><param>1520</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>

	<!-- *** 逃げるボスの作成 *** -->
	<wait>1</wait>
	<createRef label="enemy_create_middle_boss_escape"></createRef>

	<!-- *** 終了 *** -->
	<vanish></vanish>	

	
</revenge>


<!-- ********************************************************************* -->
<!-- *** 中ボス戦２回目はここから始ま					*** -->
<!-- *** stage5B中ボス２回目 normal					   *** -->

<action label="stage5B_middle_boss2">

	<!-- *** 第 N 形態 *** -->
	<global name="boss_state">1</global>
	
	<!-- *** ボスの初期ライフ *** -->
	<global name="boss_life">0</global>
	
	<!-- *** enemy tension形態のため、TTC発動、ミスのチェック *** -->
	<global name="ttc_start">$_ttc_frame</global>

	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="enemy_create_middle_boss_2"><param>200</param><param>-12</param></createRef>

	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stage5middle"></createRef>

	<!-- *** ボス戦が終わるまで待機		  *** -->	
	<!-- *** 最終形態が終わると Lock 10 が開放される *** -->
	<setLock><num>10</num></setLock>
	<waitLock><num>10</num></waitLock>

</action>



<!-- ********************************************************************* -->

<!-- *** 中ボス２回目のボスオブジェクト作成			 *** -->
<!-- ***							       *** -->

<create label="enemy_create_middle_boss_2">

	<speed>4</speed>
	<direction type="absolute">135</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>1700</vital>
	<inv>40</inv>
	<score>300000</score>
	<prate>$__middle_boss_prate</prate>
	<enemyRef label="enemy_middle_boss2"></enemyRef>

</create>


<create label="enemy_create_middle_boss_escape2">

	<speed>0</speed>
	<direction type="absolute">-38</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<inv>1</inv>
	<score>0</score>
	<prate>0</prate>
	<enemyRef label="enemy_middle_boss_escape2"><param>$1</param></enemyRef>

</create>


<!-- ********************************************************************* -->
<!-- *** 中ボスオブジェクト					    *** -->
<enemy label="enemy_middle_boss2">


	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<presentRef label="enemy_present_05_middle"></presentRef>

	<!-- *** VITAL ゲージはボスの子オブジェクトなのでここで作成 *** -->
	<createRef label="boss_vital_create"></createRef>

	<!-- *** 画面下のボス表示を作成 *** -->
	<createRef label="boss_underbar_create"></createRef>

	<!-- *** 第 N 形態ごとのアクション *** -->
		<revengeRef label="stage5B_middle_boss_2_01_revenge"></revengeRef>
		<global name="timer">11</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_middle_boss_2_01_action"></actionRef>

</enemy>

<enemy label="enemy_middle_boss_escape2">

	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<presentRef label="enemy_present_05_middle"></presentRef>
	<revengeRef label="enemy_revenge_escape_middle"></revengeRef>

	<action>

	<changeTargetVolume label="bgm">
	<num>-800</num><term>180</term>
	</changeTargetVolume>
	<wait>10</wait>

	<wait>100+30*$1</wait>

	<!-- センターポイントへ移動 -->
		<changeSpeed>
			<speed type="absolute">1.5</speed><term>25</term>
		</changeSpeed>	

		<changePosition type="center">
			<x>320</x><y>165</y>
		</changePosition>
		<changeSpeed>
			<speed type="absolute">0</speed><term>2</term>
		</changeSpeed>

		<wait>32</wait>

	<!-- ボスダミー表示 -->
		<actionRef label="stage5B_boss_appear"></actionRef>	
		<wait>45</wait>
		<targetRevenge label="enemy_middle_boss_escape2"></targetRevenge>

	</action>

</enemy>

<revenge label="enemy_revenge_escape_middle">

	<!-- fade in action -->
	<actionRef label="bg_fadein_action"></actionRef>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_2"></actionRef>

	<wait>1</wait>

	<!-- *** ボス名称表示を消す *** -->
	<targetRevenge label="boss_name_stage5middle"></targetRevenge>

	<wait>2</wait>

	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>
	<createRef label="mbreak_dummy"></createRef>

	<!-- *** 終了 *** -->
	<vanish></vanish>	

</revenge>

<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション２回目　第１形態　                                *** -->
<!-- *** 　EnemyTensionCicuit　                                        *** -->
<action  label="stage5B_middle_boss_2_01_action">
<!-- 魔方陣作成 -->
	<wait>10</wait>
	<actionRef label="mahoujin_middle"><param>190</param><param>195</param><param>195</param><param>5</param></actionRef>
	<wait>2</wait>

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>160</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="ttc_start_check">$_ttc_frame</global>
	<global name="miss_start">$_misscount</global>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->

	<repeat><times>11</times>
		<changeSpeed>
			<speed type="absolute">0.6</speed><term>1</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">-70+($_player_cx%2)*140</direction><term>1</term>
		</changeDirection>	
		<wait>1</wait>

		<eval name="def_dir">$_player_cx%7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>40-$def_dir</param><param>15</param><param>215</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>20-$def_dir</param><param>12</param><param>200</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>10-$def_dir</param><param>10</param><param>190</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>5-$def_dir</param><param>8</param><param>205</param><param>2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>0-$def_dir</param><param>8</param><param>-180</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-5-$def_dir</param><param>8</param><param>-205</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-10-$def_dir</param><param>15</param><param>-190</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-20-$def_dir</param><param>12</param><param>-202</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-40-$def_dir</param><param>10</param><param>-218</param><param>3</param></fireRef>

		<wait>29</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>1</wait>

		<eval name="def_dir">$_player_cy%7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>40+$def_dir</param><param>15</param><param>225</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>20+$def_dir</param><param>12</param><param>205</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>10+$def_dir</param><param>10</param><param>193</param><param>2</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>5+$def_dir</param><param>7</param><param>215</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>0+$def_dir</param><param>7</param><param>180</param><param>3</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>-5+$def_dir</param><param>7</param><param>-215</param><param>2</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-10+$def_dir</param><param>15</param><param>-194</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-20+$def_dir</param><param>12</param><param>-208</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-40+$def_dir</param><param>10</param><param>-220</param><param>2</param></fireRef>

		<wait>29</wait>

		<changeSpeed>
			<speed type="absolute">0.6</speed><term>1</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">180</direction><term>1</term>
		</changeDirection>	
		<wait>1</wait>

		<eval name="def_dir">$_player_cx%7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>40-$def_dir</param><param>15</param><param>215</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>20-$def_dir</param><param>12</param><param>200</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>10-$def_dir</param><param>10</param><param>190</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>5-$def_dir</param><param>8</param><param>205</param><param>2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>0-$def_dir</param><param>8</param><param>-180</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-5-$def_dir</param><param>8</param><param>-205</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-10-$def_dir</param><param>15</param><param>-190</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-20-$def_dir</param><param>12</param><param>-202</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-40-$def_dir</param><param>10</param><param>-218</param><param>3</param></fireRef>

		<wait>29</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>1</wait>

		<eval name="def_dir">$_player_cy%7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>40+$def_dir</param><param>15</param><param>225</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>20+$def_dir</param><param>12</param><param>205</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>10+$def_dir</param><param>10</param><param>193</param><param>2</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>5+$def_dir</param><param>7</param><param>215</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>0+$def_dir</param><param>7</param><param>180</param><param>3</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>-5+$def_dir</param><param>7</param><param>-215</param><param>2</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-10+$def_dir</param><param>15</param><param>-194</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-20+$def_dir</param><param>12</param><param>-208</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-40+$def_dir</param><param>10</param><param>-220</param><param>2</param></fireRef>

		<wait>29</wait>

		<changeSpeed>
			<speed type="absolute">0.6</speed><term>1</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">-70+($_player_cx%2)*140</direction><term>1</term>
		</changeDirection>	
		<wait>1</wait>

		<eval name="def_dir">$_player_cx%7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>40-$def_dir</param><param>15</param><param>215</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>20-$def_dir</param><param>12</param><param>200</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>10-$def_dir</param><param>10</param><param>190</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>5-$def_dir</param><param>8</param><param>205</param><param>2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>0-$def_dir</param><param>8</param><param>-180</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-5-$def_dir</param><param>8</param><param>-205</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-10-$def_dir</param><param>15</param><param>-190</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-20-$def_dir</param><param>12</param><param>-202</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-40-$def_dir</param><param>10</param><param>-218</param><param>3</param></fireRef>

		<wait>29</wait>
		<changeDirection>
			<direction type="relative">180</direction><term>1</term>
		</changeDirection>
		<wait>1</wait>

		<eval name="def_dir">$_player_cy%7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>40+$def_dir</param><param>15</param><param>225</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>20+$def_dir</param><param>12</param><param>205</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>10+$def_dir</param><param>10</param><param>193</param><param>2</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>5+$def_dir</param><param>7</param><param>215</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>0+$def_dir</param><param>7</param><param>180</param><param>3</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2nd_dummy2"><param>-5+$def_dir</param><param>7</param><param>-215</param><param>2</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-10+$def_dir</param><param>15</param><param>-194</param><param>1</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-20+$def_dir</param><param>12</param><param>-208</param><param>2</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_2nd_dummy"><param>-40+$def_dir</param><param>10</param><param>-220</param><param>2</param></fireRef>

		<wait>29</wait>


		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->
	</repeat>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>

<wait>120</wait>
<targetRevenge label="enemy_middle_boss2"></targetRevenge>

</action>

<fire label="middle_boss_fire_2nd_dummy">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_dummy"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2nd_dummy">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>1</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<child>1</child>

	<action>
		<eval name="laser_width">12</eval>
		<fireRef label="middle_boss_fire_2nd_01_0"><param>$laser_width</param><param>$1</param><param>$2</param><param>$3</param><param>$4</param></fireRef>
		<wait>1</wait>
		<repeat><times>3</times>
			<evaladd name="laser_width">-1</evaladd>
			<fireRef label="middle_boss_fire_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></fireRef>
			<wait>1</wait>
			<evaladd name="laser_width">-1</evaladd>
			<createRef label="middle_boss_create_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></createRef>
			<wait>1</wait>
		</repeat>
			<evaladd name="laser_width">-1</evaladd>
			<createRef label="middle_boss_create_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></createRef>
			<wait>1</wait>
			<evaladd name="laser_width">-1</evaladd>
			<createRef label="middle_boss_create_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></createRef>
			<wait>1</wait>
		<setPosition type="center">
			<x>$_self_cx</x><y>2</y>
		</setPosition>
		<wait>360</wait>

		<vanish/>
	</action>

</bullet>

<fire label="middle_boss_fire_2nd_dummy2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_dummy2"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2nd_dummy2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>1</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<child>1</child>

	<action>
		<eval name="laser_width">12</eval>
		<fireRef label="middle_boss_fire_2nd_01_0_2"><param>$laser_width</param><param>$1</param><param>$2</param><param>$3</param><param>$4</param></fireRef>
		<wait>1</wait>
		<repeat><times>3</times>
			<evaladd name="laser_width">-1</evaladd>
			<fireRef label="middle_boss_fire_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></fireRef>
			<wait>1</wait>
			<evaladd name="laser_width">-1</evaladd>
			<createRef label="middle_boss_create_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></createRef>
			<wait>1</wait>
		</repeat>
			<evaladd name="laser_width">-1</evaladd>
			<createRef label="middle_boss_create_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></createRef>
			<wait>1</wait>
			<evaladd name="laser_width">-1</evaladd>
			<createRef label="middle_boss_create_2nd_01_s"><param>$laser_width</param><param>0</param><param>$2</param><param>$3</param></createRef>
			<wait>1</wait>
		<setPosition type="center">
			<x>$_self_cx</x><y>2</y>
		</setPosition>
		<wait>360</wait>

		<vanish/>
	</action>

</bullet>


<fire label="middle_boss_fire_2nd_01_0">
	<speed>2.4</speed>
	<direction type="absolute">$2</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_01_0"><param>$1</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2nd_01_0_2">
	<speed>2.4</speed>
	<direction type="absolute">$2</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_01_0_2"><param>$1</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2nd_01_0_s">
	<speed>2.4</speed>
	<direction type="sequence">$2</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_01_0"><param>$1</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2nd_01">
	<speed>2.4</speed>
	<direction type="absolute">$2</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_01"><param>$1</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2nd_01_s">
	<speed>2.4</speed>
	<direction type="sequence">$2</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_01"><param>$1</param><param>$3</param><param>$4</param></bulletRef>
</fire>


<bullet label="middle_boss_bullet_2nd_01_0">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$1/2-1</radius></collision>

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$1</width><height>$1+2</height>
		<alpha>230</alpha><red>123</red><green>120</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$2</wait>
		<changeDirection>
			<direction type="absolute">$3</direction><term>120</term>
		</changeDirection>
	
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>60</term>
		</changeSpeed>

		<wait>60</wait>

		<changeSpeed>
			<speed type="absolute">3.4</speed><term>60</term>
		</changeSpeed>
		<wait>40</wait>
		<fireRef label="middle_boss_fire_2nd_02_org1"><param>2.2</param><param>$4</param></fireRef>


	</action>

</bullet>

<bullet label="middle_boss_bullet_2nd_01_0_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$1/2-1</radius></collision>

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$1</width><height>$1+2</height>
		<alpha>230</alpha><red>123</red><green>120</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$2</wait>
		<changeDirection>
			<direction type="absolute">$3</direction><term>120</term>
		</changeDirection>
	
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>60</term>
		</changeSpeed>

		<wait>60</wait>

		<changeSpeed>
			<speed type="absolute">3.4</speed><term>60</term>
		</changeSpeed>
		<wait>40</wait>

	</action>

</bullet>

<bullet label="middle_boss_bullet_2nd_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$1/2-1</radius></collision>

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$1</width><height>$1+2</height>
		<alpha>230</alpha><red>123</red><green>120</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$2</wait>
		<changeDirection>
			<direction type="absolute">$3</direction><term>120</term>
		</changeDirection>
	
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>60</term>
		</changeSpeed>

		<wait>60</wait>

		<changeSpeed>
			<speed type="absolute">3.4</speed><term>60</term>
		</changeSpeed>


	</action>

</bullet>

<!-- dummy laser -->
<create label="middle_boss_create_2nd_01_s">
	<speed>2.4</speed>
	<direction type="sequence">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy+1</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_ob_2nd_01"><param>$1</param><param>$3</param><param>$4</param></enemyRef>
</create>


<enemy label="middle_boss_ob_2nd_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<revengeRef label="middle_boss_revenge_2nd_01"></revengeRef>

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$1</width><height>$1+2</height>
		<alpha>230</alpha><red>123</red><green>120</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<child>1</child>

	<action>
		<wait>$2</wait>
		<changeDirection>
			<direction type="absolute">$3</direction><term>120</term>
		</changeDirection>
	
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>60</term>
		</changeSpeed>

		<wait>60</wait>

		<changeSpeed>
			<speed type="absolute">3.4</speed><term>60</term>
		</changeSpeed>


	</action>

</enemy>

<revenge label="middle_boss_revenge_2nd_01">
	<vanish/>
</revenge>


<fire label="middle_boss_fire_2nd_02_org1">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_02_org1"><param>$1</param><param>$2</param></bulletRef>
</fire>


<bullet label="middle_boss_bullet_2nd_02_org1">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>1</radius></collision>

	<img type="normal">
		<file type="dds">bullet</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<action>
		<eval name="wait_time">5</eval>
		<wait>1</wait>

		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>

		<repeat><times>$2-eq1</times>
			<fireRef label="middle_boss_fire_2nd_02"><param>0</param><param>$1</param><param>$wait_time</param></fireRef>
		</repeat>
		<repeat><times>$2-eq2</times>
			<fireRef label="middle_boss_fire_2nd_02_ab"><param>0</param><param>$1</param><param>$wait_time</param></fireRef>
		</repeat>
		<repeat><times>$2-eq3</times>
			<fireRef label="middle_boss_fire_2nd_02_r"><param>0</param><param>$1</param><param>$wait_time</param></fireRef>
		</repeat>

		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_2nd_02_s"><param>30</param><param>$1</param><param>$wait_time</param></fireRef>
		</repeat>

		<wait>2</wait>
		<evaladd name="wait_time">-2</evaladd>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_2nd_02_s"><param>30</param><param>$1</param><param>$wait_time</param></fireRef>
		</repeat>

		<repeat><times>2</times>		
		<eval name="wait_time">5</eval>
		<repeat><times>2</times>
			<wait>2</wait>
			<evaladd name="wait_time">-2</evaladd>
			<repeat><times>6</times>
				<fireRef label="middle_boss_fire_2nd_02_s"><param>30</param><param>$1</param><param>$wait_time</param></fireRef>
			</repeat>
		</repeat>
		</repeat>

		<vanish/>
	</action>
</bullet>




<fire label="middle_boss_fire_2nd_02">
	<speed>2.4</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_02"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2nd_02_ab">
	<speed>2.4</speed>
	<direction type="absolute">$1+10</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_02"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2nd_02_s">
	<speed>2.4</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_02"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2nd_02_r">
	<speed>2.4</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_2nd_02"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2nd_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>

	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*6</left><top>0</top><right>32*7</right><bottom>32</bottom>
		<width>8</width><height>8</height>
		<alpha>250</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>20</wait>

		<changeSpeed>
			<speed type="absolute">$1</speed><term>60</term>
		</changeSpeed>

	</action>
</bullet>

<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ２回目						*** -->
<!-- ***							       *** -->

<revenge label="stage5B_middle_boss_2_01_revenge">
	<eval name="localcounter">$_counter</eval>
	<!-- enemy tension形態のため、TTC発動、ミスのチェック *** -->
	<eval name="ttc_end">$_ttc_frame</eval>
	<eval name="miss_end">$_misscount</eval>

	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_2"></actionRef>

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>

	<!-- *** ライフ表示を消す *** -->
	<targetRevenge label="boss_life"></targetRevenge>

	<wait>1</wait>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>32-($_self_cx%9)*8</param><param>32-$_self_cx%64</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<!-- *** ETC Break 判定 -->
	<eval name="etb_num">(($ttc_end-$__ttc_start)-eq$localcounter)*($miss_end-eq$__miss_start)*($__ttc_start_check-gt240)</eval>
	<repeat><times>$etb_num-eq0</times>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<wait>1</wait>
	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>

	<repeat><times>$_revenge_state-eq1</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>1</param><param>5</param></actionRef>
			<createRef label="item_create_01_etb"><param>-15000</param><param>420000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>32/2</param><param>$counter_e</param><param>1500</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<!-- *** ボス戦ロックを解除は演出終了後 *** -->

	<!-- *** 殺されるボスの作成 *** -->
	<wait>1</wait>
	<createRef label="enemy_create_middle_boss_escape2"><param>$etb_num</param></createRef>

	<!-- *** 終了 *** -->
	<vanish></vanish>	

</revenge>


<!-- ********************************************************************* -->
<!-- *** ボス戦はここから始まる					*** -->
<action label="stage5B_boss_top_action">

	<changeTargetVolume label="bgm">
		<num>-10000</num><term>30</term>
	</changeTargetVolume>
	<wait>30</wait>
	<targetVanish label="bgm"></targetVanish>

	<sound label="bgm" type="bgm">
		<track>
			<file type="ogg">15_stage5boss</file>
		</track>
		<play>
			<flag>1</flag><loop>44100*2*2*6</loop>
		</play>
	</sound>
	<actionRef label="stage5_2_bgm_title_action"></actionRef>


	<!-- *** 第 N 形態 *** -->
	<global name="boss_state">1</global>
	
	<!-- *** ボスの初期ライフ *** -->
	<global name="boss_life">5</global>
	
	<!-- 出現用ボスを消去 -->
	<targetRevenge label="stage5B_boss_enemy_appear"></targetRevenge>

	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="stage5B_boss_01_create"></createRef>
	
	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stage5"></createRef>

	<!-- *** Enemy Tension判定用変数 *** -->
	<global name="ttc_start">0</global>
	<global name="miss_start">0</global>

	<!-- *** ボス戦が終わるまで待機		  *** -->	
	<!-- *** 最終形態が終わると Lock 10 が開放される *** -->
	<setLock><num>10</num></setLock>
	<waitLock><num>10</num></waitLock>
</action>


<!-- ********************************************************************* -->
<!-- *** 第 1 形態のボスオブジェクト作成			       *** -->
<!-- ***							       *** -->
<!-- *** 初期位置が固定であることに注意				*** -->
<create label="stage5B_boss_01_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$__boss_cx</cx><cy>$__boss_cy</cy>
	<vital>$__vital_1</vital>
	<inv>40</inv>
	<score>290000</score>
	<prate>$__boss_prate</prate>
	<enemyRef label="stage5B_boss_enemy"></enemyRef>
</create>


<!-- *** 第 2 形態のボスオブジェクト作成			       *** -->
<!-- ***							       *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる		      *** -->
<create label="stage5B_boss_02_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>$__vital_2</vital>
	<inv>40</inv>
	<score>340000</score>
	<prate>$__boss_prate2</prate>
	<enemyRef label="stage5B_boss_enemy"></enemyRef>
</create>

<!-- *** 第 3 形態のボスオブジェクト作成			       *** -->
<!-- ***							       *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる		      *** -->
<create label="stage5B_boss_03_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>$__vital_3</vital>
	<inv>40</inv>
	<score>410000</score>
	<prate>$__boss_prate2</prate>
	<enemyRef label="stage5B_boss_enemy"></enemyRef>
</create>

<!-- *** 第 4 形態のボスオブジェクト作成			       *** -->
<!-- ***							       *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる		      *** -->
<create label="stage5B_boss_04_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>$__vital_4</vital>
	<inv>40</inv>
	<score>440000</score>
	<prate>$__boss_prate3</prate>
	<enemyRef label="stage5B_boss_enemy"></enemyRef>
</create>

<!-- *** 第 5 形態のボスオブジェクト作成			       *** -->
<!-- ***							       *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる		      *** -->
<create label="stage5B_boss_05_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>$__vital_5</vital>
	<inv>40</inv>
	<score>470000</score>
	<prate>$__boss_prate3</prate>
	<enemyRef label="stage5B_boss_enemy"></enemyRef>
</create>

<!-- *** 第 6 形態のボスオブジェクト作成			       *** -->
<!-- ***							       *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる		      *** -->
<create label="stage5B_boss_06_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>$__vital_6</vital>
	<inv>40</inv>
	<score>520000</score>
	<prate>$__boss_prate3</prate>
	<enemyRef label="stage5B_boss_enemy"></enemyRef>
</create>

<!-- ********************************************************************* -->
<!-- *** ボスオブジェクト					      *** -->
<enemy label="stage5B_boss_enemy">
	<presentRef label="stage5B_boss_present"></presentRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>

	<!-- *** VITAL ゲージはボスの子オブジェクトなのでここで作成 *** -->
	<createRef label="boss_vital_create"></createRef>

	<!-- *** 画面下のボス表示を作成 *** -->
	<createRef label="boss_underbar_create"></createRef>


	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage5B_boss_01_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_boss_01_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq2</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage5B_boss_02_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_boss_02_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq3</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage5B_boss_03_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_boss_03_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq4</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage5B_boss_04_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_boss_04_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq5</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage5B_boss_05_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_boss_05_action"></actionRef>

	</repeat>
	<repeat><times>$__boss_state-eq6</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage5B_boss_06_revenge"></revengeRef>
		<global name="timer">18</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage5B_boss_06_action"></actionRef>

	</repeat>
</enemy>


<!-- ********************************************************************* -->
<!-- *** ボスのアクション					      *** -->
<!-- *** 第１形態						      *** -->
<action  label="stage5B_boss_01_action">
	<changeSpeed>
		<speed>0</speed><term>60</term>
	</changeSpeed>
	<wait>60</wait>

<!-- 弾幕開始 -->
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- No0 試験 -->
<!--	<createRef label="stage5B_boss_laser_create_01"></createRef> -->

	<!-- No1 3way + ばらまき -->

<repeat><times>4</times>
	<createRef label="stage5B_boss_create_1_02"><param>96</param><param>12</param><param>0</param><param>1</param></createRef>
	<createRef label="stage5B_boss_create_1_02"><param>-95</param><param>8</param><param>2</param><param>-1</param></createRef>
	<wait>15</wait>
	<createRef label="stage5B_boss_create_1_01"><param>56</param><param>12</param><param>1</param></createRef>
	<createRef label="stage5B_boss_create_1_01"><param>-55</param><param>8</param><param>-1</param></createRef>

	<wait>60</wait>

	<eval name="boss_move">$_player_cy%2</eval>
	<changeDirection>
		<direction type="absolute">-63+$boss_move*126</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.4</speed><term>10</term>
	</changeSpeed>

	<wait>45</wait>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>120-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->


	<!-- No2 扇 -->

	<eval name="width">13</eval>
	<eval name="bul_num1">4</eval>
	<eval name="bul_num_add">1</eval>
	<eval name="wait_time">5</eval>
	<eval name="last_sp">1.6</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03"><param>0</param><param>$last_sp</param><param>$wait_time</param></fireRef>
	<repeat><times>$bul_num1</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<wait>1</wait>
	</repeat>

	<repeat><times>7</times>
	<wait>2</wait>
	<evaladd name="last_sp">0.2</evaladd>
	<eval name="wait_time">5</eval>
	<eval name="bul_num_add">($bul_num_add-1)/2</eval>
	<wait>3</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>

	<evaladd name="width">-1</evaladd>
	<eval name="bul_num_add">1</eval>

	<repeat><times>$bul_num1</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<wait>1</wait>
	</repeat>
	</repeat>

	<changeDirection>
		<direction type="absolute">90-180*$boss_move</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.7</speed><term>10</term>
	</changeSpeed>

	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.2</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.0</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.8</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.6</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.4</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.2</param><param>1</param></fireRef>
			<wait>3</wait>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.3</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.1</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.9</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.7</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.5</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.3</param><param>1</param></fireRef>
			<wait>2</wait>
		</repeat>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.2</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.0</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.8</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.6</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.4</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.2</param><param>1</param></fireRef>
			<wait>3</wait>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.3</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.1</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.9</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.7</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.5</param><param>1</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.3</param><param>1</param></fireRef>
			<wait>2</wait>
	</repeat>

	<eval name="width">13</eval>
	<eval name="bul_num1">4</eval>
	<eval name="bul_num_add">1</eval>
	<eval name="wait_time">5</eval>
	<eval name="last_sp">1.6</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03"><param>2</param><param>$last_sp</param><param>$wait_time</param></fireRef>
	<repeat><times>$bul_num1</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<wait>1</wait>
	</repeat>

	<repeat><times>7</times>
	<wait>2</wait>
	<evaladd name="last_sp">0.2</evaladd>
	<eval name="wait_time">5</eval>
	<eval name="bul_num_add">($bul_num_add-1)/2</eval>
	<wait>3</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>

	<evaladd name="width">-1</evaladd>
	<eval name="bul_num_add">1</eval>

	<repeat><times>$bul_num1</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<wait>1</wait>
	</repeat>
	</repeat>

	<changeDirection>
		<direction type="absolute">-125+250*$boss_move</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.4</speed><term>10</term>
	</changeSpeed>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.2</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.0</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.8</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.6</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.4</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.2</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.3</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.1</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.9</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.7</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.5</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.3</param><param>1</param></fireRef>
		<wait>2</wait>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<repeat><times>4</times>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.2</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.0</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.8</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.6</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.4</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.2</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.3</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.1</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.9</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.7</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.5</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.3</param><param>1</param></fireRef>
		<wait>2</wait>
	</repeat>

	<eval name="width">13</eval>
	<eval name="bul_num1">6</eval>
	<eval name="bul_num_add">1</eval>
	<eval name="wait_time">7</eval>
	<eval name="last_sp">0.9</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03"><param>-1</param><param>$last_sp</param><param>$wait_time</param></fireRef>
	<repeat><times>$bul_num1</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<wait>1</wait>
	</repeat>

	<repeat><times>8</times>
	<wait>2</wait>
	<evaladd name="last_sp">0.3</evaladd>
	<eval name="wait_time">7</eval>
	<eval name="bul_num_add">($bul_num_add-1)/2</eval>
	<wait>2</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>

	<evaladd name="width">-1</evaladd>
	<eval name="bul_num_add">1</eval>

	<repeat><times>$bul_num1</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">1</evaladd>
		<wait>1</wait>
	</repeat>
	</repeat>

	<eval name="width">10</eval>
	<eval name="bul_num_add">2</eval>
	<eval name="wait_time">5</eval>
	<eval name="last_sp">1.5</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03"><param>2</param><param>$last_sp</param><param>$wait_time</param></fireRef>
	<repeat><times>4</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">2</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">2</evaladd>
		<wait>1</wait>
	</repeat>

	<repeat><times>5</times>
	<wait>2</wait>
	<evaladd name="last_sp">0.4</evaladd>
	<eval name="wait_time">5</eval>
	<eval name="bul_num_add">($bul_num_add-2)/2</eval>
	<wait>2</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>

	<evaladd name="width">-1</evaladd>
	<eval name="bul_num_add">2</eval>

	<repeat><times>4</times>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">2</evaladd>
		<fireRef label="stage5B_boss_fire_1_03_s"><param>$width*$bul_num_add*(-1)</param><param>$last_sp</param><param>$wait_time</param></fireRef>
		<evaladd name="bul_num_add">2</evaladd>
		<wait>1</wait>
	</repeat>
	</repeat>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<eval name="move_dir">1-($_player_cx%2)*2</eval>
	<wait>15-3</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<repeat><times>8</times>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.2</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.0</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.8</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.6</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.4</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.2</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.3</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.1</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.9</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.7</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.5</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.3</param><param>1</param></fireRef>
		<wait>2</wait>
	</repeat>


	<changeDirection>
		<direction type="absolute">70*$move_dir</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.5</speed><term>10</term>
	</changeSpeed>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<repeat><times>4</times>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.2</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.0</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.8</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.6</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.4</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.2</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.3</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.1</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.9</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.7</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.5</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.3</param><param>1</param></fireRef>
		<wait>2</wait>
	</repeat>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<repeat><times>4</times>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.2</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.0</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.8</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.6</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.4</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.2</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>(($_player_cx*7+$_self_cx*13)%90)*4</param><param>2.3</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>2.1</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.9</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.7</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.5</param><param>1</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_03b_s"><param>60</param><param>1.3</param><param>1</param></fireRef>
		<wait>2</wait>
	</repeat>

	<!-- No3  -->

	<eval name="wait_time">6</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_04"><param>0</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>10</times>
			<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<eval name="wait_time">6</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_04"><param>0</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>10</times>
			<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

<!--	<wait>5</wait> -->
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>6+4*$move_dir</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>
	<wait>1</wait>
	<evaladd name="wait_time">-1</evaladd>
	<repeat><times>4</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>7</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>


	<wait>4</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+1*$move_dir</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>



	<repeat><times>2</times>
	<wait>5</wait>
	<eval name="wait_time">6</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_04_s"><param>4+28+8+5*$move_dir</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>10</times>
			<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<eval name="wait_time">6</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>10</times>
			<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

<!--	<wait>5</wait> -->
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>
	<wait>1</wait>
	<evaladd name="wait_time">-1</evaladd>
	<repeat><times>4</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>7</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>

	<wait>4</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+1*$move_dir</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28+1*$move_dir</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>
	</repeat>

	<repeat><times>2</times>
	<wait>5</wait>
	<eval name="wait_time">6</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_04_s"><param>4+28+16-1*$move_dir</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>10</times>
			<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>1.6</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<eval name="wait_time">6</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>10</times>
			<fireRef label="stage5B_boss_fire_1_04_s"><param>6</param><param>2</param><param>255</param><param>1</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

<!--	<wait>5</wait> -->
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28-1*$move_dir</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28-1*$move_dir</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>255</param><param>8</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28-1*$move_dir</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>9</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>8</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>
	<wait>1</wait>
	<evaladd name="wait_time">-1</evaladd>
	<repeat><times>4</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>7</param><param>1.6</param><param>2</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>

	<wait>4</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4-1*$move_dir</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>2</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28-1*$move_dir</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>2</param><param>255</param><param>255</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>

	<wait>5</wait>
	<eval name="wait_time">5</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage5B_boss_fire_1_05_s"><param>4+28-1*$move_dir</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
	</repeat>
	<repeat><times>4</times>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<fireRef label="stage5B_boss_fire_1_05_s"><param>43</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="stage5B_boss_fire_1_05_s"><param>4</param><param>1.6</param><param>255</param><param>64</param><param>2</param><param>$wait_time</param></fireRef>
		</repeat>
	</repeat>
	</repeat>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.5</speed><term>10</term>
	</changeSpeed>
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>

	<wait>10</wait>
	<actionRef label="stage5_common_bit_hard"></actionRef>
	<!-- wait 15 -->

	<wait>90-25-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

<wait>120</wait>
<targetRevenge label="stage5B_boss_enemy"></targetRevenge>
</action>

<!-- 黄魔法陣 -->
<create label="stage5B_boss_create_1_01">
	<speed>4</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_enemy_1_01"><param>$2</param><param>$3</param></enemyRef>
</create>

<enemy label="stage5B_boss_enemy_1_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>

	<img type="normal">
		<file type="dds">s_mahoujin6</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<changeSpeed>
			<speed type="absolute">0.8</speed><term>10</term>
		</changeSpeed>
		
		<wait>$1</wait>
		<eval name="bul_dir">0</eval>

		<repeat><times>10</times>
			<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
			<eval name="bul_sp">2.8</eval>
			<eval name="bul_dir">($bul_dir+4)%11</eval>
			<fireRef label="stage5B_boss_fire_1_01"><param>-37-$_self_cx%5+$2+$bul_dir</param><param>$bul_sp</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_01_s"><param>28</param><param>$bul_sp</param></fireRef>
			<fireRef label="stage5B_boss_fire_1_01_s"><param>28</param><param>$bul_sp</param></fireRef>
			<wait>1</wait>
	
				<repeat><times>4</times>
				<evaladd name="bul_sp">-0.1</evaladd>
				<fireRef label="stage5B_boss_fire_1_01_s"><param>-56</param><param>$bul_sp</param></fireRef>
				<fireRef label="stage5B_boss_fire_1_01_s"><param>28</param><param>$bul_sp</param></fireRef>
				<fireRef label="stage5B_boss_fire_1_01_s"><param>28</param><param>$bul_sp</param></fireRef>
				<wait>1</wait>
			</repeat>
			<wait>18</wait>
		</repeat>
	</action>
</enemy>


<fire label="stage5B_boss_fire_1_01">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_01"><param>$2</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_1_01_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_01"><param>$2</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_1_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>12</width><height>12</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>6</blue>
	</img>

	<action>

		<changeSpeed>
			<speed type="absolute">$1</speed><term>8</term>
		</changeSpeed>

	</action>

</bullet>


<!-- 青魔法陣 -->
<create label="stage5B_boss_create_1_02">
	<speed>4</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_enemy_1_02"><param>$2</param><param>$3</param><param>$4</param></enemyRef>
</create>

<enemy label="stage5B_boss_enemy_1_02">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>

	<img type="normal">
		<file type="dds">s_mahoujin5</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>

		<changeSpeed>
			<speed type="absolute">0.8</speed><term>10</term>
		</changeSpeed>

		<wait>$1</wait>

		<repeat><times>10</times>
			<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
			<fireRef label="stage5B_boss_fire_1_02"><param>15*5*$3+$2</param><param>1.9</param></fireRef>
			<repeat><times>12</times>
				<wait>1</wait>
				<fireRef label="stage5B_boss_fire_1_02_s"><param>-13*$3</param><param>1.9</param></fireRef>
			</repeat>
			<wait>24</wait>
		</repeat>

	</action>
</enemy>

<fire label="stage5B_boss_fire_1_02">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_02"><param>$2</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_1_02_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_02"><param>$2</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_1_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>
	<img type="maskadd">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>2</red><green>115</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>

		<changeSpeed>
			<speed type="absolute">$1</speed><term>8</term>
		</changeSpeed>

	</action>

</bullet>



<fire label="stage5B_boss_fire_1_03">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_03"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_1_03_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_03"><param>$2</param><param>$3</param></bulletRef>
</fire>
<fire label="stage5B_boss_fire_1_03b_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_03b"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_1_03">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>
	<img type="maskadd">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>13</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$2</wait>
		<changeSpeed>
			<speed type="absolute">3</speed><term>1</term>
		</changeSpeed>

		<wait>15</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>

<bullet label="stage5B_boss_bullet_1_03b">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>
	<img type="maskadd">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>2</red><green>2</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$2</wait>
		<changeSpeed>
			<speed type="absolute">3</speed><term>1</term>
		</changeSpeed>

		<wait>15</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>

<fire label="stage5B_boss_fire_1_04">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_04"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_1_04_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_04"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_1_04">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>$2</red><green>$3</green><blue>$4</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$5</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>


<fire label="stage5B_boss_fire_1_05">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_05"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_1_05_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_1_05"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_1_05">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>2</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>6</width><height>6</height>
		<alpha>255</alpha><red>$2</red><green>$3</green><blue>$4</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$5</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>



<!-- ********************************************************************* -->
<!-- *** ボスのアクション					      *** -->
<!-- *** 第２形態						      *** -->
<action  label="stage5B_boss_02_action">
<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>140</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
<!-- 弾幕開始 -->
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
<!--
	<createRef label="stage5B_boss_mahoujin_2_01"></createRef>
-->
	<changeDirection>
		<direction type="absolute">-58</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.8</speed><term>1</term>
	</changeSpeed>

	<wait>1</wait>
	<wait>10</wait>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>10</wait>

<repeat><times>4</times>
	<!-- １回目 -->
	<createRef label="stage5B_boss_laser_create_01"><param>90-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>110-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>130-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>150-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>170-30</param><param>0.1</param></createRef>
	<wait>1</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>190-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>210-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>230-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>250-30</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>270-30</param><param>0.1</param></createRef>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_2_01"><param>0</param><param>2.2</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>22</param><param>2.2</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>22</param><param>2.2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>

	<wait>33-2</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>90-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>110-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>130-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>150-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>170-10</param><param>0.1</param></createRef>
	<wait>1</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>190-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>210-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>230-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>250-10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>270-10</param><param>0.1</param></createRef>
	<wait>1</wait>


	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_2_01"><param>0</param><param>2.2</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>5</times>
	<fireRef label="stage5B_boss_fire_2_01_s"><param>26</param><param>2.2</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
	</repeat>
	<wait>5</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>5</times>
	<fireRef label="stage5B_boss_fire_2_01_s"><param>26</param><param>2.2</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
	</repeat>
	<wait>5</wait>
	</repeat>

	<wait>33-3-2</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<createRef label="stage5B_boss_laser_create_01"><param>90+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>110+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>130+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>150+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>170+10</param><param>0.1</param></createRef>
	<wait>1</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>190+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>210+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>230+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>250+10</param><param>0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>270+10</param><param>0.1</param></createRef>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_2_01"><param>0</param><param>2.2</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>16</param><param>2.2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>16</param><param>2.2</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>31</param><param>2.2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>8</times>
		<fireRef label="stage5B_boss_fire_2_01_s"><param>37</param><param>2.2</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="stage5B_boss_fire_2_01_s"><param>24</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>

	<wait>21</wait>

	<changeDirection>
		<direction type="absolute">90</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.4</speed><term>10</term>
	</changeSpeed>

	<wait>35</wait>

	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>


	<!-- 2回目 -->
	<createRef label="stage5B_boss_laser_create_01"><param>90+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>110+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>130+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>150+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>170+30</param><param>-0.1</param></createRef>
	<wait>1</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>190+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>210+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>230+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>250+30</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>270+30</param><param>-0.1</param></createRef>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_2_02"><param>0</param><param>2.2</param></fireRef>
	<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>26</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>26</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>

	<wait>33-3-2</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<createRef label="stage5B_boss_laser_create_01"><param>90+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>110+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>130+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>150+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>170+10</param><param>-0.1</param></createRef>
	<wait>1</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>190+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>210+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>230+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>250+10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>270+10</param><param>-0.1</param></createRef>
	<wait>1</wait>


	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_2_02"><param>0</param><param>2.2</param></fireRef>
	<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>5</times>
	<fireRef label="stage5B_boss_fire_2_02_s"><param>22</param><param>2.2</param></fireRef>
	<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>5</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>5</times>
	<fireRef label="stage5B_boss_fire_2_02_s"><param>22</param><param>2.2</param></fireRef>
	<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
	</repeat>
	<wait>5</wait>
	</repeat>

	<wait>33-2</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>90-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>110-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>130-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>150-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>170-10</param><param>-0.1</param></createRef>
	<wait>1</wait>
	<createRef label="stage5B_boss_laser_create_01"><param>190-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>210-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>230-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>250-10</param><param>-0.1</param></createRef>
	<createRef label="stage5B_boss_laser_create_01"><param>270-10</param><param>-0.1</param></createRef>
	<wait>1</wait>


	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_2_02"><param>0</param><param>2.2</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>13</param><param>2.2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>13</param><param>2.2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>39</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>39</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>30</param><param>2.2</param></fireRef>
			<fireRef label="stage5B_boss_fire_2_02_s"><param>0</param><param>1.8</param></fireRef>
		</repeat>
		<wait>5</wait>
	</repeat>

	<wait>21+30</wait>

	
	<changeDirection>
		<direction type="absolute">-90</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.4</speed><term>10</term>
	</changeSpeed>

	<wait>35</wait>

	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>20-15-3</wait>

	<actionRef label="stage5_common_bit_hard"></actionRef>
	<!-- wait 15 -->

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

<wait>120</wait>
<targetRevenge label="stage5B_boss_enemy"></targetRevenge>

</action>


<create label="stage5B_boss_mahoujin_2_01">
	<speed>2</speed>
	<direction type="absolute">58</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1440</vital>
	<enemyRef label="stage5B_boss_mahoujin_2_01"></enemyRef>
</create>

<enemy label="stage5B_boss_mahoujin_2_01">
	<score>100000</score>
	<inv>40</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<revengeRef label="stage5B_boss_mahoujin_2_01"><param>4</param><param>20</param><param>550</param></revengeRef>

	<img type="maskadd">
		<file type="dds">circle_enemy</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>4</width><height>4</height>
		<alpha>255</alpha><red>2</red><green>125</green><blue>255</blue>
	</img>

	<changeImgSize>
		<width>24</width><height>24</height><term>60</term>
	</changeImgSize>
	<action>
		<wait>1</wait>
		<create>
			<speed>0</speed>
			<direction type="aim">0</direction>
			<cx>$_self_cx-2</cx><cy>$_self_cy+2</cy>
			<vital>1</vital>
			<enemy>
				<score>0</score>
				<inv>0</inv>
				<prate>0</prate>
				<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
				<child>1</child>
				<definedAction type="synctoparentx"></definedAction>
				<definedAction type="synctoparenty"></definedAction>
				<img type="normal">
					<file type="dds">s_mahoujin5</file>
					<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
					<width>4</width><height>4</height>
					<alpha>125</alpha><red>255</red><green>255</green><blue>255</blue>
				</img>
				<rotateImg>
					<direction>3</direction><term>-1</term>
				</rotateImg>
				<changeImgSize>
					<width>48</width><height>48</height><term>60</term>
				</changeImgSize>
			</enemy>
		</create>

		<wait>40</wait>

		<changeSpeed>
			<speed type="absolute">0</speed><term>40</term>
		</changeSpeed>
		<wait>40</wait>



		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>20</wait>


		<repeat><times>4</times>
		<createRef label="stage5B_boss_laser_create_01"><param>130</param><param>0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>160</param><param>0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>190</param><param>0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>220</param><param>0.1</param></createRef>
		<wait>1</wait>
		<createRef label="stage5B_boss_laser_create_01"><param>250</param><param>0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>280</param><param>0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>310</param><param>0.1</param></createRef>

		<wait>440-45</wait>

		<changeDirection>
			<direction type="absolute">-90</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2.7</speed><term>10</term>
		</changeSpeed>	

		<wait>70</wait>

		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>20</wait>

		<createRef label="stage5B_boss_laser_create_01"><param>230</param><param>-0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>200</param><param>-0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>170</param><param>-0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>140</param><param>-0.1</param></createRef>
		<wait>1</wait>
		<createRef label="stage5B_boss_laser_create_01"><param>110</param><param>-0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>80</param><param>-0.1</param></createRef>
		<createRef label="stage5B_boss_laser_create_01"><param>50</param><param>-0.1</param></createRef>

		<wait>440-45</wait>

		<changeDirection>
			<direction type="absolute">90</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2.7</speed><term>10</term>
		</changeSpeed>	

		<wait>70</wait>

		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>20</wait>
		</repeat>

	</action>
</enemy>

<revenge label="stage5B_boss_mahoujin_2_01">
	<presentRef label="enemy_revenge_present_01"></presentRef>
	<soundRef label="enemy_break1"></soundRef>
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>

	<eval name="localcounter">$_counter</eval>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<actionRef label="item_counter_01"><param>$1</param><param>$2</param><param>$3</param><param>12</param><param>$localcounter</param></actionRef>
	</repeat>
	<wait>45-$1*4</wait>
	<vanish></vanish>
</revenge>


<!-- 回転レーザー -->
<create label="stage5B_boss_laser_create_01">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx-2</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_laser_enemy_01_l"><param>$2</param></enemyRef>
</create>

<enemy label="stage5B_boss_laser_enemy_01_l">
	<inv>85</inv>
	<revengeRef label="stage5B_boss_laser_revenge_01_l"></revengeRef>
	<child>1</child>
	<flag>3</flag>
	<img type="add">
		<file type="dds">shot2l</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>540</height>
		<alpha>0</alpha><red>64</red><green>250</green><blue>255</blue>
	</img>
	<collision type="syncedge"><left>2</left><top>0</top><right>4</right><bottom>540</bottom></collision>
	<buzz type="syncedge"><left>2</left><top>0</top><right>4</right><bottom>540</bottom></buzz>
	<setBreakable><num>1</num></setBreakable>
	<imgDirection type="syncedge">0</imgDirection>

	<rotateImg>
		<direction>$1</direction><term>-1</term>
	</rotateImg>

	<action>

		<wait>1</wait>
		<wait>1</wait>
		<changeColor>
			<alpha>225</alpha><red>64</red><green>250</green><blue>255</blue><term>75</term>
		</changeColor>
		<wait>1</wait>
		<actionRef label="enemy_laser_action"></actionRef>
		<wait>1</wait>
		<wait>28</wait>

		<changeImgSize>
			<width>6</width><height>540</height><term>54</term>
		</changeImgSize>
		<wait>53</wait>


		<repeat><times>7</times>
			<wait>10</wait>
			<incBuzzCount></incBuzzCount>
		</repeat>

		<changeColor>
			<alpha>34</alpha><red>64</red><green>250</green><blue>255</blue><term>55</term>
		</changeColor>

		<repeat><times>5</times>
			<wait>10</wait>
			<incBuzzCount></incBuzzCount>
		</repeat>

		<wait>5</wait>
		<vanish/>
	</action>	

</enemy>

<revenge label="stage5B_boss_laser_revenge_01_l">
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>

	<changeColor>
		<alpha>32</alpha><red>64</red><green>250</green><blue>255</blue><term>30</term>
	</changeColor>

	<vanish></vanish>
</revenge>

<fire label="stage5B_boss_fire_2_01">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_2_01"><param>$2</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_2_01_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_2_01"><param>$2</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_2_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>255</red><green>2</green><blue>4</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>

<fire label="stage5B_boss_fire_2_02">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_2_02"><param>$2</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_2_02_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_2_02"><param>$2</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_2_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>2</red><green>52</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>


<!-- ********************************************************************* -->
<!-- *** ボスのアクション					      *** -->
<!-- *** 第３形態						      *** -->
<action  label="stage5B_boss_03_action">

<!-- センターポイントへ移動 -->
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>130</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->
<repeat><times>4</times>
	<!-- No1 ５指 -->

	<actionRef label="stage5_common_bit_hard"></actionRef>
	<!-- wait 15 -->

	<eval name="FIRSTS">2</eval>	  <!--弾の速度-->
	<eval name="WAITD">6</eval>	     <!--待ち時間、徐々に短くなる-->
	<eval name="MOVED">180</eval>	   <!--途中小移動の角度-->
	<eval name="wait_time">2</eval>
	<wait>1</wait>

	<repeat><times>2</times>
		<eval name="WAITBULLET">$WAITD*8</eval>	<!--再加速の待ち時間-->

		<!--親指の弾は速く小指の弾は遅い-->
		<eval name="SPDPER">1.0</eval>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage5B_boss_fire_3_01">
			<param>-47-($_self_cx%7)</param>
			<param>$FIRSTS*$SPDPER</param>
			<param>$WAITBULLET</param>
			<param>$wait_time</param>
		</fireRef>
		<repeat><times>2</times>
			<evaladd name="SPDPER">-0.1</evaladd>
			<evaladd name="WAITBULLET">$WAITD*2</evaladd>
			<fireRef label="stage5B_boss_fire_3_01_s">
				<param>10</param>
				<param>$FIRSTS*$SPDPER</param>
				<param>$WAITBULLET</param>
				<param>$wait_time</param>
			</fireRef>
		</repeat>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>2</times>
			<evaladd name="SPDPER">-0.1</evaladd>
			<evaladd name="WAITBULLET">$WAITD*2</evaladd>
			<fireRef label="stage5B_boss_fire_3_01_s">
				<param>10</param>
				<param>$FIRSTS*$SPDPER</param>
				<param>$WAITBULLET</param>
				<param>$wait_time</param>
			</fireRef>
		</repeat>

		<repeat><times>7</times>
			<wait>$WAITD-1</wait>
			<eval name="wait_time">2</eval>
			<eval name="WAITBULLET">$WAITD*8</eval>
			<eval name="SPDPER">1.0</eval>
			<wait>1</wait>
			<fireRef label="stage5B_boss_fire_3_01_s">
				<param>12-10*4</param>
				<param>$FIRSTS*$SPDPER</param>
				<param>$WAITBULLET</param>
				<param>$wait_time</param>
			</fireRef>
			<repeat><times>2</times>
				<evaladd name="SPDPER">-0.1</evaladd>
				<evaladd name="WAITBULLET">$WAITD*2</evaladd>
				<fireRef label="stage5B_boss_fire_3_01_s">
					<param>10</param>
					<param>$FIRSTS*$SPDPER</param>
					<param>$WAITBULLET</param>
					<param>$wait_time</param>
				</fireRef>
			</repeat>
			<wait>1</wait>
			<evaladd name="wait_time">-1</evaladd>
			<repeat><times>2</times>
				<evaladd name="SPDPER">-0.1</evaladd>
				<evaladd name="WAITBULLET">$WAITD*2</evaladd>
				<fireRef label="stage5B_boss_fire_3_01_s">
					<param>10</param>
					<param>$FIRSTS*$SPDPER</param>
					<param>$WAITBULLET</param>
					<param>$wait_time</param>
				</fireRef>
			</repeat>
		</repeat>


		<!--少し動く-->
		<eval name="MOVED">($_self_cx*77+$_player_cx*89+$MOVED*180)%360</eval>
		<changeDirection>
			<direction>$MOVED</direction><term>10</term>
		</changeDirection>
		<changeSpeed>
			<speed>0.5</speed><term>1</term>
		</changeSpeed>
		<wait>20</wait>
		<changeSpeed>
			<speed>0</speed><term>15</term>
		</changeSpeed>
		<wait>14</wait>

		<!--さっきと反対方向に弾を撃つ-->
		<evaladd name="WAITD">-1</evaladd>
		<evaladd name="FIRSTS">0.4</evaladd>

		<!--待ち時間、速度とも少しシビアになる-->
		<eval name="WAITBULLET">$WAITD*8</eval>
		<eval name="SPDPER">1.0</eval>
		<eval name="wait_time">2</eval>
		<wait>1</wait>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage5B_boss_fire_3_01">
			<param>47+($_self_cx%7)</param>
			<param>$FIRSTS*$SPDPER</param>
			<param>$WAITBULLET</param>
			<param>$wait_time</param>
		</fireRef>
		<repeat><times>2</times>
			<evaladd name="SPDPER">-0.1</evaladd>
			<evaladd name="WAITBULLET">$WAITD*2</evaladd>
			<fireRef label="stage5B_boss_fire_3_01_s">
				<param>-10</param>
				<param>$FIRSTS*$SPDPER</param>
				<param>$WAITBULLET</param>
				<param>$wait_time</param>
			</fireRef>
		</repeat>
		<wait>1</wait>
		<evaladd name="wait_time">-1</evaladd>
		<repeat><times>2</times>
			<evaladd name="SPDPER">-0.1</evaladd>
			<evaladd name="WAITBULLET">$WAITD*2</evaladd>
			<fireRef label="stage5B_boss_fire_3_01_s">
				<param>-10</param>
				<param>$FIRSTS*$SPDPER</param>
				<param>$WAITBULLET</param>
				<param>$wait_time</param>
			</fireRef>
		</repeat>

		<repeat><times>7</times>
			<wait>$WAITD-1</wait>
			<eval name="wait_time">2</eval>
			<eval name="WAITBULLET">$WAITD*8</eval>
			<eval name="SPDPER">1.0</eval>
			<wait>1</wait>
			<fireRef label="stage5B_boss_fire_3_01_s">
				<param>-12+10*4</param>
				<param>$FIRSTS</param>
				<param>$WAITBULLET</param>
				<param>$wait_time</param>
			</fireRef>
			<repeat><times>2</times>
				<evaladd name="SPDPER">-0.1</evaladd>
				<evaladd name="WAITBULLET">$WAITD*2</evaladd>
				<fireRef label="stage5B_boss_fire_3_01_s">
					<param>-10</param>
					<param>$FIRSTS*$SPDPER</param>
					<param>$WAITBULLET</param>
					<param>$wait_time</param>
				</fireRef>
			</repeat>
			<wait>1</wait>
			<evaladd name="wait_time">-1</evaladd>
			<repeat><times>2</times>
				<evaladd name="SPDPER">-0.1</evaladd>
				<evaladd name="WAITBULLET">$WAITD*2</evaladd>
				<fireRef label="stage5B_boss_fire_3_01_s">
					<param>-10</param>
					<param>$FIRSTS*$SPDPER</param>
					<param>$WAITBULLET</param>
					<param>$wait_time</param>
				</fireRef>
			</repeat>
		</repeat>


		<!--少し動く-->
		<changeDirection>
			<direction type="relative">180</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>0.5</speed><term>1</term>
		</changeSpeed>
		<wait>20</wait>
		<changeSpeed>
			<speed>0</speed><term>15</term>
		</changeSpeed>
		<wait>14</wait>

		<!--待ち時間、速度とも少しシビアになる-->
		<evaladd name="FIRSTS">0.4</evaladd>
		<evaladd name="WAITD">-1</evaladd>
	</repeat>

	<wait>90-3</wait>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<!-- No2 -->
	<!--移動＋反射弾-->
	<eval name="XPOS">90-180*($_player_cx-gt320)</eval>	<!--予想出来るＸ移動量-->
	<eval name="YPOS">30-20*($_player_cy%4)</eval>	 <!--予想出来るＹ移動量-->
	<eval name="STARTP">($_player_cx+$STARTP*90)%360</eval><!--弾幕開始位置-->

<!--移動先を決める-->
	<accel>
		<vertical>$YPOS/200</vertical><term>1</term>
		<horizontal>$XPOS/200</horizontal><term>1</term>
	</accel>
	<wait>1</wait>
	<accel>
		<vertical>0</vertical><term>1</term>
		<horizontal>0</horizontal><term>1</term>
	</accel>

	<!--弾幕開始-->
	<eval name="SPD">($_player_cy+$_self_cx)%6</eval>
	<eval name="OFS">2*(1+($_self_cx%3))</eval>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_3_02">
		<param>$STARTP</param>
		<param>$SPD/5+1.0</param>
		<param>1</param>
		<param>255</param>
		<param>32</param>
		<param>32</param>
		<param>1</param>
	</fireRef>
	<fireRef label="stage5B_boss_fire_3_02_s">
		<param>90</param>
		<param>$SPD/5+1.0</param>
		<param>2</param>
		<param>32</param>
		<param>255</param>
		<param>32</param>
		<param>1</param>
	</fireRef>
	<fireRef label="stage5B_boss_fire_3_02_s">
		<param>90</param>
		<param>$SPD/5+1.0</param>
		<param>1</param>
		<param>32</param>
		<param>224</param>
		<param>224</param>
		<param>1</param>
	</fireRef>
	<fireRef label="stage5B_boss_fire_3_02_s">
		<param>90</param>
		<param>$SPD/5+1.0</param>
		<param>2</param>
		<param>32</param>
		<param>32</param>
		<param>255</param>
		<param>1</param>
	</fireRef>
	<eval name="REF_BUL">0</eval>
	<repeat><times>16</times>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<repeat><times>6</times>
		<wait>2</wait>
		<eval name="SPD">(($SPD+$OFS)%6)</eval>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90+4.5</param>
			<param>$SPD/5+1.0</param>
			<param>1</param>
			<param>255</param>
			<param>32</param>
			<param>32</param>
			<param>$REF_BUL</param>
		</fireRef>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90</param>
			<param>$SPD/5+1.0</param>
			<param>2</param>
			<param>32</param>
			<param>255</param>
			<param>32</param>
			<param>$REF_BUL</param>
		</fireRef>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90</param>
			<param>$SPD/5+1.0</param>
			<param>1</param>
			<param>32</param>
			<param>224</param>
			<param>224</param>
			<param>$REF_BUL</param>
		</fireRef>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90</param>
			<param>$SPD/5+1.0</param>
			<param>2</param>
			<param>32</param>
			<param>32</param>
			<param>255</param>
			<param>$REF_BUL</param>
		</fireRef>
		<eval name="REF_BUL">(1-$REF_BUL)</eval>
	</repeat>
	</repeat>
	<!--弾幕終了-->
	
	<wait>40-36</wait>

	<!--止まる-->
	<accel>
		<vertical>-1*$YPOS/200</vertical><term>1</term>
		<horizontal>-1*$XPOS/200</horizontal><term>1</term>
	</accel>
	<wait>1</wait>
	<accel>
		<vertical>0</vertical><term>1</term>
		<horizontal>0</horizontal><term>1</term>
	</accel>

	<!-- 移動 -->
	<eval name="xPos">200+240*($_self_cx-gt320)</eval>
	<changeSpeed>
		<speed type="absolute">2</speed><term>30</term>
	</changeSpeed>

	<wait>1</wait>
	<changePosition type="center">
		<x>$xPos</x><y>120</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>30</term>
	</changeSpeed>
	<wait>30-1-3</wait>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

<!--ポッドが弾を出す順番は・・・-->
	<eval name="dir_offset2">(1-2*($_self_cx-gt320))</eval>

	<eval name="dir_bullet">8.1</eval>  <!--仮にaとする-->
	<eval name="bul_wait">10</eval>     <!--待ち時間、仮にbとする-->
	<eval name="bul_wait2">9</eval>     
	<!--上２つの変数、a/bが0.9を超えると下から攻撃が発生する恐れあり-->
	<wait>1</wait>

	<createRef label="stage5B_boss_create_3_01">
	<param>($dir_offset2*6.0)</param>	       <!--打ち上げ角度-->
	<param>$bul_wait</param>			<!--一発目の待ち時間-->
	<param>$bul_wait2</param>			<!--二発目以降の待ち時間-->
	<param>($dir_offset2*$dir_bullet)</param>       <!--配置した弾の角度-->
	</createRef>

	<createRef label="stage5B_boss_create_3_01">
	<param>($dir_offset2*13.5)</param>
	<param>$bul_wait</param>
	<param>$bul_wait2</param>
	<param>($dir_offset2*$dir_bullet)</param>
	</createRef>

	<createRef label="stage5B_boss_create_3_01">
	<param>($dir_offset2*22.0)</param>
	<param>$bul_wait</param>
	<param>$bul_wait2</param>
	<param>($dir_offset2*$dir_bullet)</param>
	</createRef>

	<createRef label="stage5B_boss_create_3_01">
	<param>($dir_offset2*33.0)</param>
	<param>$bul_wait</param>
	<param>$bul_wait2</param>
	<param>($dir_offset2*$dir_bullet)</param>
	</createRef>

	<createRef label="stage5B_boss_create_3_01">
	<param>($dir_offset2*50.0)</param>
	<param>$bul_wait</param>
	<param>$bul_wait2</param>
	<param>($dir_offset2*$dir_bullet)</param>
	</createRef>

	<wait>180</wait>

	<!-- No4移動＋反射弾 -->
	<eval name="XPOS">180-360*($_self_cx-gt320)</eval>	<!--予想出来るＸ移動量-->
	<eval name="YPOS">80+10*($_player_cy%4)-$_self_cy</eval>	 <!--予想出来るＹ移動量-->
	<eval name="STARTP">($_player_cx+$STARTP*90)%360</eval><!--弾幕開始位置-->

<!--移動先を決める-->
	<accel>
		<vertical>$YPOS/200</vertical><term>1</term>
		<horizontal>$XPOS/200</horizontal><term>1</term>
	</accel>
	<wait>1</wait>
	<accel>
		<vertical>0</vertical><term>1</term>
		<horizontal>0</horizontal><term>1</term>
	</accel>

	<!--弾幕開始-->
	<eval name="SPD">($_player_cy+$_self_cx)%6</eval>
	<eval name="OFS">2*(1+($_self_cx%3))</eval>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_3_02">
		<param>$STARTP</param>
		<param>$SPD/5+1.0</param>
		<param>1</param>
		<param>255</param>
		<param>32</param>
		<param>32</param>
		<param>1</param>
	</fireRef>
	<fireRef label="stage5B_boss_fire_3_02_s">
		<param>90</param>
		<param>$SPD/5+1.0</param>
		<param>2</param>
		<param>32</param>
		<param>255</param>
		<param>32</param>
		<param>1</param>
	</fireRef>
	<fireRef label="stage5B_boss_fire_3_02_s">
		<param>90</param>
		<param>$SPD/5+1.0</param>
		<param>1</param>
		<param>32</param>
		<param>224</param>
		<param>224</param>
		<param>1</param>
	</fireRef>
	<fireRef label="stage5B_boss_fire_3_02_s">
		<param>90</param>
		<param>$SPD/5+1.0</param>
		<param>2</param>
		<param>32</param>
		<param>32</param>
		<param>255</param>
		<param>1</param>
	</fireRef>
	<eval name="REF_BUL">0</eval>
	<repeat><times>13</times>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<repeat><times>6</times>
		<wait>2</wait>
		<eval name="SPD">(($SPD+$OFS)%6)</eval>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90+4.5</param>
			<param>$SPD/5+1.0</param>
			<param>1</param>
			<param>255</param>
			<param>32</param>
			<param>32</param>
			<param>$REF_BUL</param>
		</fireRef>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90</param>
			<param>$SPD/5+1.0</param>
			<param>2</param>
			<param>32</param>
			<param>255</param>
			<param>32</param>
			<param>$REF_BUL</param>
		</fireRef>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90</param>
			<param>$SPD/5+1.0</param>
			<param>1</param>
			<param>32</param>
			<param>224</param>
			<param>224</param>
			<param>$REF_BUL</param>
		</fireRef>
		<fireRef label="stage5B_boss_fire_3_02_s">
			<param>90</param>
			<param>$SPD/5+1.0</param>
			<param>2</param>
			<param>32</param>
			<param>32</param>
			<param>255</param>
			<param>$REF_BUL</param>
		</fireRef>
		<eval name="REF_BUL">(1-$REF_BUL)</eval>
	</repeat>
	</repeat>
	<!--弾幕終了-->
	
	<wait>40</wait>

	<!--止まる-->
	<accel>
		<vertical>-1*$YPOS/200</vertical><term>1</term>
		<horizontal>-1*$XPOS/200</horizontal><term>1</term>
	</accel>
	<wait>1</wait>
	<accel>
		<vertical>0</vertical><term>1</term>
		<horizontal>0</horizontal><term>1</term>
	</accel>

	<wait>180-3</wait>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<!-- センターへ戻す -->
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>130</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
</repeat>

<wait>120</wait>

<targetRevenge label="stage5B_boss_enemy"></targetRevenge>

</action>


<fire label="stage5B_boss_fire_3_01">
	<direction type="absolute">$1</direction>
	<speed>0</speed>
	<bulletRef label="stage5B_boss_bullet_3_01">
		<param>$2</param>
		<param>$3</param>
		<param>$4</param>
	</bulletRef>
</fire>
<fire label="stage5B_boss_fire_3_01_s">
	<direction type="sequence">$1</direction>
	<speed>0</speed>
	<bulletRef label="stage5B_boss_bullet_3_01">
		<param>$2</param>
		<param>$3</param>
		<param>$4</param>
	</bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_3_01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>

	<img type="maskadd">
		<file type="dds">dia</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>54</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$3</wait>
		<changeSpeed><speed>$1*2</speed><term>1</term></changeSpeed>
		<wait>1</wait>

		<changeSpeed><speed>0</speed><term>40</term></changeSpeed>
		<wait>60</wait>
		<changeDirection>
			<direction type="relative">180</direction><term>$2</term>
		</changeDirection>
		<wait>($2+20)</wait>
		<changeSpeed>
			<speed>$1*2</speed><term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<changeSpeed>
			<speed>$1</speed><term>60</term>
		</changeSpeed>
	</action>

</bullet>


<!--反射弾-->
<fire label="stage5B_boss_fire_3_02">
	<direction type="absolute">$1</direction>
	<speed>$2</speed>
	<bulletRef label="stage5B_boss_bullet_3_02">
		<param>$3</param>
		<param>$4</param>
		<param>$5</param>
		<param>$6</param>
		<param>$2</param>
		<param>$7</param>
	</bulletRef>
</fire>
<fire label="stage5B_boss_fire_3_02_s">
	<direction type="sequence">$1</direction>
	<speed>$2</speed>
	<bulletRef label="stage5B_boss_bullet_3_02">
		<param>$3</param>
		<param>$4</param>
		<param>$5</param>
		<param>$6</param>
		<param>$2</param>
		<param>$7</param>
	</bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_3_02">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>$4</red><green>$3</green><blue>$2</blue>
	</img>
	<action>
		<repeat><times>(-1+($_self_cy-lt4))</times>
			<wait>1</wait>
		</repeat>

<!--		<repeat><times>($6-gt0)</times> -->
			<fireRef label="stage5B_boss_fire_3_03">
			<param>(-(360/16)*($1-1)/2)</param>
			<param>$5</param>
			</fireRef>
			<repeat><times>($1-1)</times>
				<fireRef label="stage5B_boss_fire_3_03_2">
				<param>(360/16)</param>
				<param>$5</param>
				</fireRef>
			</repeat>
<!--		</repeat>	-->
		<vanish/>
	</action>
</bullet>


<fire label="stage5B_boss_fire_3_03">
	<direction type="aim">$1</direction>
	<speed>0</speed>
	<bulletRef label="stage5B_boss_bullet_3_03">
	<param>$2</param>
	</bulletRef>
</fire>
<fire label="stage5B_boss_fire_3_03_2">
	<direction type="sequence">$1</direction>
	<speed>0</speed>
	<bulletRef label="stage5B_boss_bullet_3_03">
	<param>$2</param>
	</bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_3_03">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>120</red><green>120</green><blue>2</blue>
	</img>
	<action>
		<changeSpeed><speed>$1</speed><term>60</term></changeSpeed>
	</action>
</bullet>

<!--ポッド、当分残る弾を射出する-->
<create label="stage5B_boss_create_3_01">
	<speed>2.4</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>300</vital>	<!-- Tensionを使用してぎりぎり倒せる -->
	<enemyRef label="stage5B_boss_enemy_3_01">
		<param>$2</param>       <!--一発目の待ち時間-->
		<param>$3</param>       <!--二発目以降の待ち時間-->
		<param>$4</param>       <!--配置した弾の角度-->
	</enemyRef>
</create>

<enemy label="stage5B_boss_enemy_3_01">

	<score>1000</score>
	<inv>30</inv>
	<prate>0</prate>
	<child>1</child>

	<presentRef label="stage5B_boss_enemy_present_3_01"></presentRef>
	<revengeRef label="stage5B_boss_enemy_revenge_3_01"><param>3</param><param>30</param><param>200</param></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>

	<action>
		<accel>
			<vertical>4</vertical><term>120</term>
		</accel>
		<wait>$1</wait>

		<!--しばらく残る弾を射出-->
		<eval name="datacounter">0</eval>
		<repeat><times>-1</times>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage5B_boss_fire_3_04">
			<param>1.9</param>
			<param>($4+$datacounter)</param>
			</fireRef>
			<wait>$2</wait>
			<evaladd name="datacounter">$3</evaladd>
		</repeat>

	</action>

</enemy>

<present label="stage5B_boss_enemy_present_3_01">
	<img type="maskadd">
		<file type="dds">circle_enemy</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>2</red><green>200</green><blue>2</blue>
	</img>

	<rotateImg>
		<direction>10</direction><term>-1</term>
	</rotateImg>

</present>

<revenge label="stage5B_boss_enemy_revenge_3_01">
	<presentRef label="enemy_revenge_present_01"></presentRef>
	<soundRef label="enemy_break1"></soundRef>
	
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>

	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>

	<eval name="localcounter">$_counter</eval>

	<actionRef label="item_counter_01"><param>$1</param><param>$2</param><param>$3</param><param>12</param><param>$localcounter</param></actionRef>
	<wait>45-$1*4</wait>
	<vanish></vanish>
</revenge>


<fire label="stage5B_boss_fire_3_04">
	<speed>0</speed>
	<direction type="relative">$2</direction>
	<bulletRef label="stage5B_boss_bullet_3_04"><param>$1</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_3_04">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>255</red><green>32</green><blue>224</blue>
	</img>

	<action>
		<wait>375</wait>
		<changeSpeed>
			<speed>$1</speed><term>60</term>
		</changeSpeed>
	</action>

</bullet>

<!-- ********************************************************************* -->
<!-- *** ボスのアクション					      *** -->
<!-- *** 第４形態						      *** -->
<action  label="stage5B_boss_04_action">

<!-- センターポイントへ移動 -->
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>130</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->
	<!-- 炸裂弾 -->
<repeat><times>4</times>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>

	<changeDirection>
		<direction type="absolute">-80+160*(($_player_cx+$_player_cy)%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">0.8</speed><term>10</term>
	</changeSpeed>
	<wait>10</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>3</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50-17-17</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>17</wait>

	
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>3</param><param>12</param><param>1</param></fireRef>
	<repeat><times>17</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
	</repeat>
	<wait>3</wait>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>5</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50-17-17</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1</speed><term>10</term>
	</changeSpeed>
	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>13</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50-17</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>3</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>17</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>3</wait>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>80-3-17-15</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	
	<actionRef label="stage5_common_bit_hard"></actionRef>
	<!-- wait 15 -->

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

<repeat><times>4</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>

	<changeDirection>
		<direction type="absolute">-80+160*(($_player_cx+$_player_cy)%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1</speed><term>10</term>
	</changeSpeed>
	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50</wait>
	
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>3</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>17</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1</speed><term>10</term>
	</changeSpeed>
	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50</wait>
	
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>3</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>17</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>8</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>20</param><param>12</param><param>-1</param></fireRef>
	</repeat>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_4_01"><param>0</param><param>12</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	<repeat><times>7</times>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage5B_boss_fire_4_01_s"><param>24</param><param>12</param><param>-1</param></fireRef>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>



<wait>100</wait>

<targetRevenge label="stage5B_boss_enemy"></targetRevenge>

</action>

<fire label="stage5B_boss_fire_4_01">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_4_01"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_4_01_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_4_01"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_4_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>9</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>65</red><green>255</green><blue>140</blue>
	</img>

	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10</wait>

		<eval name="wait_time">5</eval>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="stage5B_boss_fire_4_02"><param>0</param><param>2.3</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_4_02_s"><param>45</param><param>2.3</param><param>$wait_time</param></fireRef>
		<fireRef label="stage5B_boss_fire_4_02_s"><param>-90</param><param>2.3</param><param>$wait_time</param></fireRef>
		<repeat><times>2</times>
			<wait>5</wait>
			<fireRef label="stage5B_boss_fire_4_02_s"><param>45</param><param>2.3</param><param>$wait_time</param></fireRef>
			<fireRef label="stage5B_boss_fire_4_02_s"><param>45</param><param>2.3</param><param>$wait_time</param></fireRef>
			<fireRef label="stage5B_boss_fire_4_02_s"><param>-90</param><param>2.3</param><param>$wait_time</param></fireRef>
		</repeat>

		<changeDirection>
			<direction type="relative">160*$2</direction><term>120</term>
		</changeDirection>

		<changeSpeed>
			<speed type="absolute">1.9</speed><term>90</term>
		</changeSpeed>

	</action>
</bullet>

<fire label="stage5B_boss_fire_4_02">
	<speed>0</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_4_02"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_4_02_ab">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_4_02"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_4_02_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_4_02"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_4_02">

	<collision type="sync"><left>-2</left><top>-5</top><right>2</right><bottom>5</bottom></collision>
	<img type="maskadd">
		<file type="dds">sword32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>24</width><height>16</height>
		<alpha>255</alpha><red>25</red><green>255</green><blue>20</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>$2</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>



<!-- ********************************************************************* -->
<!-- *** ボスのアクション					      *** -->
<!-- *** 第５形態						      *** -->
<action  label="stage5B_boss_05_action">

<!-- センターポイントへ移動 -->
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">3.5</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>200</x><y>150</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->

	<createRef label="stage5C_boss_create_5_01"><param>70</param><param>1.6</param><param>12</param><param>23</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-68</param><param>1.6</param><param>19</param><param>25</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>102</param><param>1.6</param><param>12</param><param>27</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-112</param><param>1.6</param><param>20</param><param>29</param></createRef>
	<wait>15</wait>

	<changeDirection>
		<direction type="absolute">90</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">0.7</speed><term>10</term>
	</changeSpeed>

	<repeat><times>10</times>
	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>60-$_player_cx%14</param><param>1.6</param><param>12</param><param>20</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-60-$_player_cy%14</param><param>1.6</param><param>14</param><param>22</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>105+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>20</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-113-($_player_cy*8)%14</param><param>1.6</param><param>15</param><param>24</param></createRef>
	<wait>15</wait>
	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01"><param>83-$_player_cx%14</param><param>1.6</param><param>12</param><param>22</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-80-$_player_cy%14</param><param>1.6</param><param>14</param><param>20</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>101+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>25</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-109-($_player_cy*8)%14</param><param>1.6</param><param>16</param><param>23</param></createRef>
	<wait>15</wait>

	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>60-$_player_cx%14</param><param>1.6</param><param>12</param><param>24</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-60-$_player_cy%14</param><param>1.6</param><param>14</param><param>22</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>103+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>22</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-112-($_player_cy*8)%14</param><param>1.6</param><param>15</param><param>20</param></createRef>
	<wait>15</wait>
	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01"><param>83-$_player_cx%14</param><param>1.6</param><param>12</param><param>20</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-80-$_player_cy%14</param><param>1.6</param><param>14</param><param>21</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>100+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>25</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-106-($_player_cy*8)%14</param><param>1.6</param><param>16</param><param>23</param></createRef>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<wait>15</wait>

	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>60-$_player_cx%14</param><param>1.6</param><param>12</param><param>20</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-60-$_player_cy%14</param><param>1.6</param><param>14</param><param>23</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>105+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>19</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-113-($_player_cy*8)%14</param><param>1.6</param><param>15</param><param>21</param></createRef>
	<wait>15</wait>
	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01"><param>83-$_player_cx%14</param><param>1.6</param><param>12</param><param>22</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-80-$_player_cy%14</param><param>1.6</param><param>14</param><param>20</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>101+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>19</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-109-($_player_cy*8)%14</param><param>1.6</param><param>16</param><param>23</param></createRef>
	<wait>15</wait>

	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>60-$_player_cx%14</param><param>1.6</param><param>12</param><param>18</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-60-$_player_cy%14</param><param>1.6</param><param>14</param><param>22</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>103+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>23</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01_2"><param>-112-($_player_cy*8)%14</param><param>1.6</param><param>15</param><param>20</param></createRef>
	<wait>15</wait>
	<wait>30</wait>
	<createRef label="stage5C_boss_create_5_01"><param>83-$_player_cx%14</param><param>1.6</param><param>12</param><param>21</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-80-$_player_cy%14</param><param>1.6</param><param>14</param><param>21</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>100+($_player_cx*7)%14</param><param>1.6</param><param>12</param><param>25</param></createRef>
	<wait>15</wait>
	<createRef label="stage5C_boss_create_5_01"><param>-106-($_player_cy*8)%14</param><param>1.6</param><param>16</param><param>23</param></createRef>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<wait>15-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	</repeat>

	<wait>30</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	
<wait>60</wait>

<targetRevenge label="stage5B_boss_enemy"></targetRevenge>

</action>

<!-- 赤魔法陣 -->
<create label="stage5C_boss_create_5_01">
	<speed>$2</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5C_boss_enemy_5_01"><param>$3</param><param>$4</param></enemyRef>
</create>


<enemy label="stage5C_boss_enemy_5_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>
	<img type="normal">
		<file type="dds">s_mahoujin</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<wait>$1</wait>

		<repeat><times>10</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_5_01"><param>-80</param><param>2.2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_s"><param>40</param><param>2.2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_s"><param>40</param><param>2.2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_s"><param>40</param><param>2.2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_s"><param>40</param><param>2.2</param></fireRef>	

			<wait>$2</wait>
		</repeat>
	</action>
</enemy>



<!-- 緑魔法陣 -->
<create label="stage5C_boss_create_5_01_2">
	<speed>$2</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage5C_boss_enemy_5_02"><param>$3</param><param>$4</param></enemyRef>
</create>


<enemy label="stage5C_boss_enemy_5_02">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>
	<img type="normal">
		<file type="dds">s_mahoujin3</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>
		<wait>$1</wait>

		<repeat><times>5</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_5_01_2"><param>-66+$_player_cx%12</param><param>2.3</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>2.2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>2.0</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>2.2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>1.9</param></fireRef>	

			<wait>$2</wait>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_5_01_2"><param>-112+($_player_cy*9)%24</param><param>2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>2.2</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>2.1</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>2.3</param></fireRef>
			<fireRef label="middle_boss_fire_5_01_2_s"><param>40</param><param>1.9</param></fireRef>	

			<wait>$2</wait>
		</repeat>
	</action>
</enemy>



<fire label="middle_boss_fire_5_01">
	<speed>3.3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_5_01"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_5_01_s">
	<speed>3.3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_5_01"><param>$2</param></bulletRef>
</fire>


<bullet label="middle_boss_bullet_5_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>255</red><green>2</green><blue>25</blue>
	</img>

	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>12</term>
		</changeSpeed>

		<changeDirection>
			<direction type="relative">3</direction><term>60</term>
		</changeDirection>

	</action>

</bullet>


<fire label="middle_boss_fire_5_01_2">
	<speed>3.3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_5_01_2"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_5_01_2_s">
	<speed>3.3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_5_01_2"><param>$2</param></bulletRef>
</fire>


<bullet label="middle_boss_bullet_5_01_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>25</blue>
	</img>

	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>12</term>
		</changeSpeed>

		<changeDirection>
			<direction type="relative">-3</direction><term>60</term>
		</changeDirection>

	</action>

</bullet>




<!-- ********************************************************************* -->
<!-- *** ボスのアクション					      *** -->
<!-- *** 第６形態（ノーマル最終）				      *** -->
<action  label="stage5B_boss_06_action">

<!-- 魔法陣呼び出し -->
<actionRef label="mahoujin"><param>190</param><param>195</param><param>195</param><param>5</param></actionRef>
<!-- 画像呼び出し -->
<createRef label="stage5B_boss_et"></createRef>

<!-- センターポイントへ移動 -->
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">1.0</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>130</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>
	<global name="ttc_start_check">$_ttc_frame</global>
	<global name="miss_start">$_misscount</global>

	<wait>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->

	<createRef label="stage5B_boss_create_5_01"><param>320</param><param>32</param><param>32</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>190</param><param>32</param><param>20</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>450</param><param>32</param><param>44</param><param>90</param></createRef>

	<wait>5</wait>

<repeat><times>18</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_5_01"><param>183</param><param>1.9</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>1.9</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>17</param><param>1.9</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>1.9</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>1.9</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>15</param><param>1.9</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>1.9</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>1.9</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>13</param><param>1.9</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2</param>></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>1.9</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>1.9</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>1.9</param></fireRef>
	</repeat>

<!--	<wait>40</wait> -->
	<changeDirection>
		<direction type="absolute">-80+160*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.6</speed><term>15</term>
	</changeSpeed>
	<wait>2</wait>
	<createRef label="stage5B_boss_create_5_01"><param>156+($_player_cy%9)*15</param><param>32</param><param>20</param><param>90</param></createRef>
	<wait>18</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>8</wait>
	<createRef label="stage5B_boss_create_5_01"><param>370+($_player_cx%6)*20</param><param>32</param><param>32</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>156+($_player_cy%9)*15</param><param>32</param><param>20</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>270+(($_player_cx+$_player_cy)%7)*20</param><param>32</param><param>44</param><param>90</param></createRef>
	<wait>2</wait>

	<!-- 2回目 -->
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>13</param><param>2.2</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>2.2</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>17</param><param>2.2</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.2</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.2</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>15</param><param>2.2</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.2</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.2</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>13</param><param>2.2</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2</param>></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2.2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>2.2</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2.2</param></fireRef>
	</repeat>

	<wait>22</wait>
	<createRef label="stage5B_boss_create_5_01"><param>370+($_player_cx%6)*20</param><param>32</param><param>32</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>156+($_player_cy%9)*15</param><param>32</param><param>20</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>270+(($_player_cx+$_player_cy)%7)*20</param><param>32</param><param>44</param><param>90</param></createRef>
	<wait>23</wait>

	<!-- 3回目 -->
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>8</param><param>2.5</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>18</param><param>2.5</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>17</param><param>2.5</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.5</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>16</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>2</param><param>2.5</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>15</param><param>2.5</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.5</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>14</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>4</param><param>2.5</param></fireRef>
	</repeat>

	<wait>1</wait>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>13</param><param>2.5</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2</param>></fireRef>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2.5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>12</param><param>2.5</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_01_s"><param>6</param><param>2.5</param></fireRef>
	</repeat>

<!--	<wait>40</wait> -->
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.6</speed><term>15</term>
	</changeSpeed>
	<wait>10</wait>
	<createRef label="stage5B_boss_create_5_01"><param>156+($_player_cx%6)*20</param><param>32</param><param>32</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>270+($_player_cy%9)*15</param><param>32</param><param>20</param><param>90</param></createRef>
	<createRef label="stage5B_boss_create_5_01"><param>370+(($_player_cx+$_player_cy)%7)*20</param><param>32</param><param>44</param><param>90</param></createRef>
	<wait>10</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>10-3</wait>
	<createRef label="stage5B_boss_create_5_01"><param>370+($_player_cx%6)*20</param><param>32</param><param>32</param><param>90</param></createRef>

	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<!-- 4回目はちょっと違う -->
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage5B_boss_fire_5_02"><param>2</param><param>2.6</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
	<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2</param></fireRef>
	</repeat>
	<repeat><times>6</times>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120+5</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<wait>1</wait>
		<repeat><times>3</times>
			<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2</param></fireRef>
		</repeat>
	</repeat>


	<wait>1</wait>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120-25</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<wait>1</wait>
		<repeat><times>3</times>
			<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2</param></fireRef>
		</repeat>
	<repeat><times>6</times>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120-6</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<wait>1</wait>
		<repeat><times>3</times>
			<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2</param></fireRef>
		</repeat>
	</repeat>
	<wait>1</wait>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120+24</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<wait>1</wait>
		<repeat><times>3</times>
			<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2</param></fireRef>
		</repeat>
	<repeat><times>6</times>
		<wait>3</wait>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120+7</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2.6</param></fireRef>
		<wait>1</wait>
		<repeat><times>3</times>
			<fireRef label="stage5B_boss_fire_5_02_s"><param>120</param><param>2</param></fireRef>
		</repeat>
	</repeat>


</repeat>

<wait>120</wait>
<targetRevenge label="stage5B_boss_enemy"></targetRevenge>

</action>



<create label="stage5B_boss_create_5_01">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_enemy_5_01"><param>$3</param><param>$4</param></enemyRef>
</create>

<enemy label="stage5B_boss_enemy_5_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<child>1</child>

	<img type="normal">
		<file type="dds">s_mahoujin3</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>4</width><height>4</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>


	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>48</width><height>48</height><term>50</term>
	</changeImgSize>

	<action>

		<wait>$1</wait>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage5B_boss_fire_laser_dummy"><param>180</param><param>8</param></fireRef>
		<changeColor>
			<alpha>20</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
		</changeColor>
		<vanish/>

	</action>
</enemy>


<fire label="stage5B_boss_fire_5_01">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_5_01"><param>$2</param></bulletRef>
</fire>

<fire label="stage5B_boss_fire_5_01_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_5_01"><param>$2</param></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_5_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*1</left><top>0</top><right>32*2</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>

	</action>
</bullet>

<fire label="stage5B_boss_fire_5_02">
	<speed>$2</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_5_02"></bulletRef>
</fire>

<fire label="stage5B_boss_fire_5_02_s">
	<speed>$2</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_bullet_5_02"></bulletRef>
</fire>

<bullet label="stage5B_boss_bullet_5_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>25</red><green>255</green><blue>2</blue>
	</img>
	<action>
	</action>
</bullet>

<!-- レーザー用 -->
<fire label="stage5B_boss_fire_laser_dummy">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_laser_dummy"><param>$1</param><param>$2</param></bulletRef>
</fire>

<bullet label="stage5B_boss_laser_dummy">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>2</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<child>1</child>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>

	<action>
		<eval name="laser_width">28</eval>
		<fireRef label="stage5B_boss_laser_01"><param>$laser_width</param><param>$1</param><param>$2</param></fireRef>
		<wait>1</wait>
		<repeat><times>16</times>
			<evaladd name="laser_width">-1</evaladd>
			<fireRef label="stage5B_boss_laser_01_s"><param>$laser_width</param><param>0</param><param>$2</param></fireRef>
			<wait>1</wait>
			<createRef label="stage5B_boss_laser_create_01_s"><param>$laser_width</param><param>0</param><param>$2</param></createRef>
			<wait>1</wait>
		</repeat>
		<repeat><times>8</times>
			<evaladd name="laser_width">-1</evaladd>
			<createRef label="stage5B_boss_laser_create_01_s"><param>$laser_width</param><param>0</param><param>$2</param></createRef>
			<wait>1</wait>
			<createRef label="stage5B_boss_laser_create_01_s"><param>$laser_width</param><param>0</param><param>$2</param></createRef>
			<wait>1</wait>
		</repeat>

		<wait>300</wait>

		<vanish/>

	</action>

</bullet>

<fire label="stage5B_boss_laser_01">
	<speed>2.4</speed>
	<direction type="absolute">$2</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_laser_01"><param>$1</param><param>$3</param></bulletRef>
</fire>

<fire label="stage5B_boss_laser_01_s">
	<speed>2.4</speed>
	<direction type="sequence">$2</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="stage5B_boss_laser_01"><param>$1</param><param>$3</param></bulletRef>
</fire>


<bullet label="stage5B_boss_laser_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$1/2-1</radius></collision>

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$1</width><height>$1+2</height>
		<alpha>230</alpha><red>123</red><green>255</green><blue>106</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
<!--
	<child>1</child>
-->
	<action>
		<wait>$2</wait>
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>60</term>
		</changeSpeed>

		<wait>60</wait>

		<changeSpeed>
			<speed type="absolute">3.4</speed><term>60</term>
		</changeSpeed>
	</action>

</bullet>


<create label="stage5B_boss_laser_create_01_s">
	<speed>2.4</speed>
	<direction type="sequence">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy+1</cy>
	<vital>1</vital>
	<enemyRef label="stage5B_boss_laser_enemy_01"><param>$1</param><param>$3</param></enemyRef>
</create>


<enemy label="stage5B_boss_laser_enemy_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<revengeRef label="stage5B_boss_laser_revenge_01"></revengeRef>

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$1</width><height>$1+2</height>
		<alpha>230</alpha><red>123</red><green>255</green><blue>106</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<child>1</child>

	<action>
		<wait>$2</wait>
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>60</term>
		</changeSpeed>

		<wait>60</wait>

		<changeSpeed>
			<speed type="absolute">3.4</speed><term>60</term>
		</changeSpeed>
	</action>
</enemy>

<revenge label="stage5B_boss_laser_revenge_01">
	<vanish/>
</revenge>

<!-- ********************************************************************* -->
<!-- *** ボスのリベンジ						*** -->
<!-- ***							       *** -->
<!-- *** 次の形態のボスを作成する必要がある			    *** -->

<revenge label="stage5B_boss_01_revenge">

	<eval name="localcounter">$_counter</eval>

	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>

	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフの増加 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>52-($_self_cx%9)*13</param><param>52-($_self_cx%14)*8</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>
	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>30/2</param><param>$counter_e</param><param>1560</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="stage5B_boss_02_create"></createRef>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>
</revenge>


<revenge label="stage5B_boss_02_revenge">

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	
	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフの増加 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>52-($_self_cx%9)*13</param><param>52-($_self_cx%14)*8</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>
	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>34/2</param><param>$counter_e</param><param>1360</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="stage5B_boss_03_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>

<revenge label="stage5B_boss_03_revenge">
	<accel>
		<vertical>0</vertical><term>1</term>
		<horizontal>0</horizontal><term>1</term>
	</accel>

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	
	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフの増加 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>52-($_self_cx%9)*13</param><param>52-($_self_cx%14)*8</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>
	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>36/2</param><param>$counter_e</param><param>1550</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="stage5B_boss_04_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>

<revenge label="stage5B_boss_04_revenge">

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	
	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフの増加 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>52-($_self_cx%9)*13</param><param>52-($_self_cx%14)*8</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>
	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>44/2</param><param>$counter_e</param><param>1500</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="stage5B_boss_05_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>

<revenge label="stage5B_boss_05_revenge">

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	
	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフの増加 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>52-($_self_cx%9)*13</param><param>52-($_self_cx%14)*8</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>
	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>46/2</param><param>$counter_e</param><param>1180</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>
	<wait>60</wait>

	<!-- *** 次の形態のボスの作成 *** -->
	<!-- *** enemy tension形態のため、TTC発動、ミスのチェック *** -->
	<global name="ttc_start">$_ttc_frame</global>
	<createRef label="stage5B_boss_06_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>


<revenge label="stage5B_boss_06_revenge">
	<!-- *** ボス戦の後始末 *** -->
	<eval name="localcounter">$_counter</eval>
	<actionRef label="bg_fadein_action"></actionRef>

	<!-- enemy tension形態のため、TTC発動、ミスのチェック *** -->
	<eval name="ttc_end">$_ttc_frame</eval>
	<eval name="miss_end">$_misscount</eval>


	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>


	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>
	<!-- 敵ブルブルアクション -->
	<soundRef label="boss_break2"></soundRef>
	<soundRef label="boss_tremble_sound"></soundRef>
	<actionRef label="boss_tremble"></actionRef>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_3"></actionRef>

	<!-- *** ライフ表示を消す *** -->
	<targetRevenge label="boss_life"></targetRevenge>
	<!-- *** ボス名称表示を消す *** -->
	<targetRevenge label="boss_name_stage5"></targetRevenge>

	<wait>1</wait>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>32-($_self_cx%9)*8</param><param>32-$_self_cx%64</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<!-- *** ETC Break 判定 -->
	<eval name="etb_num">(($ttc_end-$__ttc_start)-eq$localcounter)*($miss_end-eq$__miss_start)*($__ttc_start_check-gt240)</eval>
	<repeat><times>$etb_num-eq0</times>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<wait>1</wait>

	<!-- 01ばらまき -->
	<actionRef label="break_action"></actionRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>
	<repeat><times>($_revenge_state-eq1)</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>2</param><param>8</param></actionRef>
			<createRef label="item_create_01_etb"><param>-28000</param><param>1250000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>50/2</param><param>$counter_e</param><param>1890</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>80</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>

	<!-- *** 終了 *** -->
	<vanish></vanish>	

</revenge>



</exbulletml>
