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

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

<action label="stage6C_middle_boss">

	<!-- 会話シーン  -->
	<actionRef label="stage_midboss_comm_text_action"></actionRef>

	<!-- ボス体力定義 -->
	<repeat><times>$__twins_set-eq0</times>
		<global name="maiha_vital1">1700</global>
		<global name="maiha_vital2">1700</global>
		<global name="maiha_vital3">1610</global>
		<global name="maiha_vital4">1700</global>
		<global name="maiha_vital5">1800</global>
		<global name="maiha_vital6">2000</global>
		<global name="maiha_rev_time">2220</global>
	</repeat>
	<repeat><times>$__twins_set-eq1</times>
		<global name="maiha_vital1">380</global>
		<global name="maiha_vital2">400</global>
		<global name="maiha_vital3">300</global>
		<global name="maiha_vital4">390</global>
		<global name="maiha_vital5">410</global>
		<global name="maiha_vital6">500</global>
		<global name="maiha_rev_time">2020</global>
	</repeat>

	<actionRef label="boss_warning_action"></actionRef>

	<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">17_stage6c_secondhalf</file>
		</track>
		<play>
			<flag>1</flag><loop>44100*2*2*25</loop>
		</play>
	</sound>
	<actionRef label="stage6_4_bgm_title_action"></actionRef>

	<!-- *** 第 N 形態 *** -->
	<global name="boss_state">1</global>
	
	<!-- *** ボスの初期ライフ *** -->
	<global name="boss_life">5</global>

	<!-- 出現用ボスを消去 -->
	<targetRevenge label="stage6C_boss_enemy_appear_maiha_c"></targetRevenge>

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


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

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

</action>





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

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

<create label="enemy_create_middle_boss">

	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$__boss_cx</cx><cy>$__boss_cy</cy>
 	<vital>$__maiha_vital1</vital>
	<inv>40</inv>
	<score>260000</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>$__maiha_vital2</vital>
	<inv>40</inv>
	<score>310000</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>$__maiha_vital3</vital>
	<inv>40</inv>
	<score>360000</score>
	<prate>$__middle_boss_prate2</prate>
	<enemyRef label="enemy_middle_boss"></enemyRef>

</create>

<create label="enemy_create_middle_boss4">

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

</create>

<create label="enemy_create_middle_boss5">

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

</create>

<create label="enemy_create_middle_boss6">

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

</create>


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


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

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

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

	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage6C_middle_boss_01_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6C_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="stage6C_middle_boss_02_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6C_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="stage6C_middle_boss_03_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6C_middle_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="stage6C_middle_boss_04_revenge"></revengeRef>
		<global name="timer">14</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6C_middle_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="stage6C_middle_boss_05_revenge"></revengeRef>
		<global name="timer">14</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6C_middle_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="stage6C_middle_boss_06_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6C_middle_boss_06_action"></actionRef>
	</repeat>

</enemy>


<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第１形態　				*** -->
<action  label="stage6C_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>3</times>
	<eval name="FIRSTO">15*360/100+360/32*2</eval>
	<eval name="NEXTO">60</eval>
	<eval name="WAITO">2</eval>
	<wait>1</wait>

	<repeat><times>8</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage6_bossFire_0X0000A"><param>-1*$FIRSTO</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180+360/32</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		</repeat>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0000A"><param>$FIRSTO</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180-360/32</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		</repeat>
		<wait>6</wait>

		<evaladd name="FIRSTO">-3.6</evaladd>
		<evaladd name="WAITO">2</evaladd>
		<wait>1</wait>


		<fireRef label="stage6_bossFire_0X0000A"><param>-1*$FIRSTO</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180+360/32</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		</repeat>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0000A"><param>$FIRSTO</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180-360/32</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		</repeat>
		<wait>6</wait>

		<evaladd name="FIRSTO">-3.6</evaladd>
		<evaladd name="WAITO">2</evaladd>
		<wait>1</wait>
	</repeat>
	
	<wait>30-24</wait>
	<eval name="XPOS">(($_player_cx-160)/2)+320</eval>
	<repeat><times>($_player_cx-gt320)</times>
		<eval name="XPOS">(($_player_cx-320)/2)+200</eval>
	</repeat>
	<eval name="YPOS">(($_self_cy-80+$_player_cx*23)%80)+80</eval>
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>
	<changePosition type="center">
		<x>$XPOS</x><y>$YPOS</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
	<wait>59-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<eval name="FIRSTO">15*360/100+360/32</eval>
	<eval name="NEXTO">60</eval>
	<eval name="WAITO">32</eval>
	<wait>1</wait>

	<repeat><times>8</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage6_bossFire_0X0000A"><param>-1*$FIRSTO</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180+360/32</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		</repeat>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0000A"><param>$FIRSTO</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180-360/32</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		</repeat>
		<wait>6</wait>

		<evaladd name="FIRSTO">-3.6</evaladd>
		<evaladd name="WAITO">-2</evaladd>
		<wait>1</wait>


		<fireRef label="stage6_bossFire_0X0000A"><param>-1*$FIRSTO</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180+360/32</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		</repeat>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0000A"><param>$FIRSTO</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180-360/32</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
			<fireRef label="stage6_bossFire_0X0000A_s"><param>180</param><param>2</param><param>$WAITO</param><param>-1*$NEXTO</param></fireRef>
		</repeat>
		<wait>6</wait>

		<evaladd name="FIRSTO">-3.6</evaladd>
		<evaladd name="WAITO">-2</evaladd>
		<wait>1</wait>
	</repeat>

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

	<eval name="NEXTO">0</eval>
	<eval name="WAITO">18</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6_bossFire_0X0002A"><param>0</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>

	<evaladd name="NEXTO">360/96</evaladd>
	<evaladd name="WAITO">2</evaladd>
	<wait>4</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72+360/64</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>

	<repeat><times>11</times>
		<evaladd name="NEXTO">360/96</evaladd>
		<evaladd name="WAITO">2</evaladd>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72+360/64</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>

		<evaladd name="NEXTO">360/96</evaladd>
		<evaladd name="WAITO">2</evaladd>
		<wait>4</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72+360/64</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	</repeat>

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

	<eval name="XPOS">(($_player_cx-160)/2)+320</eval>
	<repeat><times>($_player_cx-gt320)</times>
		<eval name="XPOS">(($_player_cx-320)/2)+200</eval>
	</repeat>
	<eval name="YPOS">(($_self_cy-80+$_player_cx*23)%80)+80</eval>
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>
	<changePosition type="center">
		<x>$XPOS</x><y>$YPOS</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
	<wait>60</wait>

	<eval name="NEXTO">0</eval>
	<eval name="WAITO">66</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6_bossFire_0X0002A"><param>0</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<evaladd name="NEXTO">-360/96</evaladd>
	<evaladd name="WAITO">-2</evaladd>
	<wait>4</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72-360/64</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>

	<repeat><times>11</times>
		<evaladd name="NEXTO">-360/96</evaladd>
		<evaladd name="WAITO">-2</evaladd>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72-360/64</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<evaladd name="NEXTO">-360/96</evaladd>
		<evaladd name="WAITO">-2</evaladd>
		<wait>4</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72-360/64</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0002A_s"><param>72</param><param>$WAITO</param><param>$NEXTO</param></fireRef>
	</repeat>

	<wait>200-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>


<fire label="stage6_bossFire_0X0000A">
	<speed>3.2</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6_bullet0X0000"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>
<fire label="stage6_bossFire_0X0000A_s">
	<speed>3.2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6_bullet0X0000"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

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

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>12</width><height>12</height>
		<alpha>235</alpha><red>224</red><green>124</green><blue>32</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>

	<setReflect>
		<flag>4</flag><num>1</num>
	</setReflect>

	<action>
		<changeSpeed>
			<speed>$1</speed><term>6</term>
		</changeSpeed>
		<wait>$2</wait>
		<actionRef label="enemy_bullet_action2"><param>32</param></actionRef>
		<fireRef label="stage6_bossFire_0X0001">
			<param>$3</param>
			<param>$1</param>
		</fireRef>
	</action>

</bullet>

<fire label="stage6_bossFire_0X0001">
	<speed>$2</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="stage6_bullet0X0001"></bulletRef>
</fire>

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

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>12</width><height>12</height>
		<alpha>235</alpha><red>224</red><green>124</green><blue>32</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<setReflect>
		<flag>4</flag><num>1</num>
	</setReflect>
	<action>
	</action>
</bullet>

<fire label="stage6_bossFire_0X0002A">
	<speed>5.0</speed>
	<direction type="absolute">0</direction>
	<bulletRef label="stage6_bullet0X0002">
	<param>$2</param>
	<param>$3</param>
	</bulletRef>
</fire>
<fire label="stage6_bossFire_0X0002A_s">
	<speed>5.0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6_bullet0X0002">
	<param>$2</param>
	<param>$3</param>
	</bulletRef>
</fire>

<bullet label="stage6_bullet0X0002">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>9</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>20</width><height>20</height>
		<alpha>235</alpha><red>224</red><green>124</green><blue>32</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<setReflect>
		<flag>15</flag><num>3</num>
	</setReflect>
	<action>
		<changeSpeed>
			<speed>2.0</speed><term>6</term>
		</changeSpeed>
		<wait>$1</wait>
		<changeSpeed>
			<speed>0</speed><term>6</term>
		</changeSpeed>
		<wait>6</wait>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="stage6_bossFire_0X0003A"><param>$2</param><param>5</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0003A_s"><param>72</param><param>4</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0003A_s"><param>72</param><param>3</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0003A_s"><param>72</param><param>2</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage6_bossFire_0X0003A_s"><param>72</param><param>1</param></fireRef>
		<vanish/>
	</action>

</bullet>

<fire label="stage6_bossFire_0X0003A">
	<speed>0</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="stage6_bullet0X0003"><param>$2</param></bulletRef>
</fire>
<fire label="stage6_bossFire_0X0003A_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6_bullet0X0003"><param>$2</param></bulletRef>
</fire>

<bullet label="stage6_bullet0X0003">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>14</width><height>14</height>
		<alpha>235</alpha><red>255</red><green>255</green><blue>32</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<setReflect>
		<flag>4</flag><num>1</num>
	</setReflect>
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed>2.1</speed><term>40</term>
		</changeSpeed>
	</action>

</bullet>


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

<action  label="stage6C_middle_boss_02_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1</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>

<!-- 弾幕開始 -->

<repeat><times>12</times>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_2_01"><param>0</param><param>1</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>2</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>3</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>4</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>5</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>6</param><param>120</param><param>120</param><param>1</param></fireRef>

	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_2_05_s"><param>51</param><param>15</param><param>1.8</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_2_05_s"><param>40</param><param>15</param><param>1.8</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_2_05_s"><param>40</param><param>14</param><param>1.8</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>2</wait>

	<changeSpeed>
		<speed type="absolute">1.5</speed><term>15</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">-75+150*($_player_cx-lt320)</direction><term>1</term>
	</changeDirection>
	<wait>60</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>40</wait>

	<wait>70</wait>

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_2_01"><param>0</param><param>1</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>2</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>3</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>4</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>5</param><param>120</param><param>120</param><param>1</param></fireRef>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_2_01_s"><param>60</param><param>6</param><param>120</param><param>120</param><param>1</param></fireRef>

	<repeat><times>4</times>
		<fireRef label="middle_boss_fire_2_05_s"><param>51</param><param>15</param><param>1.8</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_2_05_s"><param>40</param><param>15</param><param>1.8</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="middle_boss_fire_2_05_s"><param>40</param><param>14</param><param>1.8</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>2</wait>
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>15</term>
	</changeSpeed>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<wait>60</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>80-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>


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

</action>

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

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

<bullet label="middle_boss_bullet_2_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>14</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>30+$1</wait>
		<changeSpeed>
			<speed type="absolute">1.2</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">$2</direction><term>$3</term>
		</changeDirection>
		<wait>45</wait>
		
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<actionRef label="enemy_bullet_action2"><param>42</param></actionRef>
		<fireRef label="middle_boss_fire_2_02"><param>15</param><param>1</param><param>100</param><param>100</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>60</param><param>2</param><param>100</param><param>100</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>60</param><param>3</param><param>100</param><param>100</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>60</param><param>4</param><param>100</param><param>100</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>60</param><param>5</param><param>100</param><param>100</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>60</param><param>6</param><param>100</param><param>100</param><param>$4</param></fireRef>
		<vanish/>
	</action>

</bullet>

<fire label="middle_boss_fire_2_02">
	<speed>0.3</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="middle_boss_bullet_2_02"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2_02_s">
	<speed>0.3</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_2_02"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>11</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>24</width><height>24</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>30+$1</wait>
		<changeSpeed>
			<speed type="absolute">1.6</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">$2</direction><term>$3</term>
		</changeDirection>
		<wait>45-$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<actionRef label="enemy_bullet_action2"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_2_03_2"><param>15</param><param>1</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_03_s"><param>60</param><param>2</param><param>80</param><param>80</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_03_2_s"><param>60</param><param>3</param><param>80</param><param>80</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_03_s"><param>60</param><param>4</param><param>80</param><param>80</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_03_2_s"><param>60</param><param>5</param><param>80</param><param>80</param><param>$4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_03_s"><param>60</param><param>6</param><param>80</param><param>80</param><param>$4</param></fireRef>
		<vanish/>
	</action>

</bullet>

<fire label="middle_boss_fire_2_03">
	<speed>0.6</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="middle_boss_bullet_2_03"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2_03_s">
	<speed>0.6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_2_03"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2_03">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>14</width><height>14</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>30+$1</wait>
		<changeDirection>
			<direction type="relative">$2</direction><term>$3</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2</speed><term>60</term>
		</changeSpeed>
		<wait>45-$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<wait>2</wait>
		<actionRef label="enemy_bullet_action2"><param>24</param></actionRef>
		<fireRef label="middle_boss_fire_2_04"><param>-44+($_self_cx+$_self_cy)%11</param><param>6</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_04_s"><param>44</param><param>5</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_04_s"><param>44</param><param>4</param></fireRef>
		<vanish/>
	</action>

</bullet>

<fire label="middle_boss_fire_2_03_2">
	<speed>0.6</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="middle_boss_bullet_2_03_2"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2_03_2_s">
	<speed>0.6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_2_03_2"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2_03_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>14</width><height>14</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>30+$1</wait>
		<changeDirection>
			<direction type="relative">$2</direction><term>$3</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2</speed><term>60</term>
		</changeSpeed>
		<wait>45-$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<actionRef label="enemy_bullet_action2"><param>24</param></actionRef>
		<fireRef label="middle_boss_fire_2_04"><param>-22+($_self_cx+$_self_cy)%11</param><param>3</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_2_04_s"><param>44</param><param>2</param></fireRef>
		<vanish/>
	</action>

</bullet>

<fire label="middle_boss_fire_2_04">
	<speed>0.9</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="middle_boss_bullet_2_04"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2_04_s">
	<speed>0.9</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_2_04"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2_04">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>10</width><height>10</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>30+$1</wait>
		<changeSpeed>
			<speed type="absolute">1.7+(($_self_cx+$_self_cy)%4)/10</speed><term>80</term>
		</changeSpeed>

	</action>
</bullet>

<fire label="middle_boss_fire_2_05">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_2_05"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="middle_boss_fire_2_05_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_2_05"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_2_05">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>22</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>52</width><height>52</height>
		<alpha>255</alpha><red>155</red><green>255</green><blue>2</blue>
	</img>
	<rotateImg><direction>8</direction><term>-1</term></rotateImg>
	<action>
		<wait>30+$1</wait>
		<changeSpeed>
			<speed type="absolute">$2</speed><term>60</term>
		</changeSpeed>
		<wait>45</wait>
		
	</action>

</bullet>



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

<action  label="stage6C_middle_boss_03_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1</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>

<!-- 弾幕開始 -->
	<eval name="rel_dir">0</eval>

<repeat><times>5</times>
<eval name="rel_dir">0</eval>
<repeat><times>2</times>
	<repeat><times>2</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_4_01"><param>-60</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>7</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>8</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-7</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-8</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
	</repeat>

	<wait>1</wait>
	<evaladd name="rel_dir">2.5</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>3</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>7</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>8</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-7</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-8</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<evaladd name="rel_dir">2.5</evaladd>
	<wait>1</wait>
	</repeat>

	<eval name="spd">2.8+(($_player_cx*7)%6)/10</eval>
	<changeSpeed>
		<speed type="absolute">$spd</speed><term>10</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">-75+150*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<wait>25</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>15</wait>

	<repeat><times>2</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_4_01"><param>-60</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>7</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>8</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-7</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-8</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
	</repeat>

	<wait>1</wait>
	<evaladd name="rel_dir">2.5</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>3</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>7</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>8</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>$rel_dir</param></fireRef>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>6</times>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-7</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>1</wait>	
		<fireRef label="middle_boss_fire_4_01_s"><param>-8</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<fireRef label="middle_boss_fire_4_01_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
		<wait>2</wait>	
		<fireRef label="middle_boss_fire_4_02_s"><param>120</param><param>-1*$rel_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<evaladd name="rel_dir">2.5</evaladd>
	<wait>1</wait>
	</repeat>


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

</repeat>
</repeat>

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

</action>

<fire label="middle_boss_fire_4_01">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_4_01"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_4_01_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_4_01"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_4_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>
	<img type="normal">
		<file type="dds">maihashot_r</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>24</width><height>24</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">0.1</speed><term>30</term>
		</changeSpeed>
		<wait>60</wait>
		<changeDirection>
			<direction type="relative">$1</direction><term>60</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2.6</speed><term>30</term>
		</changeSpeed>

	</action>
</bullet>

<fire label="middle_boss_fire_4_02">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_4_02"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_4_02_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_4_02"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_4_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>2</blue>
	</img>
	<rotateImg>
		<direction>6</direction><term>-1</term>
	</rotateImg>
	<action>
		<changeSpeed>
			<speed type="absolute">0.1</speed><term>30</term>
		</changeSpeed>
		<wait>60</wait>
		<changeDirection>
			<direction type="relative">$1</direction><term>60</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.4</speed><term>30</term>
		</changeSpeed>

	</action>
</bullet>

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

<action  label="stage6C_middle_boss_04_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1</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="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->

<repeat><times>7</times>
	<createRef label="mahoujin_create_3_01"><param>500-16</param><param>-0.4</param></createRef>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01"><param>-90</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	<repeat><times>7</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01_s"><param>22</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	</repeat>
	<wait>40-2</wait>

	<createRef label="mahoujin_create_3_01"><param>260+8</param><param>0.4</param></createRef>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01"><param>-90</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	<repeat><times>7</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01_s"><param>22</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	</repeat>
	<wait>40-2-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<createRef label="mahoujin_create_3_01"><param>380-8</param><param>-0.4</param></createRef>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01"><param>-90</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	<repeat><times>7</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01_s"><param>22</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	</repeat>
	<wait>40-2</wait>

	<createRef label="mahoujin_create_3_01"><param>140+16</param><param>0.4</param></createRef>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01"><param>-90</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	<repeat><times>7</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_3_01_s"><param>22</param><param>3</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_3_01_s"><param>15</param><param>1</param></fireRef>
		</repeat>
		<wait>11</wait>
	</repeat>
	<wait>40-2-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

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

</action>


<fire label="middle_boss_fire_3_01">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_3_01"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire_3_01_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<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>12</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>28</width><height>28</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">2</speed><term>1</term>
		</changeSpeed>
	</action>

</bullet>

<create label="mahoujin_create_3_01">
	<speed>1.5</speed>
	<direction type="absolute">180</direction>
	<cx>$1</cx><cy>-16</cy>
	<child>1</child>
	<objectRef label="mahoujin_enemy_3_01"><param>$2</param></objectRef>
</create>

<object label="mahoujin_enemy_3_01">

	<img type="normal">
		<file type="dds">s_mahoujin5</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>6</direction><term>-1</term></rotateImg>
	<action>
		<wait>60</wait>
		<eval name="laser_dir">(($_player_cx*17)%31)*3</eval>
		<wait>20</wait>
		<createRef label="middle_boss_laser_create_3_01"><param>$1</param><param>0+$laser_dir</param></createRef>
		<createRef label="middle_boss_laser_create_3_01"><param>$1</param><param>90+$laser_dir</param></createRef>
		<createRef label="middle_boss_laser_create_3_01"><param>$1</param><param>180+$laser_dir</param></createRef>
		<createRef label="middle_boss_laser_create_3_01"><param>$1</param><param>270+$laser_dir</param></createRef>

	</action>
</object>


<create label="middle_boss_laser_create_3_01">
	<speed>0</speed>
	<direction type="absolute">$2</direction>
	<cx>$_self_cx+2</cx><cy>$_self_cy-1</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_laser_enemy_3_01"><param>$1</param></enemyRef>
</create>


<enemy label="middle_boss_laser_enemy_3_01">
	<inv>85</inv>
	<revengeRef label="middle_boss_laser_revenge_3_01"></revengeRef>
	<child>1</child>
	<img type="add">
		<file type="dds">shot2l</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>115</height>
		<alpha>0</alpha><red>64</red><green>250</green><blue>255</blue>
	</img>
	<collision type="syncedge"><left>0</left><top>0</top><right>4</right><bottom>105</bottom></collision>
	<buzz type="syncedge"><left>0</left><top>0</top><right>4</right><bottom>105</bottom></buzz>
	<setBreakable><num>1</num></setBreakable>
	<imgDirection type="syncedge">0</imgDirection>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>

	<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>
		<sound type="se" label="laser_se">
			<track><file type="ogg">laser1</file></track>
			<play><flag>0</flag><loop>0</loop></play>
		</sound>
		<wait>1</wait>
		<wait>28</wait>

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

		<repeat><times>12</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="middle_boss_laser_revenge_3_01">
	<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>
	<wait>10</wait>
	<vanish></vanish>
</revenge>

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

<action  label="stage6C_middle_boss_05_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">1</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>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->
	<eval name="bul_dir">4-$_player_cx%9</eval>
	<eval name="bul_sp">1.6+(($_player_cy*13)%8)/10</eval>
	<eval name="bul_sp2">3+(($_player_cx*13)%8)/10</eval>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_5_01_hard">
		<param>$bul_dir</param><param>$bul_sp</param><param>255</param><param>105</param><param>3</param><param>$bul_sp2</param>
	</fireRef>
	<fireRef label="middle_boss_fire_5_01_hard_s">
		<param>72+$bul_dir*3</param><param>$bul_sp-0.1</param><param>2</param><param>255</param><param>3</param><param>$bul_sp2-0.1</param>
	</fireRef>
	<fireRef label="middle_boss_fire_5_01_hard_s">
		<param>72-$bul_dir*2</param><param>$bul_sp-0.2</param><param>2</param><param>105</param><param>255</param><param>$bul_sp2+0.1</param>
	</fireRef>
	<fireRef label="middle_boss_fire_5_01_hard_s">
		<param>72+$bul_dir</param><param>$bul_sp-0.1</param><param>255</param><param>125</param><param>3</param><param>$bul_sp2-0.1</param>
	</fireRef>
	<fireRef label="middle_boss_fire_5_01_hard_s">
		<param>72-$bul_dir*1.5</param><param>$bul_sp-0.3</param><param>2</param><param>5</param><param>255</param><param>$bul_sp2+0.1</param>
	</fireRef>
	<fireRef label="middle_boss_fire_5_01_hard_s">
		<param>72-$bul_dir*2.5</param><param>$bul_sp+0.1</param><param>255</param><param>5</param><param>155</param><param>$bul_sp2+0.1</param>
	</fireRef>
	<wait>1</wait>

<repeat><times>14</times>
	<repeat><times>10</times>
	<eval name="bul_dir">4-$_player_cx%9</eval>
	<eval name="bul_sp">1.6+(($_player_cy*13)%8)/10</eval>
	<eval name="bul_sp2">3+(($_player_cx*13)%8)/10</eval>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>23+(($_player_cx*7)%11)</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>35</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">4-$_player_cy%9</eval>
	<eval name="bul_sp">1.7+(($_player_cx*13)%8)/10</eval>
	<eval name="bul_sp2">3+(($_player_cy*13)%7)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>23</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>25</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">6-$_player_cx%13</eval>
	<eval name="bul_sp">1.5+(($_player_cy*13)%9)/10</eval>
	<eval name="bul_sp2">3+(($_player_cx*13)%8)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>26</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>32</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">4-(($bul_dir*13)%9)</eval>
	<eval name="bul_sp">1.8+(($bul_sp2*14)%8)/10</eval>
	<eval name="bul_sp2">3+(($bul_sp*44)%9)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>21+(($_player_cy*7)%11)</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>59</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">6</eval>
	<eval name="bul_sp">1.9</eval>
	<eval name="bul_sp2">3.4</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>48</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>19</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">-3</eval>
	<eval name="bul_sp">2.1</eval>
	<eval name="bul_sp2">3.9</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>33</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>47</param></fireRef>
	<wait>1</wait>
	</repeat>
	<wait>15</wait>


	<repeat><times>10</times>
	<eval name="bul_dir">4-$_player_cx%9</eval>
	<eval name="bul_sp">1.6+(($_player_cy*13)%8)/10</eval>
	<eval name="bul_sp2">3+(($_player_cx*13)%8)/10</eval>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>23+(($_player_cx*7)%11)</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>35</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">4-$_player_cy%9</eval>
	<eval name="bul_sp">1.7+(($_player_cx*13)%8)/10</eval>
	<eval name="bul_sp2">3+(($_player_cy*13)%7)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>23</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>25</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">6-$_player_cx%13</eval>
	<eval name="bul_sp">1.5+(($_player_cy*13)%9)/10</eval>
	<eval name="bul_sp2">3+(($_player_cx*13)%8)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>26</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>32</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">4-(($bul_dir*13)%9)</eval>
	<eval name="bul_sp">1.8+(($bul_sp2*14)%8)/10</eval>
	<eval name="bul_sp2">3+(($bul_sp*44)%9)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>21+(($_player_cy*7)%11)</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>59</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">32-(($bul_dir*37)%65)</eval>
	<eval name="bul_sp">1.8+(($bul_sp2*18)%7)/10</eval>
	<eval name="bul_sp2">3+(($bul_sp*49)%8)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>48</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>19</param></fireRef>
	<wait>1</wait>

	<eval name="bul_dir">32-(($_player_cx+$bul_dir*37)%65)</eval>
	<eval name="bul_sp">1.8+(($_player_cy+$bul_sp2*18)%7)/10</eval>
	<eval name="bul_sp2">3+(($_player_cx*2+$bul_sp*49)%8)/10</eval>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_5_00_hard_s"><param>33</param><param>$bul_dir</param><param>$bul_sp</param><param>$bul_sp2</param><param>47</param></fireRef>
	<wait>1</wait>
	</repeat>
	<wait>15-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

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

</action>


<fire label="middle_boss_fire_5_00_hard">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_5_00_hard"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_5_00_hard_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_5_00_hard"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_5_00_hard">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>14</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>127</red><green>127</green><blue>34</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>20</wait>

		<createRef label="ring_cr"><param>42</param></createRef>
		<eval name="bul_dir">$1</eval>
		<eval name="bul_sp">$2</eval>
		<eval name="bul_sp2">$3</eval>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_5_01_hard_r">
			<param>$4+$bul_dir</param><param>$bul_sp</param><param>255</param><param>105</param><param>3</param><param>$bul_sp2</param>
		</fireRef>
		<fireRef label="middle_boss_fire_5_01_hard_s">
			<param>72+$bul_dir*3</param><param>$bul_sp-0.1</param><param>2</param><param>255</param><param>3</param><param>$bul_sp2-0.1</param>
		</fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_5_01_hard_s">
			<param>72-$bul_dir*2</param><param>$bul_sp-0.2</param><param>2</param><param>105</param><param>255</param><param>$bul_sp2+0.1</param>
		</fireRef>
		<fireRef label="middle_boss_fire_5_01_hard_s">
			<param>72+$bul_dir</param><param>$bul_sp-0.1</param><param>255</param><param>125</param><param>3</param><param>$bul_sp2-0.1</param>
		</fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_5_01_hard_s">
			<param>72-$bul_dir*1.5</param><param>$bul_sp-0.3</param><param>2</param><param>5</param><param>255</param><param>$bul_sp2+0.1</param>
		</fireRef>
		<fireRef label="middle_boss_fire_5_01_hard_s">
			<param>72-$bul_dir*2.5</param><param>$bul_sp+0.1</param><param>255</param><param>5</param><param>155</param><param>$bul_sp2+0.1</param>
		</fireRef>
		<fireRef label="middle_boss_fire_5_01_hard_s">
			<param>72+$bul_dir*1.8</param><param>$bul_sp+0.1</param><param>255</param><param>5</param><param>1</param><param>$bul_sp2+0.1</param>
		</fireRef>
		<vanish/>
	</action>

</bullet>


<fire label="middle_boss_fire_5_01_hard">
	<speed>$6</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_5_01_hard"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_5_01_hard_r">
	<speed>$6</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="middle_boss_bullet_5_01_hard"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<fire label="middle_boss_fire_5_01_hard_s">
	<speed>$6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_5_01_hard"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

<bullet label="middle_boss_bullet_5_01_hard">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>14</width><height>14</height>
		<alpha>255</alpha><red>$2</red><green>$3</green><blue>$4</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>12</term>
		</changeSpeed>
	</action>

</bullet>



<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第６形態（最終形態）			*** -->

<action  label="stage6C_middle_boss_06_action">

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

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

	<changePosition type="center">
		<x>320</x><y>120</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="stage6C_mboss_mahoujin_create_6_01"><param>85</param></createRef>
	<createRef label="stage6C_mboss_mahoujin_create_6_01"><param>-85</param></createRef>

	<wait>30</wait>

<repeat><times>10</times>
	<!-- 交差光弾 -->
	<eval name="wait_time">14</eval>
	<repeat><times>6</times>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6C_mboss_fire_6_01"><param>5</param><param>6</param><param>$wait_time</param></fireRef>
	<fireRef label="stage6C_mboss_fire_6_02_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="stage6C_mboss_fire_6_01_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_02_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_01_s"><param>6</param><param>5</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_02_s"><param>6</param><param>5</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_01_s"><param>6</param><param>4</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_02_s"><param>6</param><param>4</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_01_s"><param>6</param><param>3</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_02_s"><param>6</param><param>3</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_01_s"><param>6</param><param>2</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_02_s"><param>6</param><param>2</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_01_s"><param>6</param><param>1</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_02_s"><param>6</param><param>1</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>80</wait>
	<evaladd name="wait_time">-2</evaladd>
	</repeat>
	<wait>4</wait>
	<wait>180</wait>

	<repeat><times>3</times>
		<createRef label="stage6C_mboss_enemy_create_99_red"><param>30</param><param>5</param></createRef>
		<wait>2</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>2</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s_score"><param>-10</param><param>5</param></createRef>
		<wait>2</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>2</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>2</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>2</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s_score"><param>-10</param><param>5</param></createRef>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="stage6C_mboss_fire_6_04"><param>$_self_cx%15</param><param>60</param><param>1</param></fireRef>
	<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>-1</param></fireRef>
	<repeat><times>2</times>
		<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>1</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>-1</param></fireRef>
	</repeat>
	<wait>2</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_04_s"><param>60+7</param><param>60</param><param>1</param></fireRef>
		<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>-1</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>1</param></fireRef>
			<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>-1</param></fireRef>
		</repeat>
		<wait>2</wait>
	</repeat>

	<repeat><times>5</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>7</times>
			<fireRef label="stage6C_mboss_fire_6_04_s"><param>60+7</param><param>60</param><param>1</param></fireRef>
			<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>-1</param></fireRef>
			<repeat><times>2</times>
				<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>1</param></fireRef>
				<fireRef label="stage6C_mboss_fire_6_04_s"><param>60</param><param>60</param><param>-1</param></fireRef>
			</repeat>
			<wait>2</wait>
		</repeat>
	</repeat>
	<wait>1</wait>

	<!-- 速弾 -->
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6C_mboss_fire_6_03"><param>0</param><param>3</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>1</param></fireRef>
	</repeat>
	<wait>8</wait>

	<fireRef label="stage6C_mboss_fire_6_03_s"><param>7</param><param>3</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>1</param></fireRef>
	</repeat>
	<wait>16</wait>

	<repeat><times>8</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6C_mboss_fire_6_03_s"><param>11</param><param>3</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>1</param></fireRef>
	</repeat>
	<wait>8</wait>

	<fireRef label="stage6C_mboss_fire_6_03_s"><param>7</param><param>3</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage6C_mboss_fire_6_03_s"><param>20</param><param>1</param></fireRef>
	</repeat>
	<wait>16</wait>
	</repeat>
	<wait>120-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

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

<create label="stage6C_mboss_mahoujin_create_6_01">
	<speed>2</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<child>1</child>
	<objectRef label="stage6C_mboss_mahoujin_enemy_6_01"></objectRef>
</create>

<object label="stage6C_mboss_mahoujin_enemy_6_01">

	<img type="normal">
		<file type="dds">s_mahoujin5</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>2</direction><term>-1</term></rotateImg>

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

		<wait>60</wait>

		<repeat><times>-1</times>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>0</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>12</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>-12</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>-30</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>30</param></createRef>
		<wait>3</wait>
		<actionRef label="enemy_laser_action"></actionRef>
		<wait>259</wait>


		<createRef label="stage6C_mboss_laser_create_6_01"><param>0</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>12</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>-12</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>-30</param></createRef>
		<createRef label="stage6C_mboss_laser_create_6_01"><param>30</param></createRef>
		<wait>3</wait>
		<actionRef label="enemy_laser_action"></actionRef>
		<wait>259</wait>

		</repeat>
	</action>
</object>

<create label="stage6C_mboss_laser_create_6_01">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6C_mboss_laser_enemy_6_01"><param>$2</param></enemyRef>
</create>

<enemy label="stage6C_mboss_laser_enemy_6_01">
	<inv>85</inv>
	<revengeRef label="stage6C_mboss_laser_revenge_01"></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>

	<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>
		<wait>1</wait>
		<wait>28</wait>

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


		<repeat><times>15</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="stage6C_mboss_laser_revenge_01">
	<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>

<create label="stage6C_mboss_mahoujin_create_6_02">
	<speed>2.4</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<child>1</child>
	<objectRef label="stage6C_mboss_mahoujin_enemy_6_02"></objectRef>
</create>

<object label="stage6C_mboss_mahoujin_enemy_6_02">

	<img type="normal">
		<file type="dds">s_mahoujin</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg><direction>2</direction><term>-1</term></rotateImg>

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

		<wait>60</wait>

		<repeat><times>25</times>
		<createRef label="stage6C_mboss_enemy_create_99_red"><param>30</param><param>5</param></createRef>
		<wait>5</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>5</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s_score"><param>-10</param><param>5</param></createRef>
		<wait>5</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>5</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>5</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s"><param>-10</param><param>5</param></createRef>
		<wait>5</wait>
		<createRef label="stage6C_mboss_enemy_create_99_red_s_score"><param>-10</param><param>5</param></createRef>
		<wait>350</wait>
		</repeat>

	</action>
</object>

<fire label="stage6C_mboss_fire_6_01">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_01"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage6C_mboss_fire_6_01_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_01"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="stage6C_mboss_bullet_6_01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>8</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>20</width><height>20</height>
		<alpha>235</alpha><red>255</red><green>2</green><blue>2</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>

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

		<changeSpeed>
			<speed type="absolute">1.6</speed><term>15</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">120</direction><term>240</term>
		</changeDirection>

	</action>
</bullet>

<fire label="stage6C_mboss_fire_6_02">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_02"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage6C_mboss_fire_6_02_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_02"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="stage6C_mboss_bullet_6_02">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>8</radius></collision>

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>20</width><height>20</height>
		<alpha>235</alpha><red>115</red><green>255</green><blue>2</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>

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

		<changeSpeed>
			<speed type="absolute">1.6</speed><term>15</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">-120</direction><term>240</term>
		</changeDirection>

	</action>
</bullet>


<fire label="stage6C_mboss_fire_6_03">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_03"><param>$2</param></bulletRef>
</fire>

<fire label="stage6C_mboss_fire_6_03_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_03"><param>$2</param></bulletRef>
</fire>

<bullet label="stage6C_mboss_bullet_6_03">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>9</radius></collision>
	<img type="normal">
		<file type="dds">maihashot_r</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">3.1</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>


<fire label="stage6C_mboss_fire_6_04">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_04"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage6C_mboss_fire_6_04_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6C_mboss_bullet_6_04"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="stage6C_mboss_bullet_6_04">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>14</width><height>14</height>
		<alpha>255</alpha><red>255</red><green>2</green><blue>2</blue>
	</img>
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">1.9</speed><term>120</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">150</direction><term>120</term>
		</changeDirection>
	</action>
</bullet>


<create label="stage6C_mboss_enemy_create_99_red">
	<speed>3.8</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stage6C_mboss_enemy_99_red"><param>$2</param></enemyRef>
</create>

<create label="stage6C_mboss_enemy_create_99_red_s">
	<speed>3.8</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stage6C_mboss_enemy_99_red"><param>$2</param></enemyRef>
</create>

<create label="stage6C_mboss_enemy_create_99_red_score">
	<speed>3.8</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stage6C_mboss_enemy_99_red_score"><param>$2</param></enemyRef>
</create>

<create label="stage6C_mboss_enemy_create_99_red_s_score">
	<speed>3.8</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stage6C_mboss_enemy_99_red_score"><param>$2</param></enemyRef>
</create>

<enemy label="stage6C_mboss_enemy_99_red">
	<score>120</score>
	<inv>20</inv>
	<prate>$__small_enemy_prate4</prate>
	<presentRef label="enemy_present_99_red"></presentRef>
	<revengeRef label="enemy_revenge_99_hard"><param>1</param><param>20</param><param>10</param></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>

	<action>
		
		<wait>1+($_self_cx+$_player_cx)%5</wait>
		<changeSpeed>
			<speed type="absolute">0.7</speed><term>20</term>
		</changeSpeed>
		<wait>1+$1</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="enemy_stage6C_fire_laser_boss"><param>0</param></fireRef>
		<wait>9</wait>
<!--
		<repeat><times>3</times>
		<wait>50</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="enemy_stage6C_fire_laser"><param>10-($_player_cx+$_self_cx+$1*9)%21</param></fireRef>
		<wait>9</wait>
		</repeat>
-->
		<wait>180</wait>
		<changeSpeed>
			<speed type="absolute">1</speed><term>20</term>
		</changeSpeed>


	</action>

</enemy>

<enemy label="stage6C_mboss_enemy_99_red_score">
	<score>120</score>
	<inv>20</inv>
	<prate>$__small_enemy_prate4</prate>
	<presentRef label="enemy_present_99_red"></presentRef>
	<revengeRef label="enemy_revenge_99_hard_s"><param>1</param><param>20</param><param>10</param></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>

	<action>
		
		<wait>1+($_self_cx+$_player_cx)%5</wait>
		<changeSpeed>
			<speed type="absolute">0.4</speed><term>20</term>
		</changeSpeed>
		<wait>1+$1</wait>
		<wait>29</wait>

		<repeat><times>3</times>
		<wait>50</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="enemy_stage6C_fire_laser_boss"><param>10-($_player_cx+$_self_cx+$1*9)%21</param></fireRef>
		<wait>9</wait>
		</repeat>

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


	</action>

</enemy>

<fire label="enemy_stage6C_fire_laser_boss">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="boss_stage6C_fire_laser_bullet"></bulletRef>
</fire>

<bullet label="boss_stage6C_fire_laser_bullet">
	<collision type="sync"><left>-2</left><top>-5</top><right>2</right><bottom>5</bottom></collision>
	
	<img type="add">
		<file type="dds">laser32xr</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>13</height><term>3</term>
		</changeImgSize>
		<wait>2</wait>
		<changeSpeed>
			<speed>2</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>

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

<revenge label="stage6C_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>
	<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>1500</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_cx-gt410)*60+($_self_cx-lt230)*60+80</param></createRef>

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

<revenge label="stage6C_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>

	<!-- *** アイテムの出現 *** -->
	<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>
	<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>38/2</param><param>$counter_e</param><param>1700</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_boss3"></createRef>

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

<revenge label="stage6C_middle_boss_03_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>
	<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>42/2</param><param>$counter_e</param><param>1700</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_boss4"></createRef>

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

<revenge label="stage6C_middle_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>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>
	<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>1600</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_boss5"></createRef>

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

<revenge label="stage6C_middle_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>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>
	<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>50/2</param><param>$counter_e</param><param>1380</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>
	<wait>60</wait>

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


<revenge label="stage6C_middle_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>

	<!-- 爆発アクション -->
	<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>
	<!-- 敵ブルブルアクション -->
	<soundRef label="boss_break2"></soundRef>
	<soundRef label="boss_tremble_sound"></soundRef>
	<actionRef label="boss_tremble"></actionRef>

	<!-- *** ライフ表示を消す *** -->
	<targetRevenge label="boss_life"></targetRevenge>
	<!-- *** ボス名称表示を消す *** -->
	<targetRevenge label="boss_name_stage6_maiha1"></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>
	<repeat><times>($_revenge_state-eq1)</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>3</param><param>0</param></actionRef>
			<createRef label="item_create_01_etb"><param>-30000</param><param>600000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>54/2</param><param>$counter_e</param><param>$__maiha_rev_time</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>
	<changeColor>
		<alpha>35</alpha><red>255</red><green>255</green><blue>255</blue><term>50</term>
	</changeColor>

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

</revenge>



</exbulletml>
