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

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

<action label="stage6A_middle_boss">

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


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

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

</action>



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

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

<create label="enemy_create_middle_boss">

	<speed>4</speed>
	<direction type="absolute">135</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>1600</vital>
	<inv>40</inv>
	<score>220000</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>1600</vital>
	<inv>40</inv>
	<score>250000</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>1700</vital>
	<inv>40</inv>
	<score>300000</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>1800</vital>
	<inv>120</inv>
	<score>350000</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="enemy_present_05_middle"></presentRef>

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

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

	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage6A_middle_boss_01_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_middle_boss_02_revenge"></revengeRef>
		<global name="timer">13</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_middle_boss_03_revenge"></revengeRef>
		<global name="timer">11</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_middle_boss_04_revenge"></revengeRef>
		<global name="timer">14</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_middle_boss_04_action"></actionRef>
	</repeat>

</enemy>


<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第１形態　				*** -->
<action  label="stage6A_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>
	<!-- No1 4way + ウィルスばらまき -->
	<repeat><times>3</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>3</wait>
	</repeat>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<wait>3</wait>


	<eval name="bul_dir">4</eval>
	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
	</repeat>

	<evaladd name="bul_dir">-4</evaladd>
	<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
<!--
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
-->
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-4</evaladd>
		<wait>3</wait>
	</repeat>

	<evaladd name="bul_dir">4</evaladd>
	<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>5</param><param>2</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>2</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>6</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>2</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>2</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>6</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>2</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>30</param><param>125</param><param>5</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>30</param><param>255</param><param>6</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>3</wait>
	</repeat>


	<evaladd name="bul_dir">-1</evaladd>
	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>

		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>

		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
	</repeat>

	<repeat><times>3</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
<!--
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>255</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>55</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>65</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
-->
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>3</wait>
	</repeat>

	<evaladd name="bul_dir">1</evaladd>
	<repeat><times>5</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>5</param><param>2</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>2</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>2</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>125</param><param>5</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>6</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>2</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>2</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>2</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>125</param><param>5</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>6</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>60</param><param>5</param><param>2</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>2</param><param>4</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>5</param><param>255</param><param>2</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>125</param><param>5</param><param>255</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_01_s"><param>15</param><param>255</param><param>6</param><param>4</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_03_ss"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>3</wait>
	</repeat>

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

	<!-- ウィルスなし高速ばらまき -->

	<changeDirection>
		<direction type="absolute">-88+176*($_player_cx-gt320)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">0.3</speed><term>20</term>
	</changeSpeed>

	<eval name="bul_dir">0</eval>
	<repeat><times>15</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">6</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">8</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">6</evaladd>
		<wait>1</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">8</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">6</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">10</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">8+$_player_cx%7</evaladd>
		<wait>1</wait>
	</repeat>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>

	<repeat><times>15</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">6</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">8</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">6</evaladd>
		<wait>1</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">8</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">4</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">6</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_05"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">10</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_04"><param>105+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<fireRef label="middle_boss_fire_04_s"><param>50</param></fireRef>
		<evaladd name="bul_dir">8+$_player_cx%7</evaladd>
		<wait>1</wait>
	</repeat>

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

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

	<!-- No3 網目 -->
	<eval name="bul_dir">0</eval>
	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir</param></fireRef>
		<wait>2</wait>

		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05_aim"><param>-32</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_05_s"><param>8</param></fireRef>
		</repeat>
		<wait>1</wait>

	</repeat>

	<eval name="bul_dir2">1</eval>

	<repeat><times>4</times>
	<evaladd name="bul_dir">1</evaladd>
	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>

		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05_aim"><param>-32</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_05_s"><param>8</param></fireRef>
		</repeat>
		<wait>1</wait>
	</repeat>
	<evaladd name="bul_dir">-1</evaladd>
	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>

		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-15+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>120+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-120+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_06"><param>142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-142+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>165+$bul_dir*$bul_dir2</param></fireRef>
		<fireRef label="middle_boss_fire_06"><param>-165+$bul_dir*$bul_dir2</param></fireRef>
		<evaladd name="bul_dir">-1</evaladd>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_05_aim"><param>-32</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_05_s"><param>8</param></fireRef>
		</repeat>
		<wait>1</wait>
	</repeat>
	<eval name="bul_dir2">($bul_dir2+1)%3</eval>

	</repeat>
	<wait>30-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 -->
<fire label="middle_boss_fire_01">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

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

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

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

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

<fire label="middle_boss_fire_03">
	<speed>2.9</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_03"></bulletRef>
</fire>

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

<fire label="middle_boss_fire_03_ss">
	<speed type="sequence">-0.5</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_03"></bulletRef>
</fire>

<fire label="middle_boss_fire_04">
	<speed>2.7</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_04"></bulletRef>
</fire>

<fire label="middle_boss_fire_04_aim">
	<speed>2.7</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_04"></bulletRef>
</fire>

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

<fire label="middle_boss_fire_05">
	<speed>2.7</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_05"></bulletRef>
</fire>

<fire label="middle_boss_fire_05_aim">
	<speed>2.7</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_05"></bulletRef>
</fire>

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

<fire label="middle_boss_fire_06">
	<speed>3.4</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_06"></bulletRef>
</fire>

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


<!-- bullet -->
<bullet label="middle_boss_bullet_01">

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

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

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

		<wait>120</wait>
	</action>

</bullet>

<bullet label="middle_boss_bullet_02">

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

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


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

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

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

</bullet>


<bullet label="middle_boss_bullet_03">

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

	<img type="maskadd">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>255</red><green>2</green><blue>3</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

</bullet>

<bullet label="middle_boss_bullet_04">

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

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

</bullet>

<bullet label="middle_boss_bullet_05">

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

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

</bullet>

<bullet label="middle_boss_bullet_06">

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

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

	<setReflect>
		<flag>7</flag><num>6</num>
	</setReflect>


</bullet>


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

<action  label="stage6A_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>13</times>
	<eval name="bul_width">32</eval>
	<eval name="bul_col">14</eval>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_2_01"><param>0</param><param>2.2</param><param>7</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>7</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	</repeat>

	<repeat><times>6</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>7</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>7</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<evaladd name="bul_col">1</evaladd>
	<repeat><times>5</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>7</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>7</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<wait>3</wait>
	<eval name="bul_width">22</eval>
	<eval name="bul_col">10</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>3</times>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>
	<wait>3</wait>
	<eval name="bul_width">32</eval>
	<eval name="bul_col">14</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_2_02"><param>10</param><param>2.2</param><param>5</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="middle_boss_fire_2_02_s"><param>36</param><param>2.2</param><param>5</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	</repeat>

	<repeat><times>6</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>45</param><param>2.2</param><param>5</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_02_s"><param>36</param><param>2.2</param><param>5</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<evaladd name="bul_col">1</evaladd>
	<repeat><times>5</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>45</param><param>2.2</param><param>5</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_02_s"><param>36</param><param>2.2</param><param>5</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<wait>3</wait>
	<eval name="bul_width">22</eval>
	<eval name="bul_col">10</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>3</times>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>
	<wait>3</wait>
	<eval name="bul_width">32</eval>
	<eval name="bul_col">14</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_2_01"><param>18</param><param>2.2</param><param>0</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>0</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	</repeat>

	<repeat><times>6</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>0</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>0</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<evaladd name="bul_col">1</evaladd>
	<repeat><times>5</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>0</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>0</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<wait>3</wait>
	<eval name="bul_width">22</eval>
	<eval name="bul_col">10</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>3</times>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>
	<wait>3</wait>
	<eval name="bul_width">32</eval>
	<eval name="bul_col">14</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_2_02"><param>30</param><param>2.2</param><param>1</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="middle_boss_fire_2_02_s"><param>36</param><param>2.2</param><param>1</param><param>$bul_width</param><param>$bul_col</param></fireRef>
	</repeat>

	<repeat><times>6</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>45</param><param>2.2</param><param>1</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_02_s"><param>36</param><param>2.2</param><param>1</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<evaladd name="bul_col">1</evaladd>
	<repeat><times>5</times>
		<wait>2</wait>
		<evaladd name="bul_width">-2</evaladd>
		<evaladd name="bul_col">-1</evaladd>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_02_s"><param>45</param><param>2.2</param><param>1</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_02_s"><param>36</param><param>2.2</param><param>1</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>

	<wait>3</wait>
	<eval name="bul_width">22</eval>
	<eval name="bul_col">10</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>3</times>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_2_01_s"><param>28</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		<repeat><times>9</times>
			<fireRef label="middle_boss_fire_2_01_s"><param>36</param><param>2.2</param><param>3</param><param>$bul_width</param><param>$bul_col</param></fireRef>
		</repeat>
	</repeat>
	<wait>3</wait>
	<eval name="bul_width">32</eval>
	<eval name="bul_col">14</eval>
	<wait>1</wait>

	<wait>40-13-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 -->
<fire label="middle_boss_fire_2_01">
	<speed>1.5</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>1.5</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>

<fire label="middle_boss_fire_2_02">
	<speed>1.5</speed>
	<direction type="aim">$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>1.5</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_01">

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

	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*$2</left><top>0</top><right>32+32*$2</right><bottom>32</bottom>
		<width>$3</width><height>$3</height>
		<alpha>235</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeDirection>
			<direction type="relative">50</direction><term>150</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>60</term>
		</changeSpeed>

	</action>

</bullet>

<bullet label="middle_boss_bullet_2_02">

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

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

	<imgDirection type="sync">0</imgDirection>
	<action>
		<changeDirection>
			<direction type="relative">-50</direction><term>150</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>60</term>
		</changeSpeed>

	</action>

</bullet>


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

<action  label="stage6A_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>

<repeat><times>11</times>
<eval name="timer_jud">0</eval>
<repeat><times>3</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_3_01_hard"><param>0</param><param>5</param><param>80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>5</wait>

	<fireRef label="middle_boss_fire_3_01_hard_s"><param>10+7</param><param>5</param><param>-80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>5</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>3</times>
	<fireRef label="middle_boss_fire_3_01_hard_s"><param>10+7</param><param>5</param><param>80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>5</wait>

	<fireRef label="middle_boss_fire_3_01_hard_s"><param>10+7</param><param>5</param><param>-80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>5</wait>
	</repeat>


	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>2</times>
	<fireRef label="middle_boss_fire_3_01_hard_s"><param>10+8</param><param>5</param><param>80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>5</wait>

	<fireRef label="middle_boss_fire_3_01_hard_s"><param>10+7</param><param>5</param><param>-80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>5</wait>
	</repeat>

	<fireRef label="middle_boss_fire_3_01_hard_s"><param>10+6</param><param>5</param><param>80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<wait>5</wait>

	<fireRef label="middle_boss_fire_3_01_hard_s"><param>10+4</param><param>5</param><param>-80</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>5</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>4</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>3</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>2</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_3_01_hard_s"><param>10</param><param>1</param><param>-80</param></fireRef>
	</repeat>
	<wait>1</wait>

	<evaladd name="timer_jud">1</evaladd>
	<repeat><times>$timer_jud-lt3</times>
		<wait>5</wait>
	</repeat>

	<wait>5</wait>
</repeat>
<!-- タイマーを１つ消す -->
<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_hard">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_3_01_hard"><param>$2</param><param>$3</param></bulletRef>
</fire>

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

<bullet label="middle_boss_bullet_3_01_hard">

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

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

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

		<changeDirection>
			<direction type="relative">$2</direction><term>30</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.8</speed><term>30</term>
		</changeSpeed>

	</action>

</bullet>


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

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

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

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

<!-- 弾幕開始 -->
	<createRef label="middle_boss_mahoujin_create_3_01"></createRef>

<repeat><times>7</times>

	<repeat><times>5</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<eval name="bul_sp">1+(($_player_cx*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01"><param>3-$_player_cx%6-60</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cy*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+3</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*9)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+5</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cy*9)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+9</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+12</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp+0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+8</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.3</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp+0.4</eval>
	<fireRef label="middle_boss_fire_3_01"><param>3-$_player_cx%6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cy*13)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+3</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+5</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*13)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.1</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+9</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+12</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+8</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp+0.3</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120+6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	</repeat>

	<wait>30</wait>
	<changeDirection>
		<direction type="absolute">-70+140*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.8</speed><term>10</term>
	</changeSpeed>
	<wait>40</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>50-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>

	<repeat><times>5</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<eval name="bul_sp">1+(($_player_cx*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01"><param>3-$_player_cx%6+60</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cy*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-3</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*9)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-5</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cy*9)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-9</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-12</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp+0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-8</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.3</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp+0.4</eval>
	<fireRef label="middle_boss_fire_3_01"><param>3-$_player_cx%6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cy*13)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-3</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-5</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*13)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.1</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-9</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">1+(($_player_cx*7)%11)/10</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-12</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp-0.2</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-8</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<wait>2</wait>
	<eval name="bul_sp">$bul_sp+0.3</eval>
	<fireRef label="middle_boss_fire_3_01_s"><param>120-6</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	<fireRef label="middle_boss_fire_3_01_s"><param>120</param><param>$bul_sp</param></fireRef>
	</repeat>
	<wait>30</wait>

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

</repeat>

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

</action>

<!-- 赤 -->
<create label="middle_boss_mahoujin_create_3_01">
	<speed>1</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<child>1</child>
	<objectRef label="middle_boss_mahoujin_object_3_01"></objectRef>

</create>

<object label="middle_boss_mahoujin_object_3_01">
	<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>35</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>5</direction><term>-1</term>
	</rotateImg>

	<action>
		<changeColor>
			<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>120</term>
		</changeColor>
		<wait>30</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>90</wait>

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

		<repeat><times>160</times>
				<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_laser_s"><param>12+7</param><param>3</param></fireRef>
				<repeat><times>9</times>
					<fireRef label="middle_boss_fire_laser_s"><param>12</param><param>3</param></fireRef>
				</repeat>
				<wait>1</wait>
				<repeat><times>10</times>
					<fireRef label="middle_boss_fire_laser_s"><param>12</param><param>2</param></fireRef>
				</repeat>
				<wait>1</wait>
				<repeat><times>10</times>
					<fireRef label="middle_boss_fire_laser_s"><param>12</param><param>1</param></fireRef>
				</repeat>
				<wait>10</wait>
				<fireRef label="middle_boss_fire_laser_s"><param>12+5</param><param>3</param></fireRef>
				<repeat><times>9</times>
					<fireRef label="middle_boss_fire_laser_s"><param>12</param><param>3</param></fireRef>
				</repeat>
				<wait>1</wait>
				<repeat><times>10</times>
					<fireRef label="middle_boss_fire_laser_s"><param>12</param><param>2</param></fireRef>
				</repeat>
				<wait>1</wait>
				<repeat><times>10</times>
					<fireRef label="middle_boss_fire_laser_s"><param>12</param><param>1</param></fireRef>
				</repeat>
				<wait>10</wait>
		</repeat>

		<wait>50</wait>
		<vanish/>
	</action>
</object>


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

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

<bullet label="middle_boss_fire_laser_bullet">
	<collision type="sync"><left>-2</left><top>-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>
		<wait>$1</wait>
		<changeImgSize>
			<width>7</width><height>13</height><term>3</term>
		</changeImgSize>
		<wait>2</wait>
		<changeSpeed>
			<speed>2.4</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>


<create label="middle_boss_fire_laser_back">
	<speed>0</speed>
	<direction type="relative">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<enemyRef label="middle_boss_laser_back">
		<param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param><param>$8</param>
	</enemyRef>

</create>

<enemy label="middle_boss_laser_back">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>
	<img type="add">
		<file type="dds">laser32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$1</width><height>4</height>
		<alpha>$2</alpha><red>$3</red><green>$4</green><blue>$5</blue>
	</img>	
	<imgDirection type="sync">0</imgDirection>
	<action>
		<changeImgSize>
			<width>$1</width><height>13</height><term>3</term>
		</changeImgSize>
		<wait>$6</wait>
		<changeSpeed>
			<speed>2.4</speed><term>1</term>
		</changeSpeed>
	</action>
</enemy>


<fire label="middle_boss_fire_3_01">
	<speed>0.3</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.3</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>5</radius></collision>

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

	<action>
		<wait>40</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>90</term>
		</changeSpeed>

	</action>

</bullet>


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

<revenge label="stage6A_middle_boss_01_revenge">

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

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

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

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

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>26/2</param><param>$counter_e</param><param>1420</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"></createRef>

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

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

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>28/2</param><param>$counter_e</param><param>1200</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="stage6A_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>
	<repeat><times>$_revenge_state-eq3</times>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>

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

	<wait>1</wait>

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

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

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

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

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

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

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

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

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

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

	<wait>1</wait>

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

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

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

	
</revenge>

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

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

	<sound label="bgm" type="bgm">
		<track>
			<file type="ogg">16_stage6Aboss</file>
		</track>
		<play>
			<flag>1</flag><loop>44100*2*2*13</loop>
		</play>
	</sound>

	<actionRef label="stage6_3_bgm_title_action"></actionRef>

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

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

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

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


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


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

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

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

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

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

<!-- *** 第 7 形態のボスオブジェクト作成			       *** -->
<!-- ***							       *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる		      *** -->
<create label="stage6A_boss_07_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>$__vital_7</vital>
	<inv>40</inv>
	<score>650000</score>
	<prate>$__boss_prate5</prate>
	<flag>16</flag>
	<enemyRef label="stage6A_boss_enemy"></enemyRef>
</create>

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

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

	<!-- *** 画面下のボス表示を作成 *** -->
	<repeat><times>$__boss_state-lt7</times>
		<createRef label="boss_underbar_create"></createRef>
	</repeat>
	<repeat><times>$__boss_state-eq7</times>
		<createRef label="boss_underbar_create2"></createRef>
	</repeat>


	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage6A_boss_01_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_boss_02_revenge"></revengeRef>
		<global name="timer">13</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_boss_03_revenge"></revengeRef>
		<global name="timer">16</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_boss_04_revenge"></revengeRef>
		<global name="timer">13</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_boss_05_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_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="stage6A_boss_06_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_boss_06_action"></actionRef>

	</repeat>
	<repeat><times>$__boss_state-eq7</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage6A_boss_07_revenge"></revengeRef>
		<global name="timer">15</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage6A_boss_07_action"></actionRef>

	</repeat>
</enemy>


<!-- ********************************************************************* -->
<!-- *** ボスのアクション					      *** -->
<!-- *** 第１形態						      *** -->
<action  label="stage6A_boss_01_action">
	<changeSpeed>
		<speed>0</speed><term>60</term>
	</changeSpeed>
	<wait>60</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->
<repeat><times>3</times>
	<!-- No1 赤い鳥 -->
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>20</param><param>220</param></fireRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>-20</param><param>-220</param></fireRef>
	<wait>35</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>28</param><param>220</param></fireRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>-28</param><param>-220</param></fireRef>
	<wait>35</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>36</param><param>220</param></fireRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>-36</param><param>-220</param></fireRef>
	<wait>35</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>30</param><param>220</param></fireRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>-30</param><param>-220</param></fireRef>
	<wait>35</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>24</param><param>220</param></fireRef>
	<fireRef label="stage6A_boss_fire_1_01"><param>-24</param><param>-220</param></fireRef>
	<wait>35</wait>


	<changeDirection>
		<direction type="absolute">-68+136*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.8</speed><term>10</term>
	</changeSpeed>
	<wait>30</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>60-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<!-- 光弾　２重×２ -->
	<createRef label="dummy_create_boss_1_01"><param>1</param></createRef>
	<createRef label="dummy_create_boss_1_01"><param>-1</param></createRef>

	<wait>140</wait>

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

	<createRef label="dummy_create_boss_1_01"><param>1</param></createRef>
	<createRef label="dummy_create_boss_1_01"><param>-1</param></createRef>

	<wait>140</wait>

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

	<wait>30</wait>

	<!-- 交差光弾 -->
	<eval name="wait_time">20</eval>

	<repeat><times>5</times>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_1_04"><param>5</param><param>6</param><param>$wait_time</param></fireRef>
	<fireRef label="stage6A_boss_fire_1_05_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="stage6A_boss_fire_1_04_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_05_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_04_s"><param>6</param><param>5</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_05_s"><param>6</param><param>5</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_04_s"><param>6</param><param>4</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_05_s"><param>6</param><param>4</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_04_s"><param>6</param><param>3</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_05_s"><param>6</param><param>3</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_04_s"><param>6</param><param>2</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_05_s"><param>6</param><param>2</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_04_s"><param>6</param><param>1</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_05_s"><param>6</param><param>1</param><param>$wait_time</param></fireRef>
	</repeat>

	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_1_06"><param>5</param><param>6</param><param>$wait_time</param></fireRef>
	<fireRef label="stage6A_boss_fire_1_07_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="stage6A_boss_fire_1_06_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_07_s"><param>6</param><param>6</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_06_s"><param>6</param><param>5</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_07_s"><param>6</param><param>5</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_06_s"><param>6</param><param>4</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_07_s"><param>6</param><param>4</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_06_s"><param>6</param><param>3</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_07_s"><param>6</param><param>3</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_06_s"><param>6</param><param>2</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_07_s"><param>6</param><param>2</param><param>$wait_time</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_1_06_s"><param>6</param><param>1</param><param>$wait_time</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_07_s"><param>6</param><param>1</param><param>$wait_time</param></fireRef>
	</repeat>

	<wait>56-6</wait>
	<evaladd name="wait_time">-4</evaladd>
	</repeat>

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


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

</repeat>

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

</action>

<fire label="stage6A_boss_fire_1_01">
	<speed>5</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage6A_boss_bullet_1_01"><param>$2</param></bulletRef>
</fire>

<fire label="stage6A_boss_fire_1_01_s">
	<speed>5</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_1_01"><param>$2</param></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_1_01">

	<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>
		<changeDirection>
			<direction type="relative">$1</direction><term>80</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2.6</speed><term>40</term>
		</changeSpeed>

		<repeat><times>3</times>
			<actionRef label="enemy_bullet_action2"><param>42</param></actionRef>
			<repeat><times>2</times>
				<fireRef label="stage6A_boss_fire_1_02"><param>90</param></fireRef>
				<fireRef label="stage6A_boss_fire_1_02"><param>-90</param></fireRef>
				<wait>1</wait>
			</repeat>
			<wait>8</wait>
		</repeat>

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

		<repeat><times>-1</times>
		<repeat><times>3</times>
			<actionRef label="enemy_bullet_action2"><param>42</param></actionRef>
			<repeat><times>2</times>
				<fireRef label="stage6A_boss_fire_1_02"><param>90</param></fireRef>
				<fireRef label="stage6A_boss_fire_1_02"><param>-90</param></fireRef>
				<wait>1</wait>
			</repeat>
			<wait>8</wait>
		</repeat>
		</repeat>

	</action>
</bullet>

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


<bullet label="stage6A_boss_bullet_1_02">
	<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>255</red><green>14</green><blue>32</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>

	<action>
		<changeSpeed>
			<speed type="absolute">1.8</speed><term>90</term>
		</changeSpeed>
	</action>
</bullet>


<create label="dummy_create_boss_1_01">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<child>1</child>
	<objectRef label="dummy_enemy_boss_1_01"><param>$1</param></objectRef>
</create>

<object label="dummy_enemy_boss_1_01">

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

	<action>
		<eval name="last_sp">0.3</eval>
		<wait>1</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_1_03"><param>-61*$1</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>0</param><param>$last_sp/2</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<wait>2</wait>
		<repeat><times>15</times>
			<evaladd name="last_sp">0.08</evaladd>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72+7*$1</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>0</param><param>$last_sp/2</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<wait>2</wait>
		</repeat>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>15</times>
			<evaladd name="last_sp">0.08</evaladd>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72+7*$1</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>0</param><param>$last_sp/2</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<wait>2</wait>
		</repeat>

		<wait>24</wait>
		<eval name="last_sp">0.3</eval>
		<wait>1</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_1_03"><param>-61*$1</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>0</param><param>$last_sp/2</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
		<wait>2</wait>
		<repeat><times>15</times>
			<evaladd name="last_sp">0.08</evaladd>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72+7*$1</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>0</param><param>$last_sp/2</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<wait>2</wait>
		</repeat>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<repeat><times>15</times>
			<evaladd name="last_sp">0.08</evaladd>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72+7*$1</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>0</param><param>$last_sp/2</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<fireRef label="stage6A_boss_fire_1_03_s"><param>72</param><param>$last_sp</param></fireRef>
			<wait>2</wait>
		</repeat>

		<vanish/>
	</action>
</object>	

<fire label="stage6A_boss_fire_1_03">
	<speed>0.1</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_1_03"><param>$2</param></bulletRef>
</fire>

<fire label="stage6A_boss_fire_1_03_s">
	<speed>0.1</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_1_03"><param>$2</param></bulletRef>
</fire>


<bullet label="stage6A_boss_bullet_1_03">
	<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>235</alpha><red>255</red><green>204</green><blue>32</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>

	<action>
		<wait>45</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>60</term>
		</changeSpeed>
	</action>
</bullet>


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

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

<bullet label="stage6A_boss_bullet_1_04">
	<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>55</red><green>255</green><blue>32</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="stage6A_boss_fire_1_05">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_1_05"><param>$2</param><param>$3</param></bulletRef>
</fire>

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

<bullet label="stage6A_boss_bullet_1_05">
	<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>15</red><green>5</green><blue>255</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="stage6A_boss_fire_1_06">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_1_06"><param>$2</param><param>$3</param></bulletRef>
</fire>

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

<bullet label="stage6A_boss_bullet_1_06">
	<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>55</red><green>255</green><blue>32</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>
	</action>
</bullet>

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

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

<bullet label="stage6A_boss_bullet_1_07">
	<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>15</red><green>5</green><blue>255</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>

	</action>
</bullet>

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

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

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

	<wait>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
<!-- 弾幕開始 -->
	<eval name="y">480-16</eval>
	
	<createRef label="stage6A_boss_create_2_01"><param>140+16</param><param>$y</param><param>15</param></createRef>
	<createRef label="stage6A_boss_create_2_01"><param>500-16</param><param>$y</param><param>25</param></createRef>
	<wait>1</wait>
	<evaladd name="y">-62</evaladd>
	<createRef label="stage6A_boss_create_2_01"><param>140+16</param><param>$y</param><param>7</param></createRef>
	<createRef label="stage6A_boss_create_2_01"><param>500-16</param><param>$y</param><param>9</param></createRef>
	<wait>1</wait>
	<evaladd name="y">-62</evaladd>
	<createRef label="stage6A_boss_create_2_01"><param>140+16</param><param>$y</param><param>14</param></createRef>
	<createRef label="stage6A_boss_create_2_01"><param>500-16</param><param>$y</param><param>29</param></createRef>
	<wait>1</wait>
	<evaladd name="y">-62</evaladd>
	<createRef label="stage6A_boss_create_2_01"><param>140+16</param><param>$y</param><param>41</param></createRef>
	<createRef label="stage6A_boss_create_2_01"><param>500-16</param><param>$y</param><param>27</param></createRef>
	<wait>1</wait>
	<evaladd name="y">-62</evaladd>
	<createRef label="stage6A_boss_create_2_01"><param>140+16</param><param>$y</param><param>28</param></createRef>
	<createRef label="stage6A_boss_create_2_01"><param>500-16</param><param>$y</param><param>19</param></createRef>
	<wait>1</wait>
	<evaladd name="y">-62</evaladd>
	<createRef label="stage6A_boss_create_2_01"><param>140+16</param><param>$y</param><param>11</param></createRef>
	<createRef label="stage6A_boss_create_2_01"><param>500-16</param><param>$y</param><param>10</param></createRef>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<repeat><times>6</times>
	<!-- 170 -->
	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_2_03"><param>0</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_2_03_s"><param>45</param></fireRef>
	</repeat>
	<wait>35</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_2_03_s"><param>12</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_2_03_s"><param>45</param></fireRef>
	</repeat>
	<wait>35</wait>
	<repeat><times>4</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_2_02_s"><param>18</param></fireRef>
		<wait>5</wait>
	</repeat>
	</repeat>

	<changeSpeed>
		<speed type="absolute">0.6</speed><term>15</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">-80+160*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<wait>75</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>75-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_2_02"><param>0</param></fireRef>
	<wait>10</wait>
	<fireRef label="stage6A_boss_fire_2_02_s"><param>0</param></fireRef>
	<wait>10</wait>
	<fireRef label="stage6A_boss_fire_2_02_s"><param>0</param></fireRef>

	<!-- 170 -->
	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_2_03"><param>0</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_2_03_s"><param>45</param></fireRef>
	</repeat>
	<wait>35</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_2_03_s"><param>12</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_2_03_s"><param>45</param></fireRef>
	</repeat>
	<wait>35</wait>
	<repeat><times>4</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>5</times>
		<fireRef label="stage6A_boss_fire_2_02_s"><param>18</param></fireRef>
		<wait>5</wait>
	</repeat>
	</repeat>

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

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_2_02"><param>0</param></fireRef>
	<wait>10</wait>
	<fireRef label="stage6A_boss_fire_2_02_s"><param>0</param></fireRef>
	<wait>10-4</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_2_02_s"><param>0</param></fireRef>


	</repeat>

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

</action>

<!-- 黄魔法陣 -->
<create label="stage6A_boss_create_2_01">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="stage6A_boss_enemy_2_01"><param>$3</param></enemyRef>
</create>

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

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

	<action>
		<eval name="set">$1</eval>
		<wait>50+$set</wait>

		<repeat><times>-1</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_2_01"><param>$set</param></fireRef>
		<repeat><times>7</times>
			<fireRef label="stage6A_boss_fire_2_01_s"><param>45</param></fireRef>
		</repeat>
		<wait>101</wait>
		<eval name="set">($set*2+13)%31</eval>
		<wait>5+$set</wait>
		</repeat>
	</action>
</enemy>

<fire label="stage6A_boss_fire_2_01">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_2_01"></bulletRef>
</fire>

<fire label="stage6A_boss_fire_2_01_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_2_01"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_2_01">
	<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>255</red><green>185</green><blue>2</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed type="absolute">1.1</speed><term>30</term>
		</changeSpeed>
	</action>
</bullet>


<fire label="stage6A_boss_fire_2_02">
	<speed>0.1</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_2_02"></bulletRef>
</fire>

<fire label="stage6A_boss_fire_2_02_s">
	<speed>0.1</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_2_02"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_2_02">

	<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>
		<changeSpeed>
			<speed type="absolute">2.4</speed><term>30</term>
		</changeSpeed>
	</action>
</bullet>

<fire label="stage6A_boss_fire_2_03">
	<speed>0.1</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_2_03"></bulletRef>
</fire>

<fire label="stage6A_boss_fire_2_03_s">
	<speed>0.1</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_2_03"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_2_03">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>48</width><height>48</height>
		<alpha>235</alpha><red>5</red><green>105</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<changeSpeed>
			<speed type="absolute">1</speed><term>30</term>
		</changeSpeed>
	</action>
</bullet>

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

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

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

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

<!-- 弾幕開始 -->
<repeat><times>8</times>
	<eval name="bul_wid">52</eval>
	<eval name="bul_col">21</eval>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_01"><param>40</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<repeat><times>5</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	</repeat>

	<repeat><times>2</times>
	<evaladd name="bul_wid">-2</evaladd>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	</repeat>

	<repeat><times>1</times>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	</repeat>

	<repeat><times>6</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180+5</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_01_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	</repeat>

	<changeDirection>
		<direction type="absolute">-80+160*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.4</speed><term>30</term>
	</changeSpeed>
	<wait>30</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>30</term>
	</changeSpeed>
	<wait>30-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<eval name="bul_wid">52</eval>
	<eval name="bul_col">21</eval>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_02"><param>20</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<repeat><times>5</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	</repeat>

	<repeat><times>2</times>
	<evaladd name="bul_wid">-2</evaladd>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	</repeat>

	<repeat><times>2</times>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<wait>1</wait>
	<evaladd name="bul_wid">-2</evaladd>
	<evaladd name="bul_col">-1</evaladd>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	</repeat>

	<repeat><times>5</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180-6</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>60</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<fireRef label="stage6A_boss_fire_3_02_s"><param>180</param><param>$bul_wid</param><param>$bul_col</param><param>-1</param></fireRef>
	<wait>1</wait>
	</repeat>

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

</repeat>

<wait>120</wait>

<targetRevenge label="stage6A_boss_enemy"></targetRevenge>

</action>

<fire label="stage6A_boss_fire_3_01">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_3_01"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="stage6A_boss_fire_3_01_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_3_01"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

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

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>$1</width><height>$1</height>
		<alpha>235</alpha><red>5</red><green>125</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>15</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10+30</wait>
		<changeDirection>
			<direction type="relative">60*$3</direction><term>80</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.7</speed><term>80</term>
		</changeSpeed>
	</action>
</bullet>


<fire label="stage6A_boss_fire_3_02">
	<speed>3</speed>
	<direction type="aim">$1+15</direction>
	<bulletRef label="stage6A_boss_bullet_3_02"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="stage6A_boss_fire_3_02_s">
	<speed>3</speed>
	<direction type="sequence">$2</direction>
	<bulletRef label="stage6A_boss_bullet_3_02"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

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

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>$1</width><height>$1</height>
		<alpha>235</alpha><red>255</red><green>5</green><blue>2</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<wait>15</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10+30</wait>
		<changeDirection>
			<direction type="relative">-70*$3</direction><term>80</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.7</speed><term>80</term>
		</changeSpeed>
	</action>
</bullet>

<fire label="stage6A_boss_fire_3_03_s">
	<speed>3</speed>
	<direction type="sequence">$2</direction>
	<bulletRef label="stage6A_boss_bullet_3_03"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_3_03">
	<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>235</alpha><red>255</red><green>255</green><blue>2</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<changeSpeed>
			<speed type="absolute">1.4</speed><term>12</term>
		</changeSpeed>
	</action>
</bullet>


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

<action  label="stage6A_boss_04_action">

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

	<changePosition type="center">
		<x>320</x><y>155</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>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>30+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-70</param></fireRef>

	<wait>5</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<changeDirection>
		<direction type="absolute">-80+160*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.4</speed><term>25</term>
	</changeSpeed>
	<wait>25</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>30+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-70</param></fireRef>
	<wait>5</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>
	<wait>11</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_03"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>2</param></fireRef>
	</repeat>

	<wait>21</wait>

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>40+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-90+$_player_cx%11</param></fireRef>

	<wait>5</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>
	<wait>11</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_03"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>2</param></fireRef>
	</repeat>

	<wait>21</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.4</speed><term>25</term>
	</changeSpeed>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>25+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-58+$_player_cx%11</param></fireRef>
	<wait>5</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
	<wait>20</wait>
	<wait>5-3</wait>

</repeat>
<repeat><times>13</times>

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>50+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-100</param></fireRef>
	<wait>5</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<changeDirection>
		<direction type="absolute">-80+160*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.4</speed><term>25</term>
	</changeSpeed>
	<wait>25</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>30+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-70</param></fireRef>
	<wait>5</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>
	<wait>11</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_03"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>2</param></fireRef>
	</repeat>

	<wait>21</wait>

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>40+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-90+$_player_cx%11</param></fireRef>

	<wait>5</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>
	<wait>11</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_03"><param>-3+$_player_cx%7</param><param>6</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_4_03_s"><param>10</param><param>2</param></fireRef>
	</repeat>

	<wait>21</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_02"><param>-2+$_player_cy%5</param><param>6</param></fireRef>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>6</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>5</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>4</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>3</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>9</times>
		<fireRef label="stage6A_boss_fire_4_02_s"><param>8</param><param>2</param></fireRef>
	</repeat>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.4</speed><term>25</term>
	</changeSpeed>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_4_01"><param>25+$_player_cx%11</param></fireRef>
	<fireRef label="stage6A_boss_fire_4_01_s"><param>-58+$_player_cx%11</param></fireRef>
	<wait>5</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
	<wait>20</wait>
	<wait>5-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

<wait>120</wait>

<targetRevenge label="stage6A_boss_enemy"></targetRevenge>
<targetRevenge label="stage6A_boss_bullet_4_01"></targetRevenge>

</action>

<create label="stage6A_boss_create_4_01">
	<speed>1.4</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stage6A_boss_enemy_4_01"></enemyRef>
</create>

<create label="stage6A_boss_create_4_01_s">
	<speed>1.6</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stage6A_boss_enemy_4_01"></enemyRef>
</create>

<enemy label="stage6A_boss_enemy_4_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<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>54</width><height>54</height>
		<alpha>235</alpha><red>2</red><green>255</green><blue>12</blue>
	</img>

	<rotateImg>
		<direction>5</direction><term>-1</term>
	</rotateImg>
<!--
	<setReflect>
		<flag>15</flag><num>999</num>
	</setReflect>
-->
	<action>

	</action>
</enemy>

<fire label="stage6A_boss_fire_4_01">
	<speed>1.6</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage6A_boss_bullet_4_01"></bulletRef>
</fire>

<fire label="stage6A_boss_fire_4_01_s">
	<speed>1.6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_4_01"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_4_01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>18</radius></collision>
	<revengeRef label="4_01_revenge"/>

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

	<action>
	</action>
</bullet>
<revenge label="4_01_revenge">
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<changeColor>
	<alpha>25</alpha><red>129</red><green>2</green><blue>255</blue><term>60</term>
	</changeColor>
	<wait>60</wait>
	<vanish/>
</revenge>

<fire label="stage6A_boss_fire_4_02">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage6A_boss_bullet_4_02"><param>$2</param></bulletRef>
</fire>

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


<bullet label="stage6A_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>235</alpha><red>129</red><green>2</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	
	<action>
		<wait>5+$1</wait>
		<changeSpeed>
			<speed type="absolute">1.8</speed><term>45</term>
		</changeSpeed>
	</action>
</bullet>

<fire label="stage6A_boss_fire_4_03">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage6A_boss_bullet_4_03"><param>$2</param></bulletRef>
</fire>

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


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

	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>18</width><height>18</height>
		<alpha>235</alpha><red>9</red><green>2</green><blue>255</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	
	<action>
		<wait>5+$1</wait>
		<changeSpeed>
			<speed type="absolute">1.2</speed><term>45</term>
		</changeSpeed>
	</action>
</bullet>


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

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

	<changePosition type="center">
		<x>320</x><y>100</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>9</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_5_01"><param>-120</param></fireRef>
	<wait>2</wait>
	<repeat><times>8</times>
		<wait>2</wait>
		<fireRef label="stage6A_boss_fire_5_01_s"><param>10</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>9</times>
			<wait>2</wait>
			<fireRef label="stage6A_boss_fire_5_01_s"><param>10</param></fireRef>
		</repeat>
	</repeat>

	<wait>50</wait>

	<changeDirection>
		<direction type="absolute">-75+150*(($_player_cx)%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.3</speed><term>25</term>
	</changeSpeed>
	<wait>25</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
	<wait>25</wait>

	<wait>59</wait>
	<eval name="bul_dir">9</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_5_03"><param>0</param><param>5</param><param>120</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>4</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>2</param><param>120</param></fireRef>
	</repeat>
	<wait>5</wait>
	<fireRef label="stage6A_boss_fire_5_03"><param>5</param><param>5</param><param>-120</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>5</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>3</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>6</wait>
	<repeat><times>19</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage6A_boss_fire_5_03_s"><param>$bul_dir</param><param>5</param><param>120</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>4</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>2</param><param>120</param></fireRef>
	</repeat>
	<wait>6</wait>
	<fireRef label="stage6A_boss_fire_5_03"><param>5</param><param>5</param><param>-120</param></fireRef>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>5</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>3</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="stage6A_boss_fire_5_03_s"><param>12</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>5</wait>
	<eval name="bul_dir">($_player_cx*3+$bul_dir*4)%11</eval>
	<wait>1</wait>
	</repeat>

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

<wait>120</wait>

<targetRevenge label="stage6A_boss_enemy"></targetRevenge>

</action>

<fire label="stage6A_boss_fire_5_01">
	<speed>0.1</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_5_01"></bulletRef>
</fire>

<fire label="stage6A_boss_fire_5_01_s">
	<speed>0.1</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_5_01"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_5_01">

	<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>
		<changeSpeed>
			<speed type="absolute">2.4</speed><term>30</term>
		</changeSpeed>
		<wait>13</wait>
		<repeat><times>-1</times>
			<wait>13</wait>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage6A_boss_fire_5_02"></fireRef>
		</repeat>
	</action>
</bullet>

<fire label="stage6A_boss_fire_5_02">
	<speed>0</speed>
	<direction type="relative">0</direction>
	<bulletRef label="stage6A_boss_bullet_5_02"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_5_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>255</red><green>2</green><blue>2</blue>
	</img>
	<rotateImg><direction>6</direction><term>-1</term></rotateImg>
	
	<action>
		<wait>65</wait>
		<changeDirection>
			<direction type="relative">-60+5*(($_self_cx*7+$_self_cy*9+$_player_cx*11)%21)</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.5</speed><term>120</term>
		</changeSpeed>
	</action>
</bullet>

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

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

<bullet label="stage6A_boss_bullet_5_03">
	<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>235</alpha><red>5</red><green>128</green><blue>230</blue>
	</img>
	<rotateImg><direction>6</direction><term>-1</term></rotateImg>
	
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">1.9+((($_self_cx+$_player_cx)%4)/10)</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">$2</direction><term>150</term>
		</changeDirection>

	</action>
</bullet>

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

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

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

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

<!-- 弾幕開始 -->
<repeat><times>3</times>
	<!-- １回目 -->
	<createRef label="stage6_bosscreate_0X03000"></createRef>
	<repeat><times>3</times>
		<createRef label="stage6_bosscreate_0X03000_s"></createRef>
		<wait>1</wait>
	</repeat>

	<wait>60</wait>
	<actionRef label="stage6_subAction_MOVE0X0300"><param>30</param></actionRef>
	<wait>60</wait>

	<!-- ２回目 -->
	<createRef label="stage6_bosscreate_0X03001"></createRef>
	<repeat><times>4</times>
		<createRef label="stage6_bosscreate_0X03001_s"></createRef>
		<wait>1</wait>
	</repeat>

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

	<!-- ３回目 -->
	<createRef label="stage6_bosscreate_0X03002"></createRef>
	<repeat><times>5</times>
		<createRef label="stage6_bosscreate_0X03002_s"></createRef>
		<wait>1</wait>
	</repeat>

	<wait>60</wait>
	<actionRef label="stage6_subAction_MOVE0X0300"><param>50</param></actionRef>
	<wait>50</wait>

	<!-- ４回目 -->
	<createRef label="stage6_bosscreate_0X03003"></createRef>
	<repeat><times>6</times>
		<createRef label="stage6_bosscreate_0X03003_s"></createRef>
		<wait>1</wait>
	</repeat>

	<wait>60</wait>
	<actionRef label="stage6_subAction_MOVE0X0301"></actionRef>

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

	<!-- 中央でばらまき -->
	<createRef label="stage6_subFire0X03A">
	</createRef>
	<wait>5</wait>
	<createRef label="stage6_subFire0X03B">
	</createRef>

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

	<changeSpeed>
		<speed type="absolute">1.5</speed><term>25</term>
	</changeSpeed>

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

</repeat>
<wait>120</wait>

<targetRevenge label="stage6A_boss_enemy"></targetRevenge>

</action>

<!-- 移動用 -->
<action label="stage6_subAction_MOVE0X0300">

	<repeat><times>($_self_cx-lt320)</times>
		<eval name="DRCT">60+60*($_self_cy-lt100)</eval>
	</repeat>
	<repeat><times>1-($_self_cx-lt320)</times>
		<eval name="DRCT">300-60*($_self_cy-lt100)</eval>
	</repeat>
	
	<changeDirection>
		<direction type="absolute">$DRCT</direction>
		<term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed>0.5</speed>
		<term>1</term>
	</changeSpeed>
	<wait>$1-1</wait>
	<changeSpeed>
		<speed>0</speed>
		<term>1</term>
	</changeSpeed>
	<wait>1</wait>
</action>

<action label="stage6_subAction_MOVE0X0301">
        <eval name="XPOS">($_player_cx*13)%33+304</eval>
        <eval name="YPOS">($_player_cy/80)+120</eval>
	<changeSpeed>
		<speed type="absolute">2</speed><term>15</term>
	</changeSpeed>
	<changePosition type="center">
		<x>$XPOS</x><y>$YPOS</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>15</wait>
</action>

<!-- create 魔法陣 -->
<create label="stage6_bosscreate_0X03000">
	<speed>32</speed>
	<direction type="absolute">90</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03000">
	</enemyRef>
</create>

<create label="stage6_bosscreate_0X03000_s">
	<speed>32</speed>
	<direction type="sequence">90</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03000">
	</enemyRef>
</create>

<enemy label="stage6_enemy_0X03000">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<child>1</child>

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

	<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>
	<action>
		<eval name="NEXTD">0</eval>

		<!--最初のフレで所定の位置に移動する-->
		<wait>1</wait>
		<changeDirection>
			<direction type="relative">90</direction>
			<term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>0</speed>
			<term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<!--移動開始-->
		<changeDirection>
			<direction type="relative">180</direction>
			<term>120</term>
		</changeDirection>
		<changeSpeed>
			<speed>(32*3.1416/180*180/120)</speed>
			<term>1</term>
		</changeSpeed>

		<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
			<fireRef label="stage6_fire0X0300">
			<param>1.5</param><!--速度-->
			<param>75</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300b">
			<param>1.5</param><!--速度-->
			<param>$NEXTD</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300">
			<param>1.5*1.5</param>
			<param>75/2</param>
			</fireRef>
			<fireRef label="stage6_fire0X0300b">
			<param>1.5*1.5</param>
			<param>0</param>
			</fireRef>

			<evaladd name="NEXTD">-24</evaladd>

			<wait>10</wait>
		</repeat>
		</repeat>
		<wait>8</wait>

		<!--消える前の攻撃-->
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<eval name="BSPEED">1.2</eval>
		<fireRef label="stage6_fire0X0301">
			<param>$BSPEED</param>
			<param>(-360/256*(4-1)/2)</param>
		</fireRef>

		<repeat><times>3</times>
			<wait>8</wait>
			<evaladd name="BSPEED">0.6</evaladd>
			<fireRef label="stage6_fire0X0301_s">
				<param>$BSPEED</param>
				<param>360/256</param>
			</fireRef>
		</repeat>
		<changeColor>
			<alpha>35</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>
	</action>

</enemy>


<create label="stage6_bosscreate_0X03001">
	<speed>40</speed>
	<direction type="absolute">72</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03001">
	</enemyRef>
</create>

<create label="stage6_bosscreate_0X03001_s">
	<speed>40</speed>
	<direction type="sequence">72</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03001">
	</enemyRef>
</create>

<enemy label="stage6_enemy_0X03001">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<child>1</child>

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

	<img type="normal">
		<file type="dds">s_mahoujin3</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>
	<action>
		<eval name="NEXTD">0</eval>

		<!--最初のフレで所定の位置に移動する-->
		<wait>1</wait>
		<changeDirection>
			<direction type="relative">90</direction>
			<term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>0</speed>
			<term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<!--移動開始-->
		<changeDirection>
			<direction type="relative">-180</direction>
			<term>120</term>
		</changeDirection>
		<changeSpeed>
			<speed>(40*3.1416/180*(-180/120))</speed>
			<term>1</term>
		</changeSpeed>

		<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
			<fireRef label="stage6_fire0X0300">
			<param>1.7</param><!--速度-->
			<param>75</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300b">
			<param>1.7</param><!--速度-->
			<param>$NEXTD</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300">
			<param>1.7*1.5</param>
			<param>75/2</param>
			</fireRef>
			<fireRef label="stage6_fire0X0300b">
			<param>1.7*1.5</param>
			<param>0</param>
			</fireRef>

			<evaladd name="NEXTD">-24</evaladd>

			<wait>10</wait>
		</repeat>
		</repeat>
		<wait>8</wait>

		<!--消える前の攻撃-->
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<eval name="BSPEED">1.5</eval>
		<fireRef label="stage6_fire0X0301">
			<param>$BSPEED</param>
			<param>(360/256*(4-1)/2)</param>
		</fireRef>

		<repeat><times>4</times>
			<wait>8</wait>
			<evaladd name="BSPEED">0.4</evaladd>
			<fireRef label="stage6_fire0X0301_s">
				<param>$BSPEED</param>
				<param>-360/256</param>
			</fireRef>
		</repeat>
		<changeColor>
			<alpha>35</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>
	</action>

</enemy>

<create label="stage6_bosscreate_0X03002">
	<speed>48</speed>
	<direction type="aim">60</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03002">
	</enemyRef>
</create>

<create label="stage6_bosscreate_0X03002_s">
	<speed>48</speed>
	<direction type="sequence">60</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03002">
	</enemyRef>
</create>

<enemy label="stage6_enemy_0X03002">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<child>1</child>

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

	<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>
	<action>
		<eval name="NEXTD">0</eval>

		<!--最初のフレで所定の位置に移動する-->
		<wait>1</wait>
		<changeDirection>
			<direction type="relative">90</direction>
			<term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>0</speed>
			<term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<!--移動開始-->
		<changeDirection>
			<direction type="relative">180</direction>
			<term>120</term>
		</changeDirection>
		<changeSpeed>
			<speed>(48*3.1416/180*180/120)</speed>
			<term>1</term>
		</changeSpeed>

		<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
			<fireRef label="stage6_fire0X0300">
			<param>1.9</param><!--速度-->
			<param>75</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300b">
			<param>1.9</param><!--速度-->
			<param>$NEXTD</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300">
			<param>1.9*1.5</param>
			<param>75/2</param>
			</fireRef>
			<fireRef label="stage6_fire0X0300b">
			<param>1.9*1.5</param>
			<param>0</param>
			</fireRef>

			<evaladd name="NEXTD">-24</evaladd>

			<wait>10</wait>
		</repeat>
		</repeat>
		<wait>8</wait>

		<!--消える前の攻撃-->
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<eval name="BSPEED">1.3</eval>
		<fireRef label="stage6_fire0X0301">
			<param>$BSPEED</param>
			<param>(-360/256*(4-1)/2)</param>
		</fireRef>

		<repeat><times>5</times>
			<wait>8</wait>
			<evaladd name="BSPEED">0.4</evaladd>
			<fireRef label="stage6_fire0X0301_s">
				<param>$BSPEED</param>
				<param>360/256</param>
			</fireRef>
		</repeat>
		<changeColor>
			<alpha>35</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>
	</action>

</enemy>

<create label="stage6_bosscreate_0X03003">
	<speed>56</speed>
	<direction type="aim">51.4</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03003">
	</enemyRef>
</create>

<create label="stage6_bosscreate_0X03003_s">
	<speed>56</speed>
	<direction type="sequence">51.4</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_enemy_0X03003">
	</enemyRef>
</create>

<enemy label="stage6_enemy_0X03003">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<child>1</child>

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

	<img type="normal">
		<file type="dds">s_mahoujin4</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>
	<action>
		<eval name="NEXTD">0</eval>

		<!--最初のフレで所定の位置に移動する-->
		<wait>1</wait>
		<changeDirection>
			<direction type="relative">90</direction>
			<term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>0</speed>
			<term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<!--移動開始-->
		<changeDirection>
			<direction type="relative">180</direction>
			<term>120</term>
		</changeDirection>
		<changeSpeed>
			<speed>(56*3.1416/180*180/120)</speed>
			<term>1</term>
		</changeSpeed>

		<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
			<fireRef label="stage6_fire0X0300">
			<param>2</param><!--速度-->
			<param>75</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300b">
			<param>2</param><!--速度-->
			<param>$NEXTD</param><!--角度-->
			</fireRef>

			<fireRef label="stage6_fire0X0300">
			<param>2*1.5</param>
			<param>75/2</param>
			</fireRef>
			<fireRef label="stage6_fire0X0300b">
			<param>2*1.5</param>
			<param>0</param>
			</fireRef>

			<evaladd name="NEXTD">-24</evaladd>

			<wait>10</wait>
		</repeat>
		</repeat>
		<wait>8</wait>

		<!--消える前の攻撃-->
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<eval name="BSPEED">1.2</eval>
		<fireRef label="stage6_fire0X0301">
			<param>$BSPEED</param>
			<param>(-360/256*(4-1)/2)</param>
		</fireRef>

		<repeat><times>6</times>
			<wait>8</wait>
			<evaladd name="BSPEED">0.4</evaladd>
			<fireRef label="stage6_fire0X0301_s">
				<param>$BSPEED</param>
				<param>360/256</param>
			</fireRef>
		</repeat>
		<changeColor>
			<alpha>35</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>
	</action>

</enemy>


<fire label="stage6_fire0X0300">
	<speed>0</speed>
	<direction type="relative">$2</direction>
	<bulletRef label="stage6_bullet_0X0300">
	<param>$1</param>
	<param>255</param>
	<param>32</param>
	<param>32</param>
	</bulletRef>
</fire>
<fire label="stage6_fire0X0300b">
	<speed>0</speed>
	<direction type="relative">$2</direction>
	<bulletRef label="stage6_bullet_0X0300">
	<param>$1</param>
	<param>32</param>
	<param>32</param>
	<param>255</param>
	</bulletRef>
</fire>
<bullet label="stage6_bullet_0X0300">
	<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>$1</speed><term>40</term>
		</changeSpeed>
	</action>

</bullet>

<fire label="stage6_fire0X0301">
	<speed>0</speed>
	<direction type="aim">$2</direction>
	<bulletRef label="stage6_bullet_0X0301">
	<param>$1</param>
	</bulletRef>
</fire>
<fire label="stage6_fire0X0301_s">
	<speed>0</speed>
	<direction type="sequence">$2</direction>
	<bulletRef label="stage6_bullet_0X0301">
	<param>$1</param>
	</bulletRef>
</fire>
<bullet label="stage6_bullet_0X0301">
	<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>32</red><green>240</green><blue>64</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>

	<action>
		<changeSpeed>
			<speed>$1</speed><term>20</term>
		</changeSpeed>
	</action>

</bullet>



<create label="stage6_subFire0X03A">
	<direction>0</direction>
	<speed>0</speed>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_subBullet_0X03A">
	</enemyRef>
</create>

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

	<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>
	<child>1</child>

	<action>
		<changeDirection>
			<direction>90</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>120/(6*64)</speed><term>(6*64/4)</term>
		</changeSpeed>
		<eval name="SPEED">1.5</eval>
		<eval name="SLOW">120</eval>

		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="stage6_bossFire0X0303">
		<param>$SPEED</param>
		<param>0</param>
		<param>$SLOW</param>
		</fireRef>
		<fireRef label="stage6_bossFire0X0303_s">
		<param>$SPEED</param>
		<param>60</param>
		<param>$SLOW</param>
		</fireRef>
		<repeat><times>2</times>
			<wait>1</wait>
			<fireRef label="stage6_bossFire0X0303_s">
			<param>$SPEED</param>
			<param>60</param>
			<param>$SLOW</param>
			</fireRef>
			<fireRef label="stage6_bossFire0X0303_s">
			<param>$SPEED</param>
			<param>60</param>
			<param>$SLOW</param>
			</fireRef>
		</repeat>
		<repeat><times>3</times>
			<wait>4</wait>
			<evaladd name="SPEED">1.6/64</evaladd>
			<evaladd name="SLOW">360/384</evaladd>
			<wait>3</wait>
			<fireRef label="stage6_bossFire0X0303_s">
			<param>$SPEED</param>
			<param>360/6+360/32</param>
			<param>$SLOW</param>
			</fireRef>
			<fireRef label="stage6_bossFire0X0303_s">
			<param>$SPEED</param>
			<param>360/6</param>
			<param>$SLOW</param>
			</fireRef>
			<repeat><times>2</times>
				<wait>1</wait>
				<fireRef label="stage6_bossFire0X0303_s">
				<param>$SPEED</param>
				<param>360/6</param>
				<param>$SLOW</param>
				</fireRef>
				<fireRef label="stage6_bossFire0X0303_s">
				<param>$SPEED</param>
				<param>360/6</param>
				<param>$SLOW</param>
				</fireRef>
			</repeat>
		</repeat>
		<wait>4</wait>
		<evaladd name="SPEED">1.6/64</evaladd>
		<evaladd name="SLOW">360/384</evaladd>
		<wait>3</wait>

		<repeat><times>11</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage6_bossFire0X0303_s">
			<param>$SPEED</param>
			<param>60+360/32</param>
			<param>$SLOW</param>
			</fireRef>
			<fireRef label="stage6_bossFire0X0303_s">
			<param>$SPEED</param>
			<param>60</param>
			<param>$SLOW</param>
			</fireRef>
			<repeat><times>2</times>
				<wait>1</wait>
				<fireRef label="stage6_bossFire0X0303_s">
				<param>$SPEED</param>
				<param>60</param>
				<param>$SLOW</param>
				</fireRef>
				<fireRef label="stage6_bossFire0X0303_s">
				<param>$SPEED</param>
				<param>60</param>
				<param>$SLOW</param>
				</fireRef>
			</repeat>
			<wait>4</wait>
			<evaladd name="SPEED">1.6/64</evaladd>
			<evaladd name="SLOW">360/384</evaladd>
			<wait>3</wait>
		</repeat>
		</repeat>
		<vanish/>
	</action>
</enemy>


<create label="stage6_subFire0X03B">
	<direction>0</direction>
	<speed>0</speed>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage6_subBullet_0X03B">
	</enemyRef>
</create>

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

	<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>
	<child>1</child>

	<action>
		<changeDirection>
			<direction>270</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>120/(6*64)</speed><term>(6*64/4)</term>
		</changeSpeed>
		<eval name="SPEED">1.8</eval>
		<eval name="SLOW">120</eval>

		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="stage6_bossFire0X0305">
		<param>$SPEED</param>
		<param>0</param>
		<param>$SLOW</param>
		</fireRef>
		<fireRef label="stage6_bossFire0X0305_s">
		<param>$SPEED</param>
		<param>60</param>
		<param>$SLOW</param>
		</fireRef>
		<repeat><times>2</times>
			<wait>1</wait>
			<fireRef label="stage6_bossFire0X0305_s">
			<param>$SPEED</param>
			<param>60</param>
			<param>$SLOW</param>
			</fireRef>
			<fireRef label="stage6_bossFire0X0305_s">
			<param>$SPEED</param>
			<param>60</param>
			<param>$SLOW</param>
			</fireRef>
		</repeat>
		<repeat><times>3</times>
			<wait>4</wait>
			<evaladd name="SPEED">1.4/64</evaladd>
			<evaladd name="SLOW">360/384</evaladd>
			<wait>3</wait>
			<fireRef label="stage6_bossFire0X0305_s">
			<param>$SPEED</param>
			<param>60-360/32</param>
			<param>$SLOW</param>
			</fireRef>
			<fireRef label="stage6_bossFire0X0305_s">
			<param>$SPEED</param>
			<param>60</param>
			<param>$SLOW</param>
			</fireRef>
			<repeat><times>2</times>
				<wait>1</wait>
				<fireRef label="stage6_bossFire0X0305_s">
				<param>$SPEED</param>
				<param>60</param>
				<param>$SLOW</param>
				</fireRef>
				<fireRef label="stage6_bossFire0X0305_s">
				<param>$SPEED</param>
				<param>60</param>
				<param>$SLOW</param>
				</fireRef>
			</repeat>
		</repeat>
		<wait>4</wait>
		<evaladd name="SPEED">1.4/64</evaladd>
		<evaladd name="SLOW">360/256</evaladd>
		<wait>3</wait>

		<repeat><times>11</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage6_bossFire0X0305_s">
			<param>$SPEED</param>
			<param>60-360/32</param>
			<param>$SLOW</param>
			</fireRef>
			<fireRef label="stage6_bossFire0X0305_s">
			<param>$SPEED</param>
			<param>60</param>
			<param>$SLOW</param>
			</fireRef>
			<repeat><times>2</times>
				<wait>1</wait>
				<fireRef label="stage6_bossFire0X0305_s">
				<param>$SPEED</param>
				<param>60</param>
				<param>$SLOW</param>
				</fireRef>
				<fireRef label="stage6_bossFire0X0305_s">
				<param>$SPEED</param>
				<param>60</param>
				<param>$SLOW</param>
				</fireRef>
			</repeat>
			<wait>4</wait>
			<evaladd name="SPEED">1.4/64</evaladd>
			<evaladd name="SLOW">360/256</evaladd>
			<wait>3</wait>
		</repeat>
		</repeat>
		<vanish/>
	</action>
</enemy>

<fire label="stage6_bossFire0X0303">
	<speed>$1</speed>
	<direction type="aim">$2</direction>
	<bulletRef label="stage6_bullet_0X0303">
	<param>$1</param>
	<param>$3</param>
	</bulletRef>
</fire>
<fire label="stage6_bossFire0X0303_s">
	<speed>$1</speed>
	<direction type="sequence">$2</direction>
	<bulletRef label="stage6_bullet_0X0303">
	<param>$1</param>
	<param>$3</param>
	</bulletRef>
</fire>

<bullet label="stage6_bullet_0X0303">
	<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>255</red><green>32</green><blue>32</blue>
	</img>

	<action>
		<wait>20</wait>
		<fireRef label="stage6_bossFire0X0304">
		<param>$1*0.75</param>
		<param>$2</param>
		</fireRef>
	</action>

</bullet>

<fire label="stage6_bossFire0X0304">
	<speed>$1</speed>
	<direction type="relative">$2</direction>
	<bulletRef label="stage6_bullet_0X0304">
	</bulletRef>
</fire>

<bullet label="stage6_bullet_0X0304">
	<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>224</red><green>224</green><blue>32</blue>
	</img>

	<action>
	</action>

</bullet>


<fire label="stage6_bossFire0X0305">
	<speed>$1</speed>
	<direction type="aim">$2</direction>
	<bulletRef label="stage6_bullet_0X0305">
	<param>$1</param>
	<param>$3</param>
	</bulletRef>
</fire>
<fire label="stage6_bossFire0X0305_s">
	<speed>$1</speed>
	<direction type="sequence">$2</direction>
	<bulletRef label="stage6_bullet_0X0305">
	<param>$1</param>
	<param>$3</param>
	</bulletRef>
</fire>

<bullet label="stage6_bullet_0X0305">
	<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>32</red><green>32</green><blue>255</blue>
	</img>

	<action>
		<wait>20</wait>
		<fireRef label="stage6_bossFire0X0306">
		<param>$1*0.75</param>
		<param>$2</param>
		</fireRef>
	</action>

</bullet>

<fire label="stage6_bossFire0X0306">
	<speed>$1</speed>
	<direction type="relative">$2</direction>
	<bulletRef label="stage6_bullet_0X0306">
	</bulletRef>
</fire>

<bullet label="stage6_bullet_0X0306">
	<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>32</red><green>240</green><blue>64</blue>
	</img>

	<action>
	</action>

</bullet>

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

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

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

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

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

<!-- ボム中あたり判定用 -->
<createRef label="stage6A_boss_create_6_dummy"></createRef>

<wait>80</wait>

<!-- 弾幕開始 -->
<repeat><times>15</times>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_01"><param>0</param></fireRef>

		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03"><param>-72</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<fireRef label="stage6A_boss_fire_6_01_s"><param>0</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<fireRef label="stage6A_boss_fire_6_01_s"><param>0</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_01_s"><param>0</param></fireRef>

	<repeat><times>3</times>

		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03"><param>-72-18</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
	</repeat>

		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03"><param>-72</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
	<repeat><times>2</times>

		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03"><param>-72-18</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
	</repeat>

		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03"><param>-72-18</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_03_s"><param>36</param></fireRef>
		<wait>10-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>


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

</action>

<fire label="stage6A_boss_fire_6_01">
	<speed>1.2</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_6_01"></bulletRef>
</fire>

<fire label="stage6A_boss_fire_6_01_s">
	<speed>1.2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_6_01"></bulletRef>
</fire>

<bullet label="stage6A_boss_bullet_6_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>255</red><green>62</green><blue>62</blue>
	</img>
	<rotateImg><direction>4</direction><term>-1</term></rotateImg>
	<action>
		<repeat><times>32</times>
		<changeDirection>
			<speed type="aim">0</speed><term>5</term>
		</changeDirection>
		<wait>5</wait>
		</repeat>
		<eval name="x">$_player_cx</eval>
		<eval name="y">$_player_cy</eval>
		<changePosition>
			<x>$x</x><y>$y</y>
		</changePosition>
		<changeSpeed>
			<speed type="absolute">0</speed><term>5</term>
		</changeSpeed>
		<wait>1</wait>
		<changeColor>
			<alpha>255</alpha><red>255</red><green>255</green><blue>105</blue><term>120</term>
		</changeColor>
		<wait>120</wait>
		<actionRef label="enemy_bullet_action4"><param>42</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_02"><param>5-($_self_cx%11)</param><param>3</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="stage6A_boss_fire_6_02_s"><param>24</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage6A_boss_fire_6_02_s"><param>24</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage6A_boss_fire_6_02_s"><param>24</param><param>1</param></fireRef>
		</repeat>
		<vanish/>
	</action>

</bullet>

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

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

<bullet label="stage6A_boss_bullet_6_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>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">1.2</speed><term>65</term>
		</changeSpeed>
	</action>
</bullet>


<fire label="stage6A_boss_fire_6_03">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage6A_boss_bullet_6_03"></bulletRef>
</fire>

<fire label="stage6A_boss_fire_6_03_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage6A_boss_bullet_6_03"></bulletRef>
</fire>

<bullet label="stage6A_boss_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>2</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">3.2</speed><term>30</term>
		</changeSpeed>
		<wait>15</wait>
		<actionRef label="enemy_bullet_action4"><param>42</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_04_r"><param>10</param><param>3</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage6A_boss_fire_6_04_s"><param>30</param><param>3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage6A_boss_fire_6_04_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>15</wait>
		<actionRef label="enemy_bullet_action4"><param>42</param></actionRef>
		<fireRef label="stage6A_boss_fire_6_05_r"><param>15</param><param>3</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage6A_boss_fire_6_05_s"><param>60</param><param>3</param></fireRef>
		</repeat>

	</action>
</bullet>

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

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

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

<bullet label="stage6A_boss_bullet_6_04">

	<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>51*($_player_cx%6)</red><green>127+127*($_player_cy%2)</green><blue>2</blue>
	</img>
	<rotateImg><direction>6</direction><term>-1</term></rotateImg>
<!--
	<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>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">1.6</speed><term>30</term>
		</changeSpeed>
	</action>
</bullet>

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

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

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

<bullet label="stage6A_boss_bullet_6_05">

	<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>51*($_player_cx%6)</red><green>7</green><blue>127+127*($_player_cy%2)</blue>
	</img>
	<rotateImg><direction>6</direction><term>-1</term></rotateImg>
<!--
	<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>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">1.6</speed><term>30</term>
		</changeSpeed>
	</action>
</bullet>

<create label="stage6A_boss_create_6_dummy">
	<speed>0</speed>
	<direction type="sequence">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>99999999</vital>
	<child>1</child>
	<enemyRef label="stage6A_boss_enemy_6_dummy"></enemyRef>
</create>

<enemy label="stage6A_boss_enemy_6_dummy">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>18</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_light</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>2</red><green>255</green><blue>12</blue>
	</img>

	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>
</enemy>


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

<revenge label="stage6A_boss_01_revenge">

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

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

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

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

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

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

	<wait>1</wait>
	<actionRef label="revenge_bullet_boss"/>

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

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

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


<revenge label="stage6A_boss_02_revenge">

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

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

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

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

	<wait>1</wait>
	<actionRef label="revenge_bullet_boss"/>

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

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

<revenge label="stage6A_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>52-($_self_cx%9)*13</param><param>52-($_self_cx%14)*8</param></createRef>
	<wait>1</wait>
	<repeat><times>$_revenge_state-eq1</times>
		<createRef label="item_create_03"><param>16-$_self_cy%32</param><param>16-($_self_cy%8)*4</param></createRef>
		<createRef label="item_create_03"><param>12-$_self_cx%24</param><param>24-$_self_cx%48</param></createRef>
		<createRef label="item_create_03"><param>24-($_self_cy%8)*6</param><param>12-$_self_cy%24</param></createRef>
	</repeat>

	<wait>1</wait>
	<actionRef label="revenge_bullet_boss"/>

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

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

<revenge label="stage6A_boss_04_revenge">

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

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

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

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

	<wait>1</wait>
	<actionRef label="revenge_bullet_boss"/>

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

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

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

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

	<wait>1</wait>
	<actionRef label="revenge_bullet_boss"/>

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

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

<revenge label="stage6A_boss_06_revenge">

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

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

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

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

	<wait>1</wait>
	<actionRef label="revenge_bullet_boss"/>

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

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


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

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


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


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

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

	<!-- *** ライフ表示を消す *** -->
	<targetRevenge label="boss_life"></targetRevenge>
	<!-- *** ボス名称表示を消す *** -->
	<targetRevenge label="boss_name_stage6_maiha2"></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_action2"></actionRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>
	<repeat><times>($_revenge_state-eq1)</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>3</param><param>0</param></actionRef>
			<createRef label="item_create_01_etb"><param>-30000</param><param>1000000</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>2450</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>80</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

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

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

</revenge>



</exbulletml>
