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

<!-- ********************************************************************* -->
<!-- *** 中ボス戦はここから始ま                                        *** -->
<!-- *** stageEX中ボス（１回目） normal                                 *** -->

<action label="stageEX_middle_boss">

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

	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="enemy_create_middle_boss"><param>500+12</param><param>32</param></createRef>
	<createRef label="enemy_create_middle_boss_w"><param>140-12</param><param>32</param></createRef>


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

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

</action>



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

<create label="enemy_create_middle_boss">

	<speed>6</speed>
	<direction type="absolute">-105</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>9999</vital>
	<inv>40</inv>
	<score>110000</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>9999</vital>
	<inv>40</inv>
	<score>110000</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>9999</vital>
	<inv>40</inv>
	<score>110000</score>
	<prate>$__middle_boss_prate3</prate>
	<enemyRef label="enemy_middle_boss"></enemyRef>

</create>

<create label="enemy_create_middle_boss_escape">

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

</create>

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

<create label="enemy_create_middle_boss_w">

	<speed>6</speed>
	<direction type="absolute">105</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>9999</vital>
	<inv>40</inv>
	<score>110000</score>
	<prate>$__middle_boss_prate</prate>
	<enemyRef label="enemy_middle_boss_w"></enemyRef>

</create>

<create label="enemy_create_middle_boss_w2">

	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
 	<vital>9999</vital>
	<inv>40</inv>
	<score>110000</score>
	<prate>$__middle_boss_prate2</prate>
	<enemyRef label="enemy_middle_boss_w"></enemyRef>

</create>

<create label="enemy_create_middle_boss_w3">

	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
 	<vital>9999</vital>
	<inv>40</inv>
	<score>110000</score>
	<prate>$__middle_boss_prate3</prate>
	<enemyRef label="enemy_middle_boss_w"></enemyRef>

</create>

<create label="enemy_create_middle_boss_escape_w">

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

</create>


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


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

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


	<!-- *** 画面下のボス表示を作成 *** -->
	<createRef label="boss_underbar_create"></createRef>
	<global name="self_kill">0</global>
	<global name="move_wait">0</global>
	<global name="vital_temp">0</global>

	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<!-- 本当のボスVital -->
		<presentRef label="enemy_present_ex_middle"><param>1600</param></presentRef>
		<createRef label="boss_vital_create_EX1"><param>1600</param></createRef>

		<revengeRef label="stageEX_middle_boss_01_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_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>

		<!-- 本当のボスVital -->
		<presentRef label="enemy_present_ex_middle"><param>1400</param></presentRef>
		<createRef label="boss_vital_create_EX1"><param>1400</param></createRef>

		<revengeRef label="stageEX_middle_boss_02_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_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>

		<!-- 本当のボスVital -->
		<presentRef label="enemy_present_ex_middle"><param>1700</param></presentRef>
		<createRef label="boss_vital_create_EX1"><param>1700</param></createRef>

		<revengeRef label="stageEX_middle_boss_03_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_middle_boss_03_action"></actionRef>
	</repeat>
</enemy>

<enemy label="enemy_middle_boss_escape">

	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<presentRef label="enemy_present_ex_middle"><param>1</param></presentRef>

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

</enemy>


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


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


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

	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<presentRef label="enemy_present_ex_middle_w"><param>1600</param></presentRef>
		<createRef label="boss_vital_create_EX2"></createRef>
		<revengeRef label="stageEX_middle_boss_w_01_revenge"></revengeRef>
		<actionRef  label="stageEX_middle_boss_w_01_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq2</times>
		<presentRef label="enemy_present_ex_middle_w"><param>1400</param></presentRef>
		<createRef label="boss_vital_create_EX2"></createRef>
		<revengeRef label="stageEX_middle_boss_w_02_revenge"></revengeRef>
		<actionRef  label="stageEX_middle_boss_w_02_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq3</times>
		<presentRef label="enemy_present_ex_middle_w"><param>1700</param></presentRef>
		<createRef label="boss_vital_create_EX2"></createRef>
		<revengeRef label="stageEX_middle_boss_w_03_revenge"></revengeRef>
		<actionRef  label="stageEX_middle_boss_w_03_action"></actionRef>
	</repeat>
</enemy>

<enemy label="enemy_middle_boss_escape_w">

	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<presentRef label="enemy_present_ex_middle_w"><param>1</param></presentRef>

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

</enemy>


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

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

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

<!-- 弾幕開始 -->
<!-- No1　ウィルスばらまき -->

<repeat><times>3</times>
	<repeat><times>2</times>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_03"><param>-90</param><param>255</param><param>8</param><param>4</param><param>1</param></fireRef>
	<repeat><times>11</times>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_03_s"><param>15</param><param>255</param><param>8</param><param>4</param><param>1</param></fireRef>
	</repeat>
	<wait>15</wait>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_03"><param>-126</param><param>255</param><param>8</param><param>4</param><param>1</param></fireRef>
	<repeat><times>15</times>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_03_s"><param>15</param><param>255</param><param>8</param><param>4</param><param>1</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

	<repeat><times>3</times>
		<eval name="dir">4-($_player_cx%9)</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>$dir</param><param>5</param><param>8</param><param>4</param><param>1</param></fireRef>
		<repeat><times>14</times>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_01_s"><param>24</param><param>5</param><param>8</param><param>4</param><param>1</param></fireRef>
		</repeat>
		<wait>20</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01_s"><param>140+$dir</param><param>5</param><param>8</param><param>4</param><param>-1</param></fireRef>
		<repeat><times>11</times>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_01_s"><param>-30</param><param>5</param><param>8</param><param>4</param><param>-1</param></fireRef>
		</repeat>
		<wait>20</wait>
	</repeat>

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

	<changeDirection>
		<direction type="absolute">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.2</speed><term>30</term>
	</changeSpeed>
	<wait>10</wait>
	<changeDirection>
		<direction type="absolute">30</direction><term>60</term>
	</changeDirection>
	<wait>60</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>15</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_05"><param>-85</param><param>0.5</param><param>3.0</param></fireRef>
	<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.4</param><param>2.8</param></fireRef>
	<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.3</param><param>2.6</param></fireRef>
	<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.2</param><param>2.4</param></fireRef>
	<wait>2</wait>
	<repeat><times>15</times>
		<fireRef label="middle_boss_fire_05_s"><param>5</param><param>0.5</param><param>3.0</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.4</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.3</param><param>2.6</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.2</param><param>2.4</param></fireRef>
		<wait>2</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>16</times>
		<fireRef label="middle_boss_fire_05_s"><param>5</param><param>0.5</param><param>3.0</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.4</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.3</param><param>2.6</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.2</param><param>2.4</param></fireRef>
		<wait>2</wait>
	</repeat>
	<wait>90</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_05"><param>-85</param><param>0.5</param><param>2.8</param></fireRef>
	<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.4</param><param>2.5</param></fireRef>
	<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.3</param><param>2.2</param></fireRef>
	<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.2</param><param>1.9</param></fireRef>
	<wait>2</wait>
	<repeat><times>15</times>
		<fireRef label="middle_boss_fire_05_s"><param>5</param><param>0.5</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.4</param><param>2.5</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.3</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.2</param><param>1.9</param></fireRef>
		<wait>2</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>16</times>
		<fireRef label="middle_boss_fire_05_s"><param>5</param><param>0.5</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.4</param><param>2.5</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.3</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>0</param><param>0.2</param><param>1.9</param></fireRef>
		<wait>2</wait>
	</repeat>

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

	<createRef label="middle_boss_create_01"><param>0</param><param>-64</param><param>5</param></createRef>
	<createRef label="middle_boss_create_01"><param>0</param><param>64</param><param>30</param></createRef>
	<createRef label="middle_boss_create_01"><param>36</param><param>28</param><param>55</param></createRef>
	<createRef label="middle_boss_create_01"><param>36</param><param>-28</param><param>80</param></createRef>
	<createRef label="middle_boss_create_01"><param>-36</param><param>28</param><param>105</param></createRef>
	<createRef label="middle_boss_create_01"><param>-36</param><param>-28</param><param>130</param></createRef>
	<wait>5</wait>
	<soundRef label="ex_move" type="se"></soundRef>

	<wait>15</wait>

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

	<wait>30</wait>
	</repeat>

	<changeDirection>
		<direction type="absolute">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.2</speed><term>30</term>
	</changeSpeed>
	<wait>10</wait>
	<changeDirection>
		<direction type="absolute">-30</direction><term>60</term>
	</changeDirection>
	<wait>60</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>15-3</wait>

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


<wait>60</wait>
<global name="self_kill">1</global>
<targetRevenge label="enemy_middle_boss"></targetRevenge>
<targetRevenge label="enemy_middle_boss_w"></targetRevenge>

</action>

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

<fire label="middle_boss_fire_01_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></bulletRef>
</fire>

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

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

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

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

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

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

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

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

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

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

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

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

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

<bullet label="middle_boss_bullet_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></fireRef>

		<repeat><times>3</times>
		<fireRef label="middle_boss_fire_02_s"><param>$1</param><param>$2</param><param>$3</param></fireRef>
		</repeat>

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

		<changeDirection>
			<direction type="relative">$4*60</direction><term>120</term>
		</changeDirection>

	</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.4</speed><term>10</term>
		</changeSpeed>
		<wait>11</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>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_04"><param>$1</param><param>$2</param><param>$3</param></fireRef>

		<repeat><times>3</times>
		<fireRef label="middle_boss_fire_04_s"><param>$1</param><param>$2</param><param>$3</param></fireRef>
		</repeat>

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

	</action>

</bullet>

<bullet label="middle_boss_bullet_04">

	<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.4</speed><term>10</term>
		</changeSpeed>
		<wait>11</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_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>200</alpha><red>2</red><green>255</green><blue>15</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>
		<wait>15</wait>

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

</bullet>

<bullet label="middle_boss_bullet_06">
	<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>200</alpha><red>200</red><green>25</green><blue>185</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>10</term>
		</changeSpeed>
		<wait>15</wait>

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

</bullet>

<bullet label="middle_boss_bullet_07">

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

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


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

</bullet>

<bullet label="middle_boss_bullet_08">

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

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


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

</bullet>

<create label="middle_boss_create_01">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<child>1</child>
	<objectRef label="middle_boss_object_01"><param>$3</param></objectRef>
</create>

<object label="middle_boss_object_01">
	<img type="normal">
		<file type="dds">s_mahoujin2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>35</alpha><red>155</red><green>155</green><blue>155</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>60</term>
		</changeColor>

		<wait>60</wait>

		<wait>$1</wait>
		<repeat><times>3</times>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<createRef label="middle_laser_dummy">
			<param>0</param><param>0</param>
			</createRef>
			<wait>150</wait>
		</repeat>

		<changeColor>
			<alpha>35</alpha><red>255</red><green>255</green><blue>255</blue><term>120</term>
		</changeColor>
		<wait>120</wait>

		<vanish/>

	</action>
</object>


<sound label="ex_move" type="se">
	<track><file type="ogg">move</file></track>
	<play><flag>0</flag><loop>0</loop></play>
</sound>

<create label="middle_laser_dummy">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="middle_laser_enemy_dummy"><param>$1</param><param>$2</param></enemyRef>
</create>

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

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>240</red><green>255</green><blue>106</blue>
	</img>

	<flag>6</flag>
	<action>
		<fireRef label="middle_laser_01"><param>$1</param></fireRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="middle_laser_01_s"><param>$2</param></fireRef>
			<wait>1</wait>
			<createRef label="middle_laser_create_01_s"><param>$2</param></createRef>
		</repeat>
			<wait>1</wait>
			<fireRef label="middle_laser_01_s"><param>$2</param></fireRef>

			<wait>240</wait>
		<vanish/>
	</action>
</enemy>

<fire label="middle_laser_01">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_laser_bullet_01"></bulletRef>
</fire>

<fire label="middle_laser_01_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_laser_bullet_01"></bulletRef>
</fire>


<bullet label="middle_laser_bullet_01">

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

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>6</height>
		<alpha>150</alpha><red>255</red><green>105</green><blue>102</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeImgSize>
			<width>18</width><height>42</height><term>20</term>
		</changeImgSize>

		<eval name="col">2</eval>
		<repeat><times>6</times>
			<wait>3</wait>
			<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$col</radius></collision>
			<evaladd name="col">1</evaladd>
		</repeat>
		<wait>44</wait>
		<changeSpeed>
			<speed type="absolute">5.5</speed><term>60</term>
		</changeSpeed>
	</action>

</bullet>


<create label="middle_laser_create_01_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy+1</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="middle_laser_enemy_01"></enemyRef>
</create>


<enemy label="middle_laser_enemy_01">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>1</radius></collision>
	<revengeRef label="stageEX_laser_revenge_02"></revengeRef>
	<flag>6</flag>
	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>6</height>
		<alpha>150</alpha><red>255</red><green>105</green><blue>102</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<setBreakable><num>1</num></setBreakable>

	<action>
		<changeImgSize>
			<width>22</width><height>42</height><term>15</term>
		</changeImgSize>
		<wait>60</wait>

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

	</action>
</enemy>

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

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

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

<!-- 弾幕開始 -->

	<!-- 同時発射を避けるための差分 -->
	<wait>3</wait>

<repeat><times>3</times>
	<repeat><times>2</times>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_03"><param>-92</param><param>5</param><param>8</param><param>255</param><param>1</param></fireRef>
	<repeat><times>11</times>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_03_s"><param>15</param><param>5</param><param>8</param><param>255</param><param>1</param></fireRef>
	</repeat>
	<wait>15</wait>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_03"><param>-124</param><param>5</param><param>8</param><param>255</param><param>1</param></fireRef>
	<repeat><times>15</times>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_03_s"><param>15</param><param>5</param><param>8</param><param>255</param><param>1</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

	<repeat><times>3</times>
		<eval name="dir">4-($_player_cy%9)</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>$dir</param><param>185</param><param>185</param><param>64</param><param>-1</param></fireRef>
		<repeat><times>11</times>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_01_s"><param>30</param><param>185</param><param>185</param><param>64</param><param>-1</param></fireRef>
		</repeat>
		<wait>20</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01_s"><param>-140+$dir</param><param>185</param><param>185</param><param>64</param><param>1</param></fireRef>
		<repeat><times>14</times>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_01_s"><param>-24</param><param>185</param><param>185</param><param>64</param><param>1</param></fireRef>
		</repeat>
		<wait>20</wait>
	</repeat>


	<wait>90</wait>

	<changeDirection>
		<direction type="absolute">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.2</speed><term>30</term>
	</changeSpeed>
	<wait>10</wait>
	<changeDirection>
		<direction type="absolute">-30</direction><term>60</term>
	</changeDirection>
	<wait>60</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>15</wait>
	<wait>60</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06"><param>-83</param><param>0.5</param><param>3.0</param></fireRef>
	<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.4</param><param>2.8</param></fireRef>
	<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.3</param><param>2.6</param></fireRef>
	<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.2</param><param>2.4</param></fireRef>
	<wait>2</wait>
	<repeat><times>15</times>
		<fireRef label="middle_boss_fire_06_s"><param>5</param><param>0.5</param><param>3.0</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.4</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.3</param><param>2.6</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.2</param><param>2.4</param></fireRef>
		<wait>2</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>16</times>
		<fireRef label="middle_boss_fire_06_s"><param>5</param><param>0.5</param><param>3.0</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.4</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.3</param><param>2.6</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.2</param><param>2.4</param></fireRef>
		<wait>2</wait>
	</repeat>
	<wait>30</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06"><param>-83</param><param>0.5</param><param>2.8</param></fireRef>
	<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.4</param><param>2.5</param></fireRef>
	<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.3</param><param>2.2</param></fireRef>
	<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.2</param><param>1.9</param></fireRef>
	<wait>2</wait>
	<repeat><times>15</times>
		<fireRef label="middle_boss_fire_06_s"><param>5</param><param>0.5</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.4</param><param>2.5</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.3</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.2</param><param>1.9</param></fireRef>
		<wait>2</wait>
	</repeat>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>16</times>
		<fireRef label="middle_boss_fire_06_s"><param>5</param><param>0.5</param><param>2.8</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.4</param><param>2.5</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.3</param><param>2.2</param></fireRef>
		<fireRef label="middle_boss_fire_06_s"><param>0</param><param>0.2</param><param>1.9</param></fireRef>
		<wait>2</wait>
	</repeat>

	<wait>40</wait>

	<createRef label="middle_boss_create_02"><param>0</param><param>-64</param><param>15</param></createRef>
	<createRef label="middle_boss_create_02"><param>0</param><param>64</param><param>40</param></createRef>
	<createRef label="middle_boss_create_02"><param>36</param><param>28</param><param>65</param></createRef>
	<createRef label="middle_boss_create_02"><param>36</param><param>-28</param><param>90</param></createRef>
	<createRef label="middle_boss_create_02"><param>-36</param><param>28</param><param>115</param></createRef>
	<createRef label="middle_boss_create_02"><param>-36</param><param>-28</param><param>140</param></createRef>
	<wait>5</wait>
	<soundRef label="ex_move" type="se"></soundRef>

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

	<wait>30</wait>
	</repeat>
	<wait>15</wait>

	<changeDirection>
		<direction type="absolute">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.2</speed><term>30</term>
	</changeSpeed>
	<wait>10</wait>
	<changeDirection>
		<direction type="absolute">30</direction><term>60</term>
	</changeDirection>
	<wait>60</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>15</wait>

</repeat>

<wait>60</wait>

</action>

<create label="middle_boss_create_02">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<child>1</child>
	<objectRef label="middle_boss_object_02"><param>$3</param></objectRef>
</create>

<object label="middle_boss_object_02">
	<img type="normal">
		<file type="dds">s_mahoujin2</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>145</red><green>145</green><blue>145</blue><term>60</term>
		</changeColor>

		<wait>60</wait>

		<wait>$1</wait>
		<repeat><times>3</times>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<createRef label="middle_laser_dummy2">
			<param>0</param><param>0</param>
			</createRef>
			<wait>150</wait>
		</repeat>
		<changeColor>
			<alpha>35</alpha><red>255</red><green>255</green><blue>255</blue><term>120</term>
		</changeColor>
		<wait>120</wait>

		<vanish/>

	</action>
</object>


<create label="middle_laser_dummy2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="middle_laser_enemy_dummy2"><param>$1</param><param>$2</param></enemyRef>
</create>

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

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>240</red><green>255</green><blue>106</blue>
	</img>

	<flag>6</flag>
	<action>
		<fireRef label="middle_laser_02"><param>$1</param></fireRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="middle_laser_02_s"><param>$2</param></fireRef>
			<wait>1</wait>
			<createRef label="middle_laser_create_02_s"><param>$2</param></createRef>
		</repeat>
			<wait>1</wait>
			<fireRef label="middle_laser_02_s"><param>$2</param></fireRef>

			<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
			<wait>240</wait>
		<vanish/>
	</action>
</enemy>

<fire label="middle_laser_02">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_laser_bullet_02"></bulletRef>
</fire>

<fire label="middle_laser_02_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_laser_bullet_02"></bulletRef>
</fire>


<bullet label="middle_laser_bullet_02">

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

	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>6</height>
		<alpha>150</alpha><red>255</red><green>255</green><blue>102</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeImgSize>
			<width>18</width><height>42</height><term>20</term>
		</changeImgSize>

		<eval name="col">2</eval>
		<repeat><times>6</times>
			<wait>3</wait>
			<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$col</radius></collision>
			<evaladd name="col">1</evaladd>
		</repeat>
		<wait>44</wait>
		<changeSpeed>
			<speed type="absolute">5.5</speed><term>60</term>
		</changeSpeed>
	</action>

</bullet>


<create label="middle_laser_create_02_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy+1</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="middle_laser_enemy_02"></enemyRef>
</create>


<enemy label="middle_laser_enemy_02">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>1</radius></collision>
	<revengeRef label="stageEX_laser_revenge_02"></revengeRef>
	<flag>6</flag>
	<img type="add">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>6</height>
		<alpha>150</alpha><red>255</red><green>255</green><blue>102</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<setBreakable><num>1</num></setBreakable>

	<action>
		<changeImgSize>
			<width>22</width><height>42</height><term>15</term>
		</changeImgSize>
		<wait>60</wait>

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

	</action>
</enemy>

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

<action  label="stageEX_middle_boss_02_action">

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

	<changePosition type="center">
		<x>220</x><y>132</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>
	<global name="move_wait">$__move_wait+1</global>

	<wait>2</wait>

	<eval name="i">-1</eval>
	<repeat><times>$i</times>
		<wait>1</wait>
		<repeat><times>$__move_wait-eq2</times>
			<eval name="i">0</eval>
		</repeat>
	</repeat>


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


<!-- 弾幕開始 -->
<eval name="sabun">1.6</eval>
<repeat><times>5</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_09"><param>-180</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>6</wait>

	<repeat><times>6</times>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun/2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>50</wait>
	<eval name="sabun">$sabun*(-1)-0.4</eval>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_09"><param>-180</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>6</wait>

	<repeat><times>6</times>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun/2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>50-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->


	<eval name="sabun">$sabun*(-1)+0.4</eval>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_09"><param>-180</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>6</wait>

	<repeat><times>6</times>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun/2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>50</wait>
	<eval name="sabun">$sabun*(-1)-0.4</eval>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_09"><param>-180</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
	</repeat>
	<wait>6</wait>

	<repeat><times>6</times>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun/2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_09_s"><param>20+$sabun</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_09_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>50-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<eval name="sabun">$sabun*(-1)+0.4</eval>

</repeat>

<wait>60</wait>
<global name="self_kill">1</global>
<targetRevenge label="enemy_middle_boss"></targetRevenge>
<targetRevenge label="enemy_middle_boss_w"></targetRevenge>

</action>


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

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

<bullet label="middle_boss_bullet_09">

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

	<action>

	</action>

</bullet>


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

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

<bullet label="middle_boss_bullet_10">

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

	<action>

	</action>

</bullet>




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

<action  label="stageEX_middle_boss_03_action">

	<actionRef label="mahoujin_middle"><param>190</param><param>4</param><param>5</param><param>225</param></actionRef>
	<wait>20</wait>

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

	<changePosition type="center">
		<x>280</x><y>132</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>
	<global name="move_wait">$__move_wait+1</global>

	<wait>2</wait>

	<eval name="i">-1</eval>
	<repeat><times>$i</times>
		<wait>1</wait>
		<repeat><times>$__move_wait-eq2</times>
			<eval name="i">0</eval>
		</repeat>
	</repeat>

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

<!-- 弾幕開始 -->
<repeat><times>6</times>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_1"><param>0</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_1_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_1_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_1_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
	<wait>150</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_5"><param>3</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_5_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_5_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_5_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
	<wait>60</wait>
	<changeDirection>
		<direction type="absolute">-45+$_player_cx%5</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1</speed><term>20</term>
	</changeSpeed>
	<wait>40</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->
	<wait>90-3</wait>


	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_1"><param>0</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_1_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_1_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_1_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_2_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
	<wait>150</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_5"><param>3</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_5_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_5_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_5_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_6_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
	<wait>60</wait>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1</speed><term>20</term>
	</changeSpeed>
	<wait>40</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->
	<wait>90-3</wait>
</repeat>


<wait>60</wait>
<global name="self_kill">1</global>
<targetRevenge label="enemy_middle_boss"></targetRevenge>
<targetRevenge label="enemy_middle_boss_w"></targetRevenge>

</action>

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

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

<bullet label="middle_boss_bullet_11_1">

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

	<actionRef label="water_action"><param>$1</param><param>7</param><param>$2</param></actionRef>

</bullet>

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

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

<bullet label="middle_boss_bullet_11_2">

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

	<actionRef label="water_action"><param>$1</param><param>4</param><param>$2</param></actionRef>

</bullet>

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

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

<bullet label="middle_boss_bullet_11_3">

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

	<actionRef label="water_action"><param>$1</param><param>6</param><param>$2</param></actionRef>

</bullet>

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

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

<bullet label="middle_boss_bullet_11_4">

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

	<actionRef label="water_action"><param>$1</param><param>1</param><param>$2</param></actionRef>

</bullet>

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

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

<bullet label="middle_boss_bullet_11_5">

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

	<actionRef label="water_action"><param>$1</param><param>2</param><param>$2</param></actionRef>

</bullet>

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

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

<bullet label="middle_boss_bullet_11_6">

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

	<actionRef label="water_action"><param>$1</param><param>0</param><param>$2</param></actionRef>

</bullet>

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

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

<bullet label="middle_boss_bullet_11_7">

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

	<actionRef label="water_action"><param>$1</param><param>5</param><param>$2</param></actionRef>

</bullet>

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

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

<bullet label="middle_boss_bullet_11_8">

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

	<actionRef label="water_action"><param>$1</param><param>3</param><param>$2</param></actionRef>

</bullet>





<action label="water_action">
	<wait>$1</wait>
	<changeSpeed>
		<speed type="absolute">1.1</speed><term>1</term>
	</changeSpeed>
	<changeDirection>
		<direction type="relative">$3</direction><term>240</term>
	</changeDirection>
	<eval name="dir">1-2*($3-lt0)</eval>
	<wait>($1%2)+1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_12_1_r"><param>0</param><param>9</param><param>5</param><param>$2</param></fireRef>
	<repeat><times>7</times>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_12_1_s"><param>7*$dir</param><param>9</param><param>5</param><param>$2</param></fireRef>
	</repeat>
	<wait>6</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_12_1_s"><param>7*$dir</param><param>9</param><param>5</param><param>$2</param></fireRef>
	<repeat><times>7</times>
	<wait>6</wait>
	<fireRef label="middle_boss_fire_12_1_s"><param>7*$dir</param><param>9</param><param>5</param><param>$2</param></fireRef>
	</repeat>
	<wait>1</wait>
	<changeSpeed>
		<speed type="absolute">0.8</speed><term>15</term>
	</changeSpeed>

</action>


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

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

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

<bullet label="middle_boss_bullet_12_1">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$1/2-1</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*$3</left><top>0</top><right>32*$3+32</right><bottom>32</bottom>
		<width>$1</width><height>$1</height>
		<alpha>235</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<setDrawLevel><num>19</num></setDrawLevel>	

	<action>
		<wait>$2</wait>
		<changeSpeed>
			<speed type="absolute">1.8</speed><term>90</term>
		</changeSpeed>

	</action>

</bullet>


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

<action  label="stageEX_middle_boss_w_02_action">

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

	<changePosition type="center">
		<x>420</x><y>132</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>
	<global name="move_wait">$__move_wait+1</global>

	<wait>2</wait>
	<eval name="i">-1</eval>
	<repeat><times>$i</times>
		<wait>1</wait>
		<repeat><times>$__move_wait-eq2</times>
			<eval name="i">0</eval>
		</repeat>
	</repeat>

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

<!-- 弾幕開始 -->
<eval name="sabun">2</eval>
<repeat><times>10</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_10"><param>-185</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
	</repeat>
	<wait>6</wait>

	<repeat><times>6</times>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>


	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_10_s"><param>20+$sabun/2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_10_s"><param>20+$sabun</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>50</wait>
	<eval name="sabun">$sabun*(-1)-0.8</eval>


	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_10"><param>-185</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
	</repeat>
	<wait>6</wait>

	<repeat><times>6</times>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>


	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_10_s"><param>20+$sabun/2</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>7</times>
		<fireRef label="middle_boss_fire_10_s"><param>20+$sabun</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="middle_boss_fire_10_s"><param>20</param></fireRef>
		</repeat>
		<wait>6</wait>
	</repeat>
	<wait>50</wait>
	<eval name="sabun">$sabun*(-1)+0.8</eval>

</repeat>

<wait>60</wait>

</action>

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

<action  label="stageEX_middle_boss_w_03_action">

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

	<changePosition type="center">
		<x>360</x><y>132</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>
	<global name="move_wait">$__move_wait+1</global>

	<wait>2</wait>
	<eval name="i">-1</eval>
	<repeat><times>$i</times>
		<wait>1</wait>
		<repeat><times>$__move_wait-eq2</times>
			<eval name="i">0</eval>
		</repeat>
	</repeat>


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

<!-- 弾幕開始 -->
<repeat><times>6</times>
	<wait>75</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_3"><param>7</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_3_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_3_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_3_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
	<wait>150</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_7"><param>11</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_7_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_7_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_7_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
		<changeDirection>
			<direction type="absolute">45-$_player_cx%5</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1</speed><term>20</term>
		</changeSpeed>
		<wait>40</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>20</wait>
	<wait>75</wait>

	<wait>75</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_3"><param>7</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_3_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_3_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_3_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_4_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
	<wait>150</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss_fire_11_7"><param>11</param><param>3</param><param>140</param></fireRef>
	<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_7_s"><param>18</param><param>3</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>3</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_7_s"><param>18</param><param>2</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>2</param><param>-140</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>3</times>
		<fireRef label="middle_boss_fire_11_7_s"><param>18</param><param>1</param><param>140</param></fireRef>
		<fireRef label="middle_boss_fire_11_8_s"><param>18</param><param>1</param><param>-140</param></fireRef>
	</repeat>
		<changeDirection>
			<direction type="relative">180</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1</speed><term>20</term>
		</changeSpeed>
		<wait>40</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>20</wait>
	<wait>75</wait>
</repeat>

<wait>60</wait>

</action>




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

<revenge label="stageEX_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>$__self_kill-eq0</times>
		<wait>1</wait>
		<changeBulletToItem/>
		<!-- 自爆のためscoreが入らないので、ここでスコアを加算する -->
		<addScore>
			<score>400000</score>	
		</addScore>
	</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>$__self_kill-eq0</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>$__self_kill-eq0</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>20/2</param><param>$counter_e</param><param>1360</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$__self_kill-eq1</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<global name="damage">0</global>
	<createRef label="enemy_create_middle_boss2"></createRef>

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

<revenge label="stageEX_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>$__self_kill-eq0</times>
		<wait>1</wait>
		<changeBulletToItem/>
		<!-- 自爆のためscoreが入らないので、ここでスコアを加算する -->
		<addScore>
			<score>450000</score>	
		</addScore>
	</repeat>
	<repeat><times>$__self_kill-eq1</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>

	<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>$__self_kill-eq0</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>$__self_kill-eq0</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>24/2</param><param>$counter_e</param><param>1300</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$__self_kill-eq1</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
	</repeat>

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

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

<revenge label="stageEX_middle_boss_03_revenge">

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

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

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$__self_kill-eq0</times>
		<wait>1</wait>
		<changeBulletToItem/>
		<!-- 自爆のためscoreが入らないので、ここでスコアを加算する -->
		<addScore>
			<score>550000</score>	
		</addScore>
	</repeat>
	<repeat><times>$__self_kill-eq1</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_stageEXmiddle"></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>$__self_kill-eq0</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ばらまき -->
	<createRef label="mbreak_dummy"></createRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>
	<repeat><times>$__self_kill-eq0</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>2</param><param>0</param></actionRef>
			<createRef label="item_create_01_etb"><param>-20000</param><param>450000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
<!--			<global name="tension">$__tension+1</global> -->
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>28/2</param><param>$counter_e</param><param>1300</param><param>24</param><param>$localcounter</param></actionRef>
		<addItem><flag>1</flag><num>$_maxcrystal</num></addItem>
	</repeat>
	<repeat><times>$__self_kill-eq1</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>
	<!-- *** 逃げるボスの作成 *** -->
	<wait>1</wait>
	<global name="damage">0</global>
	<repeat><times>$__break_middle-lt2</times>
		<createRef label="enemy_create_middle_boss_escape"></createRef>
	</repeat>
	<!-- *** 終了 *** -->
	<vanish></vanish>	
	
</revenge>


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

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

	<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>$__self_kill-eq0</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>$__self_kill-eq0</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>20/2</param><param>$counter_e</param><param>1360</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$__self_kill-eq1</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
	</repeat>

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

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

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

	<wait>1</wait>
	<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>$__self_kill-eq0</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>$__self_kill-eq0</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>24/2</param><param>$counter_e</param><param>1300</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$__self_kill-eq1</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
	</repeat>

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

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

<revenge label="stageEX_middle_boss_w_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_2"></actionRef>

	<wait>1</wait>

	<wait>1</wait>

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_05"><param>0</param><param>0</param></createRef>
	<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>$__self_kill-eq0</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>

	<!-- 01ばらまき -->
	<createRef label="mbreak_dummy"></createRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>
	<repeat><times>$__self_kill-eq0</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>28/2</param><param>$counter_e</param><param>1300</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$__self_kill-eq1</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>
	<!-- *** 逃げるボスの作成 *** -->
	<wait>1</wait>
	<repeat><times>1-($__break_middle-lt2)</times>
		<createRef label="enemy_create_middle_boss_escape_w"></createRef>
	</repeat>
	<!-- *** 終了 *** -->
	<vanish></vanish>	
	
</revenge>




<!-- ********************************************************************* -->
<!-- *** stageEX中ボス（２回目） 　                                    *** -->

<action label="stageEX_middle_boss_second">

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

	<repeat><times>($__break_middle-lt2)</times>
		<createRef label="enemy_create_middle_boss_second"><param>390</param><param>-12</param></createRef>
	</repeat>
	<repeat><times>1-($__break_middle-lt2)</times>
		<createRef label="enemy_create_middle_boss_second_w"><param>250</param><param>-12</param></createRef>
	</repeat>

		<!-- *** ボスの名称表示オブジェクト作成 *** -->
		<createRef label="boss_name_stageEXmiddle2"></createRef>

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


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

</action>

<!-- ********************************************************************* -->
<!-- *** 中ボス(２回目)第 1 形態のボスオブジェクト作成　黒                         *** -->
<!-- ***                                                               *** -->

<create label="enemy_create_middle_boss_second">

	<speed>4</speed>
	<direction type="absolute">-155</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>1700</vital>
	<inv>40</inv>
	<score>850000</score>
	<prate>$__middle_boss_prate3</prate>
	<enemyRef label="enemy_middle_boss_second"></enemyRef>

</create>

<!-- ********************************************************************* -->
<!-- *** 中ボス(２回目)第 1 形態のボスオブジェクト作成 白                        *** -->
<!-- ***                                                               *** -->

<create label="enemy_create_middle_boss_second_w">

	<speed>4</speed>
	<direction type="absolute">155</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>1700</vital>
	<inv>40</inv>
	<score>1000000</score>
	<prate>$__middle_boss_prate3</prate>
	<enemyRef label="enemy_middle_boss_second_w"></enemyRef>

</create>

<!-- ********************************************************************* -->
<!-- *** 中ボス（２回目）オブジェクト                                            *** -->
<enemy label="enemy_middle_boss_second">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>

	<presentRef label="enemy_present_ex_middle2"></presentRef>

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

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

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

	<actionRef  label="stageEX_middle_boss_second_01_action"></actionRef>
</enemy>
<!-- ********************************************************************* -->
<!-- *** 中ボス（２回目）オブジェクト 白                                           *** -->
<enemy label="enemy_middle_boss_second_w">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>

	<presentRef label="enemy_present_ex_middle2_w"></presentRef>

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

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

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

	<actionRef  label="stageEX_middle_boss_second_01_action_w"></actionRef>
</enemy>



<!-- ********************************************************************* -->
<!-- *** 中ボス（２回目）のアクション　第１形態　　黒                                *** -->

<action  label="stageEX_middle_boss_second_01_action">

<wait>20</wait>
<!-- 魔法陣呼び出し -->
<actionRef label="mahoujin_middle"><param>190</param><param>255</param><param>10</param><param>30</param></actionRef>

	<wait>10</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>10</wait>
	<global name="ttc_start_check">$_ttc_frame</global>
	<global name="miss_start">$_misscount</global>

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

<!-- 弾幕開始 -->
<repeat><times>6</times>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478</param><param>1</param>
	</createRef>

	<!-- <wait>37</wait> -->

	<eval name="sp">1</eval>
	<eval name="dir">($_player_cx-lt320)*2</eval>
	<wait>1</wait>
	<actionRef label="enemy_laser_action"></actionRef>
	<fireRef label="middle_boss2_fire_laser"><param>-60</param><param>$sp</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="middle_boss2_fire_laser_s"><param>20</param><param>$sp</param></fireRef>
	</repeat>
	<wait>3</wait>
	<evaladd name="sp">0.15</evaladd>
	<repeat><times>11</times>
		<fireRef label="middle_boss2_fire_laser_s"><param>-119-$dir</param><param>$sp</param></fireRef>
		<repeat><times>6</times>
			<fireRef label="middle_boss2_fire_laser_s"><param>20</param><param>$sp</param></fireRef>
		</repeat>
		<wait>3</wait>
		<evaladd name="sp">0.15</evaladd>
	</repeat>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+119</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+158</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-119</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-158</param><param>1</param>
	</createRef>

	<wait>37</wait>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+119*2</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+158*2</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-119*2</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-158*2</param><param>1</param>
	</createRef>

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

	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478</param><param>1</param>
	</createRef>

	<wait>37</wait>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+117</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+159</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-117</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-160</param><param>1</param>
	</createRef>

	<wait>37</wait>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+117*2</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+159*2</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-117*2</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-160*2</param><param>1</param>
	</createRef>

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

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

	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478</param><param>1</param>
	</createRef>

	<wait>23</wait>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+59</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+79</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-59</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-79</param><param>1</param>
	</createRef>

	<wait>23</wait>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+59*2</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+79*2</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-59*2</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-79*2</param><param>1</param>
	</createRef>

	<wait>23</wait>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+59*3</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+79*3</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-59*3</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-79*3</param><param>1</param>
	</createRef>

	<wait>23</wait>
	<createRef label="middle_boss2_create_01">
		<param>90</param><param>142+59*4</param><param>2</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>180</param><param>498</param><param>2+79*4</param><param>1</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>-90</param><param>498-59*4</param><param>478</param><param>0</param>
	</createRef>
	<wait>1</wait>
	<createRef label="middle_boss2_create_01">
		<param>0</param><param>142</param><param>478-79*4</param><param>1</param>
	</createRef>

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

</repeat>

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

</action>


<create label="middle_boss2_create_01">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<cx>$2</cx><cy>$3</cy>
	<child>1</child>
	<objectRef label="middle_boss2_object_01"><param>$4</param></objectRef>
</create>

<object label="middle_boss2_object_01">
	<img type="normal">
		<file type="dds">s_mahoujin2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>35</alpha><red>155</red><green>155</green><blue>155</blue>
	</img>

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

	<action>
		<changeColor>
			<alpha>255</alpha><red>155</red><green>155</green><blue>155</blue><term>40</term>
		</changeColor>
		<wait>40</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire2_1"><param>20.5+(($_player_cx+$_player_cy+$_self_cx+$_self_cy)%5)</param><param>8</param></fireRef>
		<repeat><times>2</times>
			<fireRef label="middle_boss_fire2_1_s"><param>22.5</param><param>8</param></fireRef>
		</repeat>
		<fireRef label="middle_boss_fire2_1_s"><param>22.5</param><param>12</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="middle_boss_fire2_1_s"><param>22.5</param><param>8</param></fireRef>
		</repeat>

		<changeColor>
			<alpha>25</alpha><red>255</red><green>255</green><blue>255</blue><term>40</term>
		</changeColor>
		<wait>40</wait>
		<vanish/>

	</action>
</object>

<fire label="middle_boss_fire2_1">
	<speed>0.8</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<child>1</child>
	<bulletRef label="middle_boss2_bullet_1"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire2_1_aim">
	<speed>0.8</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<child>1</child>
	<bulletRef label="middle_boss2_bullet_1"><param>$2</param></bulletRef>
</fire>

<fire label="middle_boss_fire2_1_s">
	<speed>0.8</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<child>1</child>
	<bulletRef label="middle_boss2_bullet_1"><param>$2</param></bulletRef>
</fire>

<bullet label="middle_boss2_bullet_1">

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

</bullet>


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

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

<bullet label="middle_boss2_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">laser32xb</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>$1</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>

<!-- ********************************************************************* -->
<!-- *** 中ボス（２回目）のアクション　第１形態　　白                                *** -->

<action  label="stageEX_middle_boss_second_01_action_w">

<wait>20</wait>
<!-- 魔法陣呼び出し -->
<actionRef label="mahoujin_middle"><param>190</param><param>255</param><param>10</param><param>30</param></actionRef>

	<wait>10</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>10</wait>
	<global name="ttc_start_check">$_ttc_frame</global>
	<global name="miss_start">$_misscount</global>

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

<!-- 弾幕開始 -->

<eval name="laser_x">320</eval>
<eval name="laser_y">250</eval>

<repeat><times>6</times>
	<eval name="sp">0.9</eval>
	<eval name="dir">($_player_cx-lt320)*4</eval>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss2_fire_laser"><param>-60</param><param>$sp</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="middle_boss2_fire_laser_s"><param>20</param><param>$sp</param></fireRef>
	</repeat>
	<wait>3</wait>
	<evaladd name="sp">0.12</evaladd>
	<repeat><times>11</times>
		<fireRef label="middle_boss2_fire_laser_s"><param>-118-$dir</param><param>$sp</param></fireRef>
		<repeat><times>6</times>
			<fireRef label="middle_boss2_fire_laser_s"><param>20</param><param>$sp</param></fireRef>
		</repeat>
		<wait>3</wait>
		<evaladd name="sp">0.12</evaladd>
	</repeat>
	<wait>3</wait>

	<!-- 横 -->
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y+60</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y+60</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y+180</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y+180</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y-180</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y-180</param><param>2</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y+60</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y+60</param><param>2</param>
	</createRef>
	<wait>10+30</wait>
	<eval name="sp">0.9</eval>
	<eval name="dir">($_player_cx-lt320)*4</eval>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="middle_boss2_fire_laser"><param>-60</param><param>$sp</param></fireRef>
	<repeat><times>6</times>
		<fireRef label="middle_boss2_fire_laser_s"><param>20</param><param>$sp</param></fireRef>
	</repeat>
	<wait>3</wait>
	<evaladd name="sp">0.12</evaladd>
	<repeat><times>11</times>
		<fireRef label="middle_boss2_fire_laser_s"><param>-118-$dir</param><param>$sp</param></fireRef>
		<repeat><times>6</times>
			<fireRef label="middle_boss2_fire_laser_s"><param>20</param><param>$sp</param></fireRef>
		</repeat>
		<wait>3</wait>
		<evaladd name="sp">0.12</evaladd>
	</repeat>
	<wait>3</wait>
	<!-- 縦 -->

	<changeDirection>
		<direction type="absolute">-70+140*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>20</term>
	</changeSpeed>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x</param><param>0</param><param>1</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x+120</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x+120</param><param>480</param><param>1</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x-180</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x-180</param><param>0</param><param>1</param>
	</createRef>
	<wait>10</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x+60</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x+60</param><param>480</param><param>1</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x+120</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x+120</param><param>0</param><param>1</param>
	</createRef>
	<wait>10-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x-120</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x-120</param><param>480</param><param>1</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x-60</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x-60</param><param>0</param><param>1</param>
	</createRef>
	<wait>10</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x+180</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x+180</param><param>480</param><param>1</param>
	</createRef>
	<wait>50</wait>

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

	<!-- 横縦 -->
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x+120</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x+120</param><param>0</param><param>1</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x-60</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x-60</param><param>0</param><param>1</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y+180</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y+180</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x+60</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x+60</param><param>480</param><param>1</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x+180</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x+180</param><param>480</param><param>1</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y-60</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y-120</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x-180</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x-180</param><param>0</param><param>1</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y+120</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x</param><param>480</param><param>1</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y+180</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y+180</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>0</param><param>$laser_x+120</param><param>480</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>0</param><param>$laser_x+120</param><param>480</param><param>1</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>90</param><param>140</param><param>$laser_y-180</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>90</param><param>140</param><param>$laser_y-180</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>-90</param><param>500</param><param>$laser_y+60</param><param>2</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>-90</param><param>500</param><param>$laser_y+60</param><param>2</param>
	</createRef>
	<wait>6</wait>
	<createRef label="middle_boss2_laser_create_01">
		<param>180</param><param>$laser_x</param><param>0</param><param>1</param>
	</createRef>
	<createRef label="middle_boss2_laser_create_01_dummy">
		<param>180</param><param>$laser_x</param><param>0</param><param>1</param>
	</createRef>
	<wait>120-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_second_w"></targetRevenge>

</action>

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

<enemy label="middle_boss2_laser_create_01">
	<inv>85</inv>
	<revengeRef label="stageEX_boss_laser_revenge_01"></revengeRef>
	<collision type="sync"><left>-4</left><top>-30</top><right>4</right><bottom>30</bottom></collision>	
	<buzz type="sync"><left>-4</left><top>-30</top><right>4</right><bottom>30</bottom></buzz>	
	<flag>3</flag>
	<img type="add">
		<file type="dds">shot_la</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>60</height>
		<alpha>0</alpha><red>64</red><green>250</green><blue>255</blue>
	</img>
	<imgDirection type="sync">90</imgDirection>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<createRef label="middle_boss2_create_02"><param>$_self_cx+30*($1%2)</param><param>$_self_cy+30*(1-$1%2)</param></createRef>
		<createRef label="middle_boss2_create_02"><param>$_self_cx-30*($1%2)</param><param>$_self_cy-30*(1-$1%2)</param></createRef>
		
		<wait>1</wait>
		<wait>1</wait>
		<changeColor>
			<alpha>225</alpha><red>64</red><green>250</green><blue>255</blue><term>75</term>
		</changeColor>
		<wait>1</wait>
		<actionRef label="enemy_laser_action"></actionRef>
		<wait>1</wait>
		<wait>28</wait>

		<changeImgSize>
			<width>10</width><height>60</height><term>54</term>
		</changeImgSize>
		<wait>53</wait>
		<changeSpeed>
			<speed type="absolute">0.8</speed><term>1</term>
		</changeSpeed>

		<repeat><times>-1</times>
			<wait>10</wait>
			<incBuzzCount></incBuzzCount>
		</repeat>
		<wait>10</wait>
		<vanish/>

	</action>	
</enemy>

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

<enemy label="middle_boss2_laser_create_01_dummy">
	<inv>85</inv>
	<revengeRef label="stageEX_boss_laser_revenge_01"></revengeRef>
	<collision type="sync"><left>-1</left><top>-28</top><right>1</right><bottom>28</bottom></collision>	
	<flag>3</flag>
	<img type="add">
		<file type="dds">shot_la</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>60</height>
		<alpha>0</alpha><red>64</red><green>250</green><blue>255</blue>
	</img>
	<imgDirection type="sync">90</imgDirection>
	<setBreakable><num>1</num></setBreakable>
	<action>
		
		<wait>1</wait>
		<wait>1</wait>
		<wait>1</wait>
		<wait>1</wait>
		<wait>28</wait>

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

		<wait>10</wait>
		<vanish/>

	</action>	
</enemy>

<create label="middle_boss2_create_02">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<child>1</child>
	<objectRef label="middle_boss2_object_02"></objectRef>
</create>

<object label="middle_boss2_object_02">
	<img type="normal">
		<file type="dds">s_mahoujin5</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>24</width><height>24</height>
		<alpha>35</alpha><red>155</red><green>155</green><blue>155</blue>
	</img>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>

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

	<action>
		<changeColor>
			<alpha>255</alpha><red>155</red><green>155</green><blue>155</blue><term>40</term>
		</changeColor>
		<wait>40</wait>
	</action>
</object>

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

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

<bullet label="middle_boss2_fire_laser_bullet_w1">
	<collision type="sync"><left>-2</left><top>-5</top><right>2</right><bottom>5</bottom></collision>
	
	<img type="add">
		<file type="dds">laser32xb</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>$1</speed><term>45</term>
		</changeSpeed>
	</action>
</bullet>


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

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

<bullet label="middle_boss2_fire_laser_bullet_w2">
	<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>$1</speed><term>45</term>
		</changeSpeed>
	</action>
</bullet>


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

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

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

	<action>
		<wait>1</wait>
		<changeImgSize>
			<width>7</width><height>13</height><term>3</term>
		</changeImgSize>
		<wait>2</wait>
		<changeSpeed>
			<speed>$1</speed><term>45</term>
		</changeSpeed>
	</action>
</bullet>

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

<revenge label="stageEX_middle_boss_second_01_revenge">

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<actionRef label="bg_fadein_action"></actionRef>

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

	<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_stageEXmiddle2"></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-gt120)</eval>
	<repeat><times>$etb_num-eq0</times>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<wait>1</wait>

	<!-- 01ばらまき -->
	<createRef label="mbreak_dummy"></createRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>
	<repeat><times>$_revenge_state-eq1</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>2</param><param>5</param></actionRef>
			<createRef label="item_create_01_etb"><param>-25000</param><param>700000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
<!--			<global name="tension">$__tension+1</global> -->
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>58/2</param><param>$counter_e</param><param>1440</param><param>24</param><param>$localcounter</param></actionRef>
		<addItem><flag>1</flag><num>$_maxcrystal</num></addItem>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

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

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


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

<revenge label="stageEX_middle_boss_second_01_revenge_w">

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<actionRef label="bg_fadein_action"></actionRef>

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

	<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_stageEXmiddle2"></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-gt120)</eval>
	<repeat><times>$etb_num-eq0</times>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<wait>1</wait>

	<!-- 01ばらまき -->
	<createRef label="mbreak_dummy"></createRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>
	<repeat><times>$_revenge_state-eq1</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>2</param><param>5</param></actionRef>
			<createRef label="item_create_01_etb"><param>-25000</param><param>800000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
<!--			<global name="tension">$__tension+1</global> -->
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>64/2</param><param>$counter_e</param><param>1800</param><param>24</param><param>$localcounter</param></actionRef>
		<addItem><flag>1</flag><num>$_maxcrystal</num></addItem>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

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

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


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

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

	<sound label="bgm" type="bgm">
		<track>
			<file type="ogg">23_extraboss_loop</file>
		</track>
		<play>
			<flag>1</flag><loop>44100*2*2*4</loop>
		</play>
	</sound>
	<actionRef label="stageEX_2_bgm_title_action"></actionRef>

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

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

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

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

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


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


<!-- *** 第 2 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stageEX_boss_02_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1500+(150*($_twinstype-gt1))</vital>
	<inv>40</inv>
	<score>800000</score>
	<prate>$__boss_prate2</prate>
	<enemyRef label="stageEX_boss_enemy"></enemyRef>
</create>

<!-- *** 第 3 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stageEX_boss_03_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1700+(150*($_twinstype-gt1))</vital>
	<inv>40</inv>
	<score>1000000</score>
	<prate>$__boss_prate2</prate>
	<enemyRef label="stageEX_boss_enemy"></enemyRef>
</create>

<!-- *** 第 4 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stageEX_boss_04_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1020+(100*($_twinstype-gt1))</vital>
	<inv>40</inv>
	<score>1200000</score>
	<prate>$__boss_prate4</prate>
	<enemyRef label="stageEX_boss_enemy"></enemyRef>
</create>

<!-- *** 第 5 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stageEX_boss_05_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1650+(160*($_twinstype-gt1))</vital>
	<inv>40</inv>
	<score>1400000</score>
	<prate>$__boss_prate3</prate>
	<enemyRef label="stageEX_boss_enemy"></enemyRef>
</create>

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

	<vital>1500+($_twinstype-eq2)*400+(150*($_twinstype-gt1))</vital>
	<inv>40</inv>
	<score>1700000</score>
	<prate>$__boss_prate</prate>
	<enemyRef label="stageEX_boss_enemy2"></enemyRef>
</create>

<!-- *** 第 7 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stageEX_boss_07_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
<!-- debug -->
<!--	<cx>$__boss_cx</cx><cy>$__boss_cy</cy> -->
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1650+(180*($_twinstype-gt1))</vital>
	<inv>40</inv>
	<score>2000000</score>
	<prate>$__boss_prate3</prate>
	<enemyRef label="stageEX_boss_enemy2"></enemyRef>
</create>

<!-- *** 第 8 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stageEX_boss_08_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1850+(180*($_twinstype-eq2))</vital>
	<inv>40</inv>
	<score>2500000</score>
	<prate>$__boss_prate3</prate>
	<enemyRef label="stageEX_boss_enemy2"></enemyRef>
</create>

<!-- *** 第 9 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stageEX_boss_09_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<inv>40</inv>
	<score>4000000</score>
	<vital>3650+($_twinstype-eq2)*700</vital>
	<flag>16</flag>
	<prate>$__boss_prate5</prate>
	<enemyRef label="stageEX_boss_enemy2"></enemyRef>
</create>

<create label="stageEX_boss_09_create_dummy">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<inv>0</inv>
	<child>1</child>
	<vital>9999999</vital>
	<flag>32</flag>
	<enemyRef label="stageEX_boss_enemy3_dummy"></enemyRef>
</create>

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

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

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


	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stageEX_boss_01_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_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="stageEX_boss_02_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_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="stageEX_boss_03_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_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="stageEX_boss_04_revenge"></revengeRef>
		<global name="timer">7</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_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="stageEX_boss_05_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_boss_05_action"></actionRef>
	</repeat>
</enemy>

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

	<!-- *** VITAL ゲージはボスの子オブジェクトなのでここで作成 *** -->
	<!-- *** 画面下のボス表示を作成 *** -->
	<repeat><times>$__boss_state-lt9</times>
		<createRef label="boss_vital_create"></createRef>
		<createRef label="boss_underbar_create"></createRef>
	</repeat>
	<repeat><times>$__boss_state-eq9</times>
		<createRef label="boss_vital_create3"></createRef>
		<createRef label="boss_underbar_create2"></createRef>
	</repeat>

	<!-- *** 第 N 形態ごとのアクション *** -->
	<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="stageEX_boss_06_revenge"></revengeRef>
		<global name="timer">15</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_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="stageEX_boss_07_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_boss_07_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq8</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stageEX_boss_08_revenge"></revengeRef>
		<global name="timer">16</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stageEX_boss_08_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq9</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<actionRef  label="create_timer4"></actionRef>
		<revengeRef label="stageEX_boss_09_revenge"></revengeRef>
		<actionRef  label="stageEX_boss_09_action"></actionRef>
	</repeat>
</enemy>


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

	<wait>50</wait>

<!-- 3周で自爆 -->
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<repeat><times>3</times>
	<changeDirection>
		<direction type="absolute">-60+120*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>10</term>
	</changeSpeed>
	<wait>30</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>30</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_1"><param>-30</param><param>30</param><param>80</param><param>0</param></fireRef>
	<fireRef label="EX_boss_fire_1_1_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
	<fireRef label="EX_boss_fire_1_1_s"><param>90</param><param>30</param><param>80</param><param>0</param></fireRef>
	<fireRef label="EX_boss_fire_1_1_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
	<repeat><times>4</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>5</times>
		<wait>6</wait>
		<fireRef label="EX_boss_fire_1_1_s"><param>98</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_1_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		<fireRef label="EX_boss_fire_1_1_s"><param>90</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_1_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		</repeat>
	</repeat>

	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>5</times>
		<wait>6</wait>
		<fireRef label="EX_boss_fire_1_3_s"><param>98</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		</repeat>
	</repeat>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.5</speed><term>10</term>
	</changeSpeed>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>5</times>
		<wait>6</wait>
		<fireRef label="EX_boss_fire_1_3_s"><param>98</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		</repeat>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>5</times>
		<wait>6</wait>
		<fireRef label="EX_boss_fire_1_3_s"><param>82</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_3_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_1a"><param>-30</param><param>30</param><param>80</param><param>0</param></fireRef>
	<fireRef label="EX_boss_fire_1_1a_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
	<fireRef label="EX_boss_fire_1_1a_s"><param>90</param><param>30</param><param>80</param><param>0</param></fireRef>
	<fireRef label="EX_boss_fire_1_1a_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>

	<repeat><times>4</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>5</times>
		<wait>6</wait>
		<fireRef label="EX_boss_fire_1_1a_s"><param>82</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_1a_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
		<fireRef label="EX_boss_fire_1_1a_s"><param>90</param><param>30</param><param>80</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_1_1a_s"><param>90</param><param>30</param><param>80</param><param>1</param></fireRef>
	</repeat>
	</repeat>

	<wait>120</wait>
	<eval name="boss_move1">$_player_cx%2</eval>
	<changeDirection>
		<direction type="absolute">-70+140*$boss_move1</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.5</speed><term>10</term>
	</changeSpeed>
	<wait>45</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>60-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<changeDirection>
		<direction type="absolute">90-180*$boss_move1</direction><term>1</term>
	</changeDirection>

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

	<repeat><times>2</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>2</times>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.4</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.8</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.0</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.5</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.5</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.1</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.5</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.9</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.1</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.3</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.7</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.1</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.2+($_player_cy%3)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.0+($_player_cx%3)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.5+($_player_cx%4)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.9+($_player_cx%4)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>0.9+($_player_cx%3)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.5+($_player_cy%4)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.4+($_player_cy%5)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.8+($_player_cx%3)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.2+($_player_cx%5)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.4</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.1</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.5</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.0</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.6</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.1</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.1</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.5</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.3</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.0</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.4+($_player_cy%3)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.5+($_player_cx%4)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.0+($_player_cx%3)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.9+($_player_cx%4)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.5+($_player_cy%4)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>0.9+($_player_cx%3)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.4+($_player_cy%3)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.0+($_player_cx%5)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.8+($_player_cx%5)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.3</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.5</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.0</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.5</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.0+($_player_cx%3)/10</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.3+($_player_cy%3)/10</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.5</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.5+($_player_cx%4)/10</param></fireRef>
	<wait>1</wait>

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

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.4</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.8</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.1</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.1</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>3.1</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>2.5</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.9</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.6</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.3</param></fireRef>
	<fireRef label="EX_boss_fire_1_4"><param>0</param><param>1.8</param></fireRef>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_1_4"><param>180</param><param>1.0</param></fireRef>
	<wait>1</wait>

	<wait>100-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<changeDirection>
		<direction type="absolute">-109+218*$boss_move1</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">3.5</speed><term>10</term>
	</changeSpeed>
	<wait>46</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>30</wait>

	<eval name="dir1">60+$_player_cx%5</eval>
	<eval name="dir2">119+$_player_cy%5</eval>
	<eval name="dir3">239+$_self_cx%5</eval>
	<eval name="dir4">298+$_self_cy%5</eval>

	<wait>30</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_5"><param>$dir1</param><param>1</param></fireRef>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_5"><param>$dir2</param><param>3</param></fireRef>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_5"><param>$dir3</param><param>5</param></fireRef>
	<wait>10</wait>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_7"><param>$dir1</param></fireRef>
	<wait>10</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_5"><param>$dir4</param><param>7</param></fireRef>

	<wait>10</wait>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_7"><param>$dir2</param></fireRef>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_7"><param>$dir3</param></fireRef>
	<wait>20</wait>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_1_7"><param>$dir4</param></fireRef>


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

</repeat>

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

</action>


<fire label="EX_boss_fire_1_1">
	<speed>2.0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_1"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="EX_boss_fire_1_1_s">
	<speed>2.0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_1"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_1_1">

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

	<action>
		<wait>$1</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="EX_boss_fire_1_2"><param>$1</param><param>1.6</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1</param><param>1.6</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1+1</param><param>1.9</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1+1</param><param>1.9</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1+2</param><param>2.2</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1+2</param><param>2.2</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1+3</param><param>2.5</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1+3</param><param>2.5</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1+4</param><param>2.8</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1+4</param><param>2.8</param><param>$3</param></fireRef>
		<changeDirection>
			<direction type="relative">240</direction><term>60</term>
		</changeDirection>

	</action>

</bullet>

<fire label="EX_boss_fire_1_1a">
	<speed>2.0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_1a"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="EX_boss_fire_1_1a_s">
	<speed>2.0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_1a"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_1_1a">

	<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>25+230*$3</red><green>255</green><blue>5</blue>
	</img>

	<action>
		<wait>$1</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="EX_boss_fire_1_2"><param>$1</param><param>1.6</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1</param><param>1.6</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1-1</param><param>1.9</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1-1</param><param>1.9</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1-2</param><param>2.2</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1-2</param><param>2.2</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1-3</param><param>2.5</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1-3</param><param>2.5</param><param>$3</param></fireRef>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_1_2"><param>$1-4</param><param>2.8</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>-1*$1-4</param><param>2.8</param><param>$3</param></fireRef>
		<changeDirection>
			<direction type="relative">240</direction><term>60</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2.4</speed><term>60</term>
		</changeSpeed>

	</action>

</bullet>

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

<bullet label="EX_boss_bullet_1_2">

	<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>25+180*$2</red><green>205</green><blue>5</blue>
	</img>

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

</bullet>

<fire label="EX_boss_fire_1_3">
	<speed>2.0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_3"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="EX_boss_fire_1_3_s">
	<speed>2.0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_3"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_1_3">

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

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

		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="EX_boss_fire_1_2"><param>$1</param><param>2.8</param><param>$3</param></fireRef>
		<fireRef label="EX_boss_fire_1_2"><param>$1+180</param><param>2.8</param><param>$3</param></fireRef>
		<wait>1</wait>

		<wait>4</wait>
		<changeDirection>
			<direction type="relative">240</direction><term>60</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2.4</speed><term>60</term>
		</changeSpeed>

	</action>

</bullet>


<fire label="EX_boss_fire_1_4">
	<speed>$2</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="EX_boss_bullet_1_4"></bulletRef>
</fire>

<bullet label="EX_boss_bullet_1_4">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>18</width><height>18</height>
		<alpha>255</alpha><red>1</red><green>2</green><blue>255</blue>
	</img>
<!--
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="normal">
		<file type="dds">sword2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
-->
	<imgDirection type="sync">180</imgDirection>

	<action>
	</action>

</bullet>

<fire label="EX_boss_fire_1_5">
	<speed>4.0</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_5"><param>$2</param></bulletRef>
</fire>

<fire label="EX_boss_fire_1_5_s">
	<speed>4.0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_5"><param>$2</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_1_5">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>14</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*$1</left><top>0</top><right>32*$1+32</right><bottom>32</bottom>
		<width>32</width><height>32</height>
		<alpha>235</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">2.8</speed><term>8</term>
		</changeSpeed>
		<wait>35</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>8</term>
		</changeSpeed>
		<wait>40</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="EX_boss_fire_1_6"><param>2-($_self_cx%4)</param><param>$1</param><param>4</param><param>2.6</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>4</param><param>2.6</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>3</param><param>2.6</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>2</param><param>2.6</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>1</param><param>2.6</param></fireRef>
		</repeat>

		<changeColor>
			<alpha>25</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
		</changeColor>
		<wait>15</wait>
		<fireRef label="EX_boss_fire_1_6_ab"><param>2-($_player_cx%4)</param><param>$1</param><param>4</param><param>2.2</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>4</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>3</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>2</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>1</param><param>2.2</param></fireRef>
		</repeat>
		<wait>15</wait>
		<fireRef label="EX_boss_fire_1_6_s"><param>2-($_player_cx%4)</param><param>$1</param><param>4</param><param>2.2</param></fireRef>
		<repeat><times>8</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>4</param><param>2.2</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>3</param><param>1.6</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>2</param><param>1.6</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>9</times>
			<fireRef label="EX_boss_fire_1_6_s"><param>10</param><param>$1</param><param>1</param><param>1.6</param></fireRef>
		</repeat>
		<wait>24</wait>
		<vanish/>

	</action>
</bullet>

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

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

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

<bullet label="EX_boss_bullet_1_6">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*$1</left><top>0</top><right>32*$1+32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>235</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

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

<fire label="EX_boss_fire_1_7">
	<speed>4.0</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_1_7"><param>$2</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_1_7">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>10</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>100</red><green>200</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

</bullet>

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

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

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

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

<!-- 弾幕開始 -->
<repeat><times>4</times>
	<eval name="BOSSDIR">$_self_cx-gt$_player_cx</eval>
	<repeat><times>$BOSSDIR</times>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<!--剣撃１、自機＜320なら左下狙い-->
		<eval name="MAGICNUM1">((($_self_cx-$_player_cx)%20)/8)</eval>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>144</param>	      <!--角度-->
		<param>4.0</param>	      <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>1</param>		<!--弾幕の向き-->
		<param>9</param>	       <!--小弾の間隔-->
		</actionRef>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>324</param>	      <!--角度-->
		<param>4.0</param>	      <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>1</param>		<!--弾幕の向き-->
		<param>9</param>	       <!--小弾の間隔-->
		</actionRef>

		<!--移動１、左上移動-->
		<eval name="rand1">$_player_cx%21</eval>
		<changeDirection>
		<direction type="absolute">(60+$rand1)</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>4.4</speed><term>30</term>
		</changeSpeed>
		<wait>30</wait>
		<changeSpeed>
			<speed>0</speed><term>30</term>
		</changeSpeed>

		<!--すぐに次の剣を放つ-->
		<wait>45</wait>
		<!--剣撃１、右下狙い(狙いは剣撃１Ａの余波が膨れる前くらい)-->
		<eval name="MAGICNUM1">((($_self_cx-$_player_cx)%20)/8)</eval>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>216</param>	      <!--狙い弾-->
		<param>2.0</param>	      <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>1</param>		<!--弾幕の向き-->
		<param>9</param>	       <!--小弾の間隔-->
		</actionRef>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>36</param>	       <!--狙い弾-->
		<param>2.0</param>	      <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>1</param>		<!--弾幕の向き-->
		<param>9</param>	       <!--小弾の間隔-->
		</actionRef>

		<!--左側の弾が届くくらいで狙い弾-->
		<wait>240</wait>
		<eval name="MAGICNUM1">((($_self_cx-$_player_cx)%20)/8)</eval>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<actionRef label="stageEX_bossTmp02_subAction02">
		<param>0</param>		<!--狙い弾-->
		<param>2.0</param>	      <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>-1</param>	       <!--弾幕の向き-->
		<param>10</param>	       <!--小弾の間隔-->
		</actionRef>
	</repeat>

	<repeat><times>(1-$BOSSDIR)</times>
		<!--剣撃１、自機＜真夜なら右下狙い-->
		<eval name="MAGICNUM1">-((($_self_cx-$_player_cx)%20)/8)</eval>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>216</param>	      <!--角度-->
		<param>-2.0</param>	     <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>-1</param>	       <!--弾幕の向き-->
		<param>8</param>	       <!--小弾の間隔-->
		</actionRef>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>36</param>	       <!--角度-->
		<param>-2.0</param>	     <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>-1</param>	       <!--弾幕の向き-->
		<param>9</param>	       <!--小弾の間隔-->
		</actionRef>
		<!--移動１、右上移動-->
		<eval name="rand1">$_player_cx%21</eval>
		<changeDirection>
		<direction type="absolute">-(60+$rand1)</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>4.4</speed><term>30</term>
		</changeSpeed>
		<wait>30</wait>
		<changeSpeed>
			<speed>0</speed><term>30</term>
		</changeSpeed>

		<!--すぐに次の剣を放つ-->
		<wait>45</wait>
		<!--剣撃１、左下狙い(狙いは剣撃１Ａの余波が膨れる前くらい)-->
		<eval name="MAGICNUM1">((($_self_cx-$_player_cx)%20)/8)</eval>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>144</param>	      <!--狙い弾-->
		<param>-2.0</param>	     <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>-1</param>	       <!--弾幕の向き-->
		<param>9</param>	       <!--小弾の間隔-->
		</actionRef>
		<actionRef label="stageEX_bossTmp02_subAction01">
		<param>324</param>	      <!--狙い弾-->
		<param>-2.0</param>	     <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>-1</param>	       <!--弾幕の向き-->
		<param>9</param>	       <!--小弾の間隔-->
		</actionRef>

		<!--右側の弾が届くくらいで狙い弾-->
		<wait>240</wait>
		<eval name="MAGICNUM1">-((($_self_cx-$_player_cx)%20)/8)</eval>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<actionRef label="stageEX_bossTmp02_subAction02">
		<param>0</param>		<!--狙い弾-->
		<param>-2.0</param>	     <!--衝撃波の角度オフセット-->
		<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
		<param>1</param>		<!--弾幕の向き-->
		<param>10</param>	       <!--小弾の間隔-->
		</actionRef>
	</repeat>

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

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

	<!--剣撃２方向-->
	<eval name="MAGICNUM1">((($_self_cx-$_player_cx)%20)/8)</eval>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<actionRef label="stageEX_bossTmp02_subAction01">
	<param>135</param>	      <!--狙い弾-->
	<param>-2.0</param>	     <!--衝撃波の角度オフセット-->
	<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
	<param>-1</param>	       <!--弾幕の向き-->
	<param>11</param>	       <!--小弾の間隔-->
	</actionRef>
	<actionRef label="stageEX_bossTmp02_subAction01">
	<param>225</param>	      <!--狙い弾-->
	<param>2.0</param>	      <!--衝撃波の角度オフセット-->
	<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
	<param>1</param>		<!--弾幕の向き-->
	<param>11</param>	       <!--小弾の間隔-->
	</actionRef>

	<!--少し上に移動してもう一回剣撃２方向(自機狙い)-->
	<eval name="rand1">($_player_cx/20)</eval>
	<changeDirection>
	<direction type="absolute">($rand1-12)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed>4.4</speed><term>15</term>
	</changeSpeed>
	<wait>15</wait>
	<changeSpeed>
		<speed>0</speed><term>15</term>
	</changeSpeed>
	<wait>105</wait>

	<!--元に戻る-->
	<eval name="MAGICNUM1">-((($_self_cx-$_player_cx)%20)/8)</eval>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<actionRef label="stageEX_bossTmp02_subAction02">
	<param>20</param>		<!--狙い弾-->
	<param>-2.0</param>	     <!--衝撃波の角度オフセット-->
	<param>$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
	<param>-1</param>		<!--弾幕の向き-->
	<param>14</param>	       <!--小弾の間隔-->
	</actionRef>
	<actionRef label="stageEX_bossTmp02_subAction02">
	<param>-10</param>		<!--狙い弾-->
	<param>2.0</param>	     <!--衝撃波の角度オフセット-->
	<param>-$MAGICNUM1</param>       <!--弾幕にランダム要素を持たせる-->
	<param>1</param>		<!--弾幕の向き-->
	<param>14</param>	       <!--小弾の間隔-->
	</actionRef>

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

</repeat>

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

</action>

<action label="stageEX_bossTmp02_subAction01">
	<fireRef label="stageEX_bossTmp02_fireWAVEA">
	<param>$2*(-2)+$1</param>	 <!--角度オフセット-->
	<param>2.4</param>	      <!--衝撃波そのものの速度-->
	<param>1</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*30</param>	    <!--衝撃波が残す小弾のオフセット角度-->
	<param>$3</param>	       <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>2.7</param>	      <!--衝撃波そのものの速度-->
	<param>2</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*33.5</param>	  <!--衝撃波が残す小弾のオフセット角度-->
	<param>2*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>3.0</param>	      <!--衝撃波そのものの速度-->
	<param>3</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*37.0</param>	  <!--衝撃波が残す小弾のオフセット角度-->
	<param>3*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>3.3</param>	      <!--衝撃波そのものの速度-->
	<param>4</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*40.5</param>	  <!--衝撃波が残す小弾のオフセット角度-->
	<param>4*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>3.6</param>	      <!--衝撃波そのものの速度-->
	<param>5</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*44.0</param>	  <!--衝撃波が残す小弾のオフセット角度-->
	<param>5*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>
</action>

<!-- 狙い -->
<action label="stageEX_bossTmp02_subAction02">
	<fireRef label="stageEX_bossTmp02_fireWAVEC">
	<param>$2*(-2)+$1</param>	 <!--角度オフセット-->
	<param>2.4</param>	      <!--衝撃波そのものの速度-->
	<param>1</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*48</param>	    <!--衝撃波が残す小弾のオフセット角度-->
	<param>$3</param>	       <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>2.7</param>	      <!--衝撃波そのものの速度-->
	<param>2</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*54</param>	    <!--衝撃波が残す小弾のオフセット角度-->
	<param>2*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>3.0</param>	      <!--衝撃波そのものの速度-->
	<param>3</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*60</param>	    <!--衝撃波が残す小弾のオフセット角度-->
	<param>3*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>3.3</param>	      <!--衝撃波そのものの速度-->
	<param>4</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*66</param>	    <!--衝撃波が残す小弾のオフセット角度-->
	<param>4*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>

	<fireRef label="stageEX_bossTmp02_fireWAVEB">
	<param>$2</param>	       <!--角度オフセット-->
	<param>3.6</param>	      <!--衝撃波そのものの速度-->
	<param>5</param>
	<param>$5</param>	       <!--衝撃波が残す小弾の間隔-->
	<param>$4*72</param>	    <!--衝撃波が残す小弾のオフセット角度-->
	<param>5*$3</param>	     <!--弾幕のランダム要素-->
	</fireRef>
	<wait>1</wait>
</action>


<fire label="stageEX_bossTmp02_fireWAVEA">
	<speed>6</speed><!--すぐにいったん止まる-->
	<direction type="absolute">$1</direction>
	<bulletRef label="stageEX_bossTmp02_bulletWAVE">
	<param>$2</param><!--速度-->
	<param>$3</param><!--加速開始-->
	<param>$4</param><!--小弾間隔-->
	<param>$5</param><!--小弾オフセット-->
	<param>$6</param><!--小弾ランダム要素-->
	</bulletRef>
</fire>
<fire label="stageEX_bossTmp02_fireWAVEB">
	<speed>6</speed><!--すぐにいったん止まる-->
	<direction type="sequence">$1</direction>
	<bulletRef label="stageEX_bossTmp02_bulletWAVE">
	<param>$2</param><!--速度-->
	<param>$3</param><!--加速開始-->
	<param>$4</param><!--小弾間隔-->
	<param>$5</param><!--小弾オフセット-->
	<param>$6</param><!--小弾ランダム要素-->
	</bulletRef>
</fire>
<fire label="stageEX_bossTmp02_fireWAVEC">
	<speed>6</speed><!--すぐにいったん止まる-->
	<direction type="aim">$1</direction>
	<bulletRef label="stageEX_bossTmp02_bulletWAVE">
	<param>$2</param><!--速度-->
	<param>$3</param><!--加速開始-->
	<param>$4</param><!--小弾間隔-->
	<param>$5</param><!--小弾オフセット-->
	<param>$6</param><!--小弾ランダム要素-->
	</bulletRef>
</fire>

<bullet label="stageEX_bossTmp02_bulletWAVE">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
<!--	<collision type="sync"><left>-7</left><top>-8</top><right>7</right><bottom>8</bottom></collision> -->
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>1</red><green>2</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">0.1</speed><term>10</term>
		</changeSpeed>
		<wait>70+5*$2</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>

		<eval name="small_spd">1.1+($2-eq3)*0.8</eval>
		<eval name="small_start">76+$2*4</eval>

		<wait>30</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<eval name="MAGICNUM1">($_self_cx-$_player_cx)</eval>
		<fireRef label="stageEX_bossTmp02_fireSmallA">
		<param>$4+$MAGICNUM1</param>
		<param>$small_start</param>
		<param>$small_spd</param>
		<param>$2</param>
		</fireRef>
		<fireRef label="stageEX_bossTmp02_fireSmallB">
		<param>$4+$5</param>
		<param>$small_start*2</param>
		<param>$small_spd*1.5</param>
		<param>$2</param>
		</fireRef>
		<repeat><times>3</times>
			<wait>$3</wait>
			<fireRef label="stageEX_bossTmp02_fireSmallB">
			<param>$4</param>
			<param>$small_start</param>
			<param>$small_spd</param>
			<param>$2</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp02_fireSmallB">
			<param>$4+$5</param>
			<param>$small_start*2</param>
			<param>$small_spd*1.5</param>
			<param>$2</param>
			</fireRef>
		</repeat>

		<repeat><times>10</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
			<wait>$3</wait>
			<fireRef label="stageEX_bossTmp02_fireSmallB">
			<param>$4</param>
			<param>$small_start</param>
			<param>$small_spd</param>
			<param>$2</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp02_fireSmallB">
			<param>$4+$5</param>
			<param>$small_start*2</param>
			<param>$small_spd*1.5</param>
			<param>$2</param>
			</fireRef>
		</repeat>
		</repeat>
	</action>
</bullet>

<fire label="stageEX_bossTmp02_fireSmallA">
	<speed>$3</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stageEX_bossTmp02_bulletSmall">
		<param>$2</param>
		<param>$3</param>
		<param>$4</param>
	</bulletRef>
</fire>
<fire label="stageEX_bossTmp02_fireSmallB">
	<speed>$3</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stageEX_bossTmp02_bulletSmall">
		<param>$2</param>
		<param>$3</param>
		<param>$4</param>
	</bulletRef>
</fire>

<bullet label="stageEX_bossTmp02_bulletSmall">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>2</radius></collision>
<!--	<collision type="sync"><left>-7</left><top>-8</top><right>7</right><bottom>8</bottom></collision> -->
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>6</width><height>6</height>
		<alpha>255</alpha><red>32+208*($3-lt4)</red><green>32+208*($3-gt2)</green><blue>32+96*((1-$3)%2)</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<changeSpeed>
			<speed>0.2</speed><term>5</term>
		</changeSpeed>
		<wait>$1</wait>
		<changeSpeed>
			<speed>$2</speed><term>$1</term>
		</changeSpeed>
	</action>
</bullet>


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

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

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

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

<!-- 弾幕開始 -->
<repeat><times>4</times>
	<eval name="change_dir">0</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_3_1"><param>70</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>31</times>
	<evaladd name="change_dir">16</evaladd>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_3_1_s"><param>48+4</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>5</wait>
	</repeat>

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

	<eval name="change_dir">0</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_3_2_ab"><param>70+$_player_cx%15</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_2_s"><param>48</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_2_s"><param>48</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>31</times>
	<evaladd name="change_dir">-17</evaladd>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_3_2_s"><param>48+4</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_2_s"><param>48</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_2_s"><param>48</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>5</wait>
	</repeat>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1</speed><term>10</term>
	</changeSpeed>
	<wait>40</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> -->

	<eval name="change_dir">0</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_3_1"><param>4</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>0</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>0</param></fireRef>
	</repeat>
	<wait>5</wait>

	<repeat><times>16</times>
	<evaladd name="change_dir">17</evaladd>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_3_2_s"><param>48+4</param><param>-1*$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>-1*$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_2_s"><param>48</param><param>-1*$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>-1*$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_2_s"><param>48</param><param>-1*$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_2_s"><param>9</param><param>-1*$change_dir</param></fireRef>
	</repeat>
	<wait>5</wait>
	<evaladd name="change_dir">17</evaladd>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_3_1_s"><param>48+4</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_3_1_s"><param>48</param><param>$change_dir</param></fireRef>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_3_1_s"><param>9</param><param>$change_dir</param></fireRef>
	</repeat>
	<wait>5</wait>
	</repeat>
	<wait>10-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<wait>90</wait>

</repeat>

<wait>60</wait>

<targetRevenge label="stageEX_boss_enemy"></targetRevenge>


</action>

<fire label="EX_boss_fire_3_1">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_3_1"><param>$2</param></bulletRef>
</fire>

<fire label="EX_boss_fire_3_1_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_3_1"><param>$2</param></bulletRef>
</fire>

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

<bullet label="EX_boss_bullet_3_1">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>0</red><green>0</green><blue>$1%255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">2.5</speed><term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<changeDirection>
			<direction type="relative">$1</direction><term>100</term>
		</changeDirection>
	</action>
</bullet>

<fire label="EX_boss_fire_3_2">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_3_2"><param>$2</param></bulletRef>
</fire>

<fire label="EX_boss_fire_3_2_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_3_2"><param>$2</param></bulletRef>
</fire>

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

<bullet label="EX_boss_bullet_3_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>$1%255</red><green>0</green><blue>0</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">2.5</speed><term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<changeDirection>
			<direction type="relative">$1</direction><term>120</term>
		</changeDirection>
	</action>
</bullet>


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

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

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

	<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="EX_boss_create_4_1"><param>140+14</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>140+14+32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>320-32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>320+32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>500-14</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>500-14-32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>140+14</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>140+14+32</param><param>80</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>500-14</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>500-14-32</param><param>80</param></createRef>
	<wait>1</wait>

	<wait>30</wait>
	<eval name="dir1">1-2*($_player_cx%2)</eval>
	<eval name="dir2">1-2*($_player_cy%2)</eval>
	<changeDirection>
		<direction type="absolute">90*$dir1+(($_player_cx+$_player_cy)%11)*$dir2</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>35</wait>

	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_4_1"><param>0</param><param>3</param></fireRef>
	<wait>110</wait>

	<createRef label="EX_boss_create_4_1"><param>140+14+48</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>140+14+48+32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>140+14+48+64</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320-32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>320+32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>500-14-48</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>500-14-48-1-32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>500-14-48-1-64</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320+120</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>320+120-32</param><param>80</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320-120</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>320-120-32</param><param>80</param></createRef>
	<wait>1</wait>

	<wait>30</wait>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>

	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_4_1"><param>0</param><param>3</param></fireRef>
	<wait>15-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<wait>85</wait>


	<createRef label="EX_boss_create_4_2"><param>140+14</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>140+14+32</param><param>205</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2_score"><param>320</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>320-32</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>320+32</param><param>205</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2"><param>500-14</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>500-14-32</param><param>205</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2"><param>140+14</param><param>65</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>140+14+32</param><param>65</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2"><param>500-14</param><param>65</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>500-14-32</param><param>65</param></createRef>
	<wait>1</wait>

	<wait>30</wait>
	<eval name="dir1">1-2*($_player_cx%2)</eval>
	<eval name="dir2">1-2*($_player_cy%2)</eval>
	<changeDirection>
		<direction type="absolute">90*$dir1+(($_player_cx+$_player_cy)%11)*$dir2</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>

	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_4_1"><param>0</param><param>3</param></fireRef>
	<wait>100</wait>

	<createRef label="EX_boss_create_4_2"><param>140+14+48</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>140+14+48+32</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>140+14+48+64</param><param>205</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2"><param>320-32</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>320+32</param><param>205</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2"><param>500-14-48</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>500-14-48-1-32</param><param>205</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>500-14-48-1-64</param><param>205</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2_score"><param>320+120</param><param>65</param></createRef>
	<createRef label="EX_boss_create_4_2"><param>320+120-32</param><param>65</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_2"><param>320-120</param><param>65</param></createRef>
	<createRef label="EX_boss_create_4_2_score"><param>320-120-32</param><param>65</param></createRef>
	<wait>1</wait>

	<wait>30</wait>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>35</wait>

	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_4_1"><param>0</param><param>3</param></fireRef>
	<wait>15-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<wait>95</wait>
</repeat>

	<createRef label="EX_boss_create_4_1"><param>140+14</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>140+14+32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>320-32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>320+32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>500-14</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>500-14-32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>140+14</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>140+14+32</param><param>80</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>500-14</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>500-14-32</param><param>80</param></createRef>
	<wait>1</wait>

	<wait>30</wait>
	<eval name="dir1">1-2*($_player_cx%2)</eval>
	<eval name="dir2">1-2*($_player_cy%2)</eval>
	<changeDirection>
		<direction type="absolute">90*$dir1+(($_player_cx+$_player_cy)%11)*$dir2</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>35</wait>

	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_4_1"><param>0</param><param>3</param></fireRef>
	<wait>110</wait>

	<createRef label="EX_boss_create_4_1"><param>140+14+48</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>140+14+48+32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>140+14+48+64</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320-32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>320+32</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>500-14-48</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>500-14-48-1-32</param><param>220</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>500-14-48-1-64</param><param>220</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320+120</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1_score"><param>320+120-32</param><param>80</param></createRef>
	<wait>1</wait>
	<createRef label="EX_boss_create_4_1"><param>320-120</param><param>80</param></createRef>
	<createRef label="EX_boss_create_4_1"><param>320-120-32</param><param>80</param></createRef>
	<wait>1</wait>

	<wait>30</wait>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>15</term>
	</changeSpeed>
	<wait>45</wait>

	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_4_1"><param>0</param><param>3</param></fireRef>
	<wait>15-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<wait>85</wait>


<wait>120</wait>

<targetRevenge label="stageEX_boss_enemy"></targetRevenge>

</action>

<create label="EX_boss_create_4_1">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<child>1</child>
	<objectRef label="EX_boss_object_4_1"></objectRef>
</create>

<object label="EX_boss_object_4_1">
	<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>35</alpha><red>155</red><green>155</green><blue>155</blue>
	</img>

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

	<action>
		<changeColor>
			<alpha>255</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<createRef label="enemy_create_stageEXboss_4_1"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_1"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_1"><param>180</param></createRef>
		<wait>25</wait>

		<changeColor>
			<alpha>25</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<vanish/>
	</action>
</object>

<create label="EX_boss_create_4_1_score">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<child>1</child>
	<objectRef label="EX_boss_object_4_1_score"></objectRef>
</create>

<object label="EX_boss_object_4_1_score">
	<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>35</alpha><red>155</red><green>155</green><blue>155</blue>
	</img>

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

	<action>
		<changeColor>
			<alpha>255</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<createRef label="enemy_create_stageEXboss_4_1"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_1"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_1_score"><param>180</param></createRef>
		<wait>25</wait>

		<changeColor>
			<alpha>25</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<vanish/>
	</action>
</object>


<create label="enemy_create_stageEXboss_4_1">
	<speed>0.6</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>2</vital>
	<enemyRef label="enemy_stageEXboss_4_1"></enemyRef>
</create>

<create label="enemy_create_stageEXboss_4_1_score">
	<speed>0.6</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>2</vital>
	<enemyRef label="enemy_stageEXboss_4_1_score"></enemyRef>
</create>

<enemy label="enemy_stageEXboss_4_1">
	<score>950</score>
	<inv>20</inv>
	<prate>6.1</prate>
	<presentRef label="enemy_present_stageEXboss_01"></presentRef>
	<revengeRef label="enemy_revenge_stageEXboss_01"><param>1</param><param>20</param><param>10</param></revengeRef>
	<collision type="sync"><left>-8</left><top>-8</top><right>8</right><bottom>8</bottom></collision>

	<action>
		<wait>5</wait>
		<repeat><times>3</times>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_1"><param>0</param><param>1</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_4_1_s"><param>0</param><param>6</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_4_1_s"><param>0</param><param>11</param></fireRef>
		<wait>120</wait>
		</repeat>
	</action>
</enemy>

<enemy label="enemy_stageEXboss_4_1_score">
	<score>950</score>
	<inv>20</inv>
	<prate>6.5</prate>
	<presentRef label="enemy_present_stageEXboss_01"></presentRef>
	<revengeRef label="enemy_revenge_stageEXboss_01_s"><param>1</param><param>20</param><param>16</param></revengeRef>
	<collision type="sync"><left>-8</left><top>-8</top><right>8</right><bottom>8</bottom></collision>

	<action>
		<wait>5</wait>
		<repeat><times>3</times>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_1"><param>0</param><param>1</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_4_1_s"><param>0</param><param>6</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_4_1_s"><param>0</param><param>11</param></fireRef>
		<wait>120</wait>
		</repeat>
	</action>
</enemy>



<create label="EX_boss_create_4_2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<child>1</child>
	<objectRef label="EX_boss_object_4_2"></objectRef>
</create>

<object label="EX_boss_object_4_2">
	<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>35</alpha><red>155</red><green>155</green><blue>155</blue>
	</img>

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

	<action>
		<changeColor>
			<alpha>255</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<createRef label="enemy_create_stageEXboss_4_2"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_2"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_2"><param>180</param></createRef>
		<wait>25</wait>

		<changeColor>
			<alpha>25</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<vanish/>
	</action>
</object>

<create label="EX_boss_create_4_2_score">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<child>1</child>
	<objectRef label="EX_boss_object_4_2_score"></objectRef>
</create>

<object label="EX_boss_object_4_2_score">
	<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>35</alpha><red>155</red><green>155</green><blue>155</blue>
	</img>

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

	<action>
		<changeColor>
			<alpha>255</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<createRef label="enemy_create_stageEXboss_4_2"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_2"><param>180</param></createRef>
		<wait>25</wait>
		<createRef label="enemy_create_stageEXboss_4_2_score"><param>180</param></createRef>
		<wait>25</wait>

		<changeColor>
			<alpha>25</alpha><red>155</red><green>155</green><blue>155</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<vanish/>
	</action>
</object>


<create label="enemy_create_stageEXboss_4_2">
	<speed>0.6</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>2</vital>
	<enemyRef label="enemy_stageEXboss_4_2"></enemyRef>
</create>

<create label="enemy_create_stageEXboss_4_2_score">
	<speed>0.6</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>2</vital>
	<enemyRef label="enemy_stageEXboss_4_2_score"></enemyRef>
</create>

<enemy label="enemy_stageEXboss_4_2">
	<score>950</score>
	<inv>20</inv>
	<prate>5.2</prate>
	<presentRef label="enemy_present_stageEXboss_01"></presentRef>
	<revengeRef label="enemy_revenge_stageEXboss_01"><param>1</param><param>20</param><param>10</param></revengeRef>
	<collision type="sync"><left>-8</left><top>-8</top><right>8</right><bottom>8</bottom></collision>

	<action>
		<wait>5</wait>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_2_ab"><param>170+(($_self_cx+$_player_cx)%17)*3</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>34</wait>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>22+($_player_cy%13)</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>34</wait>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>34+($_player_cy%7)</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>120</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>120</param><param>1</param></fireRef>
		<wait>24</wait>
	</action>
</enemy>

<enemy label="enemy_stageEXboss_4_2_score">
	<score>950</score>
	<inv>20</inv>
	<prate>5.3</prate>
	<presentRef label="enemy_present_stageEXboss_01"></presentRef>
	<revengeRef label="enemy_revenge_stageEXboss_01_s"><param>1</param><param>20</param><param>16</param></revengeRef>
	<collision type="sync"><left>-8</left><top>-8</top><right>8</right><bottom>8</bottom></collision>

	<action>
		<wait>5</wait>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_2_ab"><param>170+(($_self_cx+$_player_cx)%21)*4</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>24</wait>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>24+($_player_cx%17)</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>24</wait>
		<actionRef label="enemy_bullet_action4"><param>32</param></actionRef>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>34+($_player_cx%7)</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>3</wait>
		<fireRef label="boss_stageEX_fire_laser_4_2_s"><param>72</param><param>1</param></fireRef>
		<wait>24</wait>
	</action>
</enemy>



<present label="enemy_present_stageEXboss_01">
	<img type="normal">
		<file type="dds">attack_system</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<rotateImg><direction>6</direction><term>-1</term></rotateImg>
</present>

<revenge label="enemy_revenge_stageEXboss_01">
	<presentRef label="enemy_revenge_present_01_small"></presentRef>
	<soundRef label="enemy_break1"></soundRef>
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>
	<eval name="localcounter">$_counter</eval>

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

<revenge label="enemy_revenge_stageEXboss_01_s">
	<presentRef label="enemy_revenge_present_01_small"></presentRef>
	<soundRef label="enemy_break1"></soundRef>
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>
	<eval name="localcounter">$_counter</eval>

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

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

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

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

<bullet label="boss_stageEX_fire_laser_bullet_4_1">
	<collision type="sync"><left>-2</left><top>-4</top><right>2</right><bottom>4</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>11</height><term>3</term>
		</changeImgSize>
		<wait>2</wait>
		<changeSpeed>
			<speed>2.5</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>

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

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

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

<bullet label="boss_stageEX_fire_laser_bullet_4_2">
	<collision type="sync"><left>-2</left><top>-4</top><right>2</right><bottom>4</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>11</height><term>3</term>
		</changeImgSize>
		<wait>2</wait>
		<changeSpeed>
			<speed>2.1</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>


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

<bullet label="stageEX_boss_bullet_4_1">
	<collision type="sync"><left>-41</left><top>-7</top><right>41</right><bottom>7</bottom></collision>
	<img type="maskadd">
		<file type="dds">largeshot</file>
		<left>0</left><top>0</top><right>256</right><bottom>256</bottom>
		<width>100</width><height>24</height>
		<alpha>255</alpha><red>1</red><green>1</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>
		<repeat><times>-1</times>
		<wait>3</wait>
		<createRef label="stageEX_boss_fire_4_2"></createRef>
		</repeat>

	</action>

</bullet>

<create label="stageEX_boss_fire_4_2">
	<speed type="absolute">0.5</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<objectRef label="stageEX_boss_bullet_4_2"></objectRef>
</create>

<object label="stageEX_boss_bullet_4_2">
	<img type="add">
		<file type="dds">largeshot</file>
		<left>0</left><top>0</top><right>256</right><bottom>256</bottom>
		<width>100</width><height>24</height>
		<alpha>140</alpha><red>100</red><green>100</green><blue>200</blue>
	</img>
	<setDrawLevel><num>20</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<changeColor>
			<alpha>30</alpha><red>1</red><green>1</green><blue>255</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>

	</action>

</object>



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

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

	<changePosition type="center">
		<x>320</x><y>152</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>
	<!--攻撃１、広範囲の剣戟-->
	<eval name="RAND">(($_player_cx*7)%31)</eval>
	<eval name="RAND2">1-2*($_player_cx-gt320)</eval>

	<actionRef label="stageEX_bossTmp01_subAction00">
		<param>165+120*$RAND2+$RAND</param><!--１回目の移動角度修正-->
		<param>120*$RAND2</param><!--２回目の移動角度修正-->
		<param>60*$RAND2</param><!--３回目の移動角度修正-->
	</actionRef>
	<wait>240-60-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<!--攻撃２、連射的な剣戟＋オプションの同期攻撃-->
	<actionRef label="stageEX_bossTmp01_subAction01">
	<param>60+210*(1-($_player_cx-gt320))+(($_player_cx*7)%31)</param><!--移動角度１-->
	<param>60+210*($_player_cx-gt320)(($_player_cx*13)%31)</param><!--移動角度２-->
	</actionRef>
	<wait>90-60-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<wait>60</wait>
</repeat>

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

</action>


<!--$1:１回目の移動角度、$2:２回目、４回目の移動角度修正、$3:３回目の移動角度修正-->
<action label="stageEX_bossTmp01_subAction00">
<!--攻撃１＋移動の１セットは合計180フレーム・・・のはず-->

<!--１セット目-->
<!--攻撃１-->
	
	<actionRef label="stageEX_bossTmp01_subAction02">	<!--90-15フレーム-->
	<param>690-60-60</param><!--剣戟の再移動までの待ち時間-->
	</actionRef>
<!--移動１＋強化ワーム-->
	<actionRef label="stageEX_bossTmp01_MOVE01A">		<!--60フレーム-->
	<param>$1</param>		<!--角度-->
	<param>96</param>		<!--移動量-->
	<param>770-60-60</param>		<!--強化ワーム形態変化待ち時間-->
	<param>0</param>		<!--強化ワームパターン２の最初の攻撃は？-->
	</actionRef>
	<!--少し待つ-->
	<wait>30</wait>

<!--２セット目-->
	<actionRef label="stageEX_bossTmp01_subAction02">	<!--90-15フレーム-->
	<param>510-60-60</param><!--剣戟の再移動までの待ち時間-->
	</actionRef>

	<actionRef label="stageEX_bossTmp01_MOVE01A">		<!--60フレーム-->
	<param>$1+$2</param>		<!--角度-->
	<param>96</param>		<!--移動量-->
	<param>591+60-60-60</param>		<!--強化ワーム形態変化待ち時間-->
	<param>1</param>		<!--強化ワームパターン２の最初の攻撃は？-->
	</actionRef>
	<!--少し待つ-->
	<wait>30-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

<!--３セット目-->
	<actionRef label="stageEX_bossTmp01_subAction02">	<!--90-15フレーム-->
	<param>330-60-60</param><!--剣戟の再移動までの待ち時間-->
	</actionRef>

	<actionRef label="stageEX_bossTmp01_MOVE01A">		<!--60フレーム-->
	<param>$1+$2+$3</param>		<!--角度-->
	<param>96</param>		<!--移動量-->
	<param>412+120-60-60</param>		<!--強化ワーム形態変化待ち時間-->
	<param>0</param>		<!--強化ワームパターン２の最初の攻撃は？-->
	</actionRef>
	<!--少し待つ-->
	<wait>30</wait>

<!--４セット目-->
	<actionRef label="stageEX_bossTmp01_subAction02">	<!--90-15フレーム-->
	<param>150-60-60</param><!--剣戟の再移動までの待ち時間-->
	</actionRef>

<!--原点に戻る、移動のみ-->
	<actionRef label="stageEX_bossTmp01_MOVE01B">		<!--60フレーム-->
	<param>$1+$2+$3+$2</param>	<!--角度-->
	<param>96</param>		<!--移動量-->
	</actionRef>

</action>

<!--$1：移動１，３の角度、$2：移動２、移動４の角度-->
<action label="stageEX_bossTmp01_subAction01">
	<!--これも攻撃＋移動の１セットは180フレーム・・・のはず-->
	
	<!--攻撃２時計回り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>0.6</param>	<!--衝撃波のオフセット角度-->
	<param>1</param>	<!--衝撃波がオマケ弾を出す方向-->
	<param>1.6</param>	<!--衝撃波の基本速度-->
	</actionRef>
	<wait>26</wait>
	<!--攻撃２反時計周り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>-0.6</param>
	<param>-1</param>
	<param>1.6</param>
	</actionRef>
	<wait>26</wait>
	<actionRef label="stageEX_bossTmp01_MOVE02"><!--55フレーム-->
	<param>$1</param>
	</actionRef>
	<wait>5</wait>

	<!--攻撃２時計回り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>0.9</param>
	<param>1</param>
	<param>1.8</param>
	</actionRef>
	<wait>26</wait>
	<!--攻撃２反時計周り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>-0.9</param>
	<param>-1</param>
	<param>1.8</param>
	</actionRef>
	<wait>26</wait>
	<actionRef label="stageEX_bossTmp01_MOVE02"><!--55フレーム-->
	<param>$2</param>
	</actionRef>
	<wait>5-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<!--攻撃２時計回り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>1.2</param>
	<param>1</param>
	<param>2.0</param>
	</actionRef>
	<wait>26</wait>
	<!--攻撃２反時計周り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>-1.2</param>
	<param>-1</param>
	<param>2.0</param>
	</actionRef>
	<wait>26</wait>
	<actionRef label="stageEX_bossTmp01_MOVE02"><!--55フレーム-->
	<param>$1+180</param>
	</actionRef>
	<wait>5</wait>

	<!--攻撃２時計回り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>1.5</param>
	<param>1</param>
	<param>2.2</param>
	</actionRef>
	<wait>26</wait>
	<!--攻撃２反時計周り-->
	<actionRef label="stageEX_bossTmp01_subAction03"><!--64フレーム-->
	<param>-1.5</param>
	<param>-1</param>
	<param>2.2</param>
	</actionRef>
	<wait>26</wait>
	<actionRef label="stageEX_bossTmp01_MOVE02"><!--55フレーム-->
	<param>$2+180</param>
	</actionRef>
</action>

<!--移動＋オプション(ここではウィルス統率という設定を勝手に利用して強化ウィルスにしている)-->
<action label="stageEX_bossTmp01_MOVE01A">
	<changeDirection>
		<direction type="absolute">$1</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed>($2/40)</speed><term>20</term>
	</changeSpeed>
	<wait>1</wait>
	<!--ここで強化ワームを放つ-->
	<createRef label="stageEX_bossTmp01_createWORM">
	<param>($2/40)</param>	<!--移動速度-->
	<param>$3</param>	<!--同期攻撃の待ち時間-->
	<param>$4</param>	<!--同期攻撃の最初は時計周り？反時計周り？-->
	</createRef>

	<!--本体は止まる-->
	<wait>39</wait>
	<changeSpeed>
		<speed>0</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>
</action>

<action label="stageEX_bossTmp01_MOVE01B">
	<changeDirection>
		<direction type="absolute">$1</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed>($2/40)</speed><term>20</term>
	</changeSpeed>
	<wait>40</wait>
	<changeSpeed>
		<speed>0</speed><term>20</term>
	</changeSpeed>
	<wait>20</wait>
</action>

<action label="stageEX_bossTmp01_MOVE02">
	<changeDirection>
		<direction type="absolute">$1</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed>2</speed><term>15</term>
	</changeSpeed>
	<wait>40</wait>
	<changeSpeed>
		<speed>0</speed><term>15</term>
	</changeSpeed>
	<wait>15</wait>
</action>

<!--広範囲衝撃波攻撃-->
<!--途中で低速移動に化ける衝撃波(00A,00B)と-->
<!--途中で止まって後で一斉に低速移動する衝撃波(01)が混じってる-->
<action label="stageEX_bossTmp01_subAction02">

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<eval name="SPD01">0.08*64</eval>
	<eval name="OFFSET01">180</eval>
	<fireRef label="stageEX_bossTmp01_fire00A">
	<param>90</param>			<!--オフセット-->
	<param>($SPD01+0.60)</param>		<!--初期速度-->
	<param>32</param>			<!--初期速度動いてる時間-->
	<param>0.80</param>			<!--最終速度-->
	</fireRef>
	<fireRef label="stageEX_bossTmp01_fire00B">
	<param>-1*$OFFSET01</param>	       	<!--オフセット-->
	<param>($SPD01+0.60)</param>	    	<!--初期速度-->
	<param>32</param>		       	<!--初期速度動いてる時間-->
	<param>0.80</param>		     	<!--最終速度-->
	</fireRef>

	<wait>1</wait>

	<eval name="OFFSET01">($OFFSET01-180/48)</eval>
	<eval name="SPD01">($SPD01-0.08)</eval>
	<fireRef label="stageEX_bossTmp01_fire01">
	<param>$OFFSET01</param>		<!--オフセット-->
	<param>($SPD01+0.60)</param>	    	<!--初期速度-->
	<param>32</param>		       	<!--初期速度動いてる時間-->
	<param>1.50</param>		     	<!--最終速度-->
	<param>$1</param>
	</fireRef>
	<eval name="OFFSET01">($OFFSET01-180/48)</eval>
	<fireRef label="stageEX_bossTmp01_fire01">
	<param>-1*$OFFSET01</param>		<!--オフセット-->
	<param>($SPD01+0.60)</param>		<!--初期速度-->
	<param>32</param>			<!--初期速度動いてる時間-->
	<param>1.50</param>			<!--最終速度-->
	<param>$1</param>
	</fireRef>
	<wait>1</wait>

	<eval name="OFFSET01">($OFFSET01-180/48)</eval>
	<eval name="SPD01">($SPD01-0.08)</eval>
	<fireRef label="stageEX_bossTmp01_fire00B">
	<param>$OFFSET01</param>	<!--オフセット-->
	<param>($SPD01+0.60)</param>	<!--初期速度-->
	<param>32</param>		<!--初期速度動いてる時間-->
	<param>0.80</param>		<!--最終速度-->
	</fireRef>

	<eval name="OFFSET01">($OFFSET01-180/48)</eval>
	<fireRef label="stageEX_bossTmp01_fire00B">
	<param>-1*$OFFSET01</param>	<!--オフセット-->
	<param>($SPD01+0.60)</param>	<!--初期速度-->
	<param>32</param>		<!--初期速度動いてる時間-->
	<param>0.80</param>		<!--最終速度-->
	</fireRef>
	<wait>1</wait>

	<eval name="OFFSET01">($OFFSET01-180/48)</eval>
	<eval name="SPD01">($SPD01-0.10)</eval>
	<fireRef label="stageEX_bossTmp01_fire01">
	<param>$OFFSET01</param>	<!--オフセット-->
	<param>($SPD01+0.60)</param>	<!--初期速度-->
	<param>32</param>		<!--初期速度動いてる時間-->
	<param>1.50</param>		<!--最終速度-->
	<param>$1</param>
	</fireRef>

	<eval name="OFFSET01">($OFFSET01-180/48)</eval>
	<fireRef label="stageEX_bossTmp01_fire01">
	<param>-1*$OFFSET01</param>	<!--オフセット-->
	<param>($SPD01+0.60)</param>	<!--初期速度-->
	<param>32</param>		<!--初期速度動いてる時間-->
	<param>1.50</param>		<!--最終速度-->
	<param>$1</param>
	</fireRef>
	<wait>1</wait>

	<repeat><times>3</times>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<repeat><times>10</times>
		<eval name="OFFSET01">($OFFSET01-180/48)</eval>
		<eval name="SPD01">($SPD01-0.08)</eval>
		<fireRef label="stageEX_bossTmp01_fire00B">
		<param>$OFFSET01</param>	<!--オフセット-->
		<param>($SPD01+0.60)</param>	<!--初期速度-->
		<param>32</param>		<!--初期速度動いてる時間-->
		<param>0.80</param>		<!--最終速度-->
		</fireRef>

		<eval name="OFFSET01">($OFFSET01-180/48)</eval>
		<fireRef label="stageEX_bossTmp01_fire00B">
		<param>-1*$OFFSET01</param>	<!--オフセット-->
		<param>($SPD01+0.60)</param>	<!--初期速度-->
		<param>32</param>		<!--初期速度動いてる時間-->
		<param>0.80</param>		<!--最終速度-->
		</fireRef>
		<wait>1</wait>

		<eval name="OFFSET01">($OFFSET01-180/48)</eval>
		<eval name="SPD01">($SPD01-0.10)</eval>
		<fireRef label="stageEX_bossTmp01_fire01">
		<param>$OFFSET01</param>	<!--オフセット-->
		<param>($SPD01+0.60)</param>	<!--初期速度-->
		<param>32</param>		<!--初期速度動いてる時間-->
		<param>1.50</param>		<!--最終速度-->
		<param>$1</param>
		</fireRef>

		<eval name="OFFSET01">($OFFSET01-180/48)</eval>
		<fireRef label="stageEX_bossTmp01_fire01">
		<param>-1*$OFFSET01</param>	<!--オフセット-->
		<param>($SPD01+0.60)</param>	<!--初期速度-->
		<param>32</param>		<!--初期速度動いてる時間-->
		<param>1.50</param>		<!--最終速度-->
		<param>$1</param>
		</fireRef>
		<wait>1</wait>
	</repeat>
	</repeat>
	<wait>28-15</wait><!--90フレームの補正-->
</action>

<!--連続衝撃波攻撃-->
<!--衝撃波は途中で弾を３発吐く-->
<action label="stageEX_bossTmp01_subAction03">
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<eval name="SPEED">$3</eval>
	<eval name="WAIT">76</eval>
	<eval name="DIRECT">-150</eval>
	<fireRef label="bossTmp01_fire02A">
	<param>$SPEED</param>
	<param>-1*$1*14/2</param>
	<param>$WAIT</param>
	<param>$DIRECT*$2</param>
	<param>120/15*$2</param>
	</fireRef>
	<wait>4</wait>
	<repeat><times>2</times>
		<eval name="SPEED">($SPEED+($3/15))</eval>
		<eval name="WAIT">($WAIT-5)</eval>
		<eval name="DIRECT">($DIRECT+240/15)</eval>
		<fireRef label="bossTmp01_fire02B">
		<param>$SPEED</param>
		<param>$1</param>
		<param>$WAIT</param>
		<param>$DIRECT*$2</param>
		<param>150/15*$2</param>
		</fireRef>
		<wait>4</wait>
	</repeat>


	<repeat><times>7</times>
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<repeat><times>2</times>
		<eval name="SPEED">($SPEED+($3/15))</eval>
		<eval name="WAIT">($WAIT-5)</eval>
		<eval name="DIRECT">($DIRECT+240/15)</eval>
		<fireRef label="bossTmp01_fire02B">
		<param>$SPEED</param>
		<param>$1</param>
		<param>$WAIT</param>
		<param>$DIRECT*$2</param>
		<param>150/15*$2</param>
		</fireRef>
		<wait>4</wait>
	</repeat>
	</repeat>
</action>

<fire label="stageEX_bossTmp01_fire00A">
	<speed>$2</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet00">
	<param>$3</param>
	<param>$4</param>
	</bulletRef>
</fire>
<fire label="stageEX_bossTmp01_fire00B">
	<speed>$2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet00">
	<param>$3</param>
	<param>$4</param>
	</bulletRef>
</fire>
<bullet label="stageEX_bossTmp01_Bullet00">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>1</red><green>2</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

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

	</action>
</bullet>

<fire label="stageEX_bossTmp01_fire01">
	<speed>$2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet01">
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	</bulletRef>
</fire>
<bullet label="stageEX_bossTmp01_Bullet01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>2</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed>0.05</speed><term>20</term>
		</changeSpeed>
		<!--一斉に動き出す-->
		<changeColor>
		<alpha>255</alpha><red>255</red><green>2</green><blue>5</blue><term>$3</term>
		</changeColor>
		<wait>$3</wait>
		<changeSpeed>
			<speed>$2</speed><term>30</term>
		</changeSpeed>

	</action>
</bullet>

<fire label="bossTmp01_fire02A">
	<speed>0</speed>
	<direction type="aim">$2</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet02">
	<param>$1</param>
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	</bulletRef>
</fire>
<fire label="bossTmp01_fire02B">
	<speed>0</speed>
	<direction type="sequence">$2</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet02">
	<param>$1</param>
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	</bulletRef>
</fire>
<bullet label="stageEX_bossTmp01_Bullet02">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>1</red><green>255</green><blue>2</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<changeSpeed>
			<speed>$1</speed><term>40</term>
		</changeSpeed>
		<wait>$2</wait>
		<actionRef label="enemy_bullet_action3"><param>32</param></actionRef>
		<fireRef label="stageEX_bossTmp01_fire03">
		<param>$3</param>
		<param>1.2</param>
		<param>255</param>
		<param>32</param>
		<param>32</param>
		</fireRef>
		<wait>1</wait>
		<fireRef label="stageEX_bossTmp01_fire03">
		<param>$3+$4</param>
		<param>1.8</param>
		<param>224</param>
		<param>224</param>
		<param>32</param>
		</fireRef>
		<wait>1</wait>
		<fireRef label="stageEX_bossTmp01_fire03">
		<param>$3+2*$4</param>
		<param>2.4</param>
		<param>32</param>
		<param>255</param>
		<param>32</param>
		</fireRef>
		<wait>1</wait>
		<fireRef label="stageEX_bossTmp01_fire03">
		<param>$3+2*$4</param>
		<param>3.0</param>
		<param>2</param>
		<param>225</param>
		<param>168</param>
		</fireRef>
		<changeColor>
			<alpha>255</alpha><red>2</red><green>2</green><blue>255</blue><term>1</term>
		</changeColor>
	</action>
</bullet>

<fire label="stageEX_bossTmp01_fire03">
	<speed>0</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet03">
	<param>$2</param>
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	</bulletRef>
</fire>
<bullet label="stageEX_bossTmp01_Bullet03">
	<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>$3</green><blue>$4</blue>
	</img>
	<action>
		<changeSpeed>
			<speed>$1</speed><term>15</term>
		</changeSpeed>
	</action>
</bullet>

<fire label="stageEX_bossTmp01_fire04A">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet04">
	<param>$1</param>
	<param>$2</param>
	</bulletRef>
</fire>
<bullet label="stageEX_bossTmp01_Bullet04">
	<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>224</red><green>224</green><blue>224</blue>
	</img>

	<action>
		<changeColor>
			<alpha>255</alpha><red>224</red><green>224</green><blue>32</blue><term>$2</term>
		</changeColor>
		<wait>$2</wait>
		<changeDirection>
			<direction type="aim">$1</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed>3.2</speed><term>20</term>
		</changeSpeed>
	</action>
</bullet>

<fire label="stageEX_bossTmp01_fire05A">
	<speed>$2</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet05">
	</bulletRef>
</fire>
<fire label="stageEX_bossTmp01_fire05B">
	<speed>$2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stageEX_bossTmp01_Bullet05">
	</bulletRef>
</fire>
<bullet label="stageEX_bossTmp01_Bullet05">
	<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>164</red><green>4</green><blue>184</blue>
	</img>
</bullet>

<!--stageEX_bossTmp01_subAction01と同期するように-->
<create label="stageEX_bossTmp01_createWORM">
	<speed>0</speed>
	<direction type="relative">0</direction>
	<vital>9999999</vital><!--基本的に破壊不可能、邪魔-->
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<child>1</child>
	<enemyRef label="stageEX_bossTmp01_enemyWORM">
	<param>$1</param><!--速度-->
	<param>$2</param><!--同期用-->
	<param>$3</param><!--攻撃パターン設定用-->
	</enemyRef>
</create>

<enemy label="stageEX_bossTmp01_enemyWORM">
	<inv>1</inv>
	<prate>0</prate>
	<revengeRef label="EX_as_revenge_5_01"></revengeRef>
	<presentRef label="enemy_present_as"></presentRef>
	<collision type="sync"><left>-11</left><top>-11</top><right>11</right><bottom>11</bottom></collision>
	<action>
	<!--壁にぶつかるまでは弾を吐く-->
	<eval name="bcnt">0</eval>
	<eval name="BREAK">1</eval>
	<eval name="WAIT1">150</eval>
	<eval name="OFFSET1">22.5</eval>
	<wait>1</wait>
	<changeSpeed>
		<speed>$1</speed><term>20</term>
	</changeSpeed>

	<actionRef label="enemy_bullet_action2"><param>32</param></actionRef>
	<fireRef label="stageEX_bossTmp01_fire04A">
	<param>-1*$OFFSET1</param>
	<param>$WAIT1</param>
	</fireRef>
	<fireRef label="stageEX_bossTmp01_fire04A">
	<param>0.00</param>
	<param>$WAIT1</param>
	</fireRef>
	<fireRef label="stageEX_bossTmp01_fire04A">
	<param>$OFFSET1</param>
	<param>$WAIT1</param>
	</fireRef>
	<repeat><times>($2*$BREAK)</times>
		<wait>1</wait>
		<eval name="stop">($_self_cx-gt460)+($_self_cx-lt200)+($_self_cy-lt40)</eval>
		<evaladd name="bcnt">1</evaladd>

		<repeat><times>(($bcnt%6)-eq0)*$BREAK</times>
			<evaladd name="WAIT1">-6</evaladd>
			<evaladd name="OFFSET1">360/256</evaladd>
			<actionRef label="enemy_bullet_action2"><param>32</param></actionRef>
			<fireRef label="stageEX_bossTmp01_fire04A">
			<param>-1*$OFFSET1</param>
			<param>$WAIT1</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp01_fire04A">
			<param>0.00</param>
			<param>$WAIT1</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp01_fire04A">
			<param>$OFFSET1</param>
			<param>$WAIT1</param>
			</fireRef>
		</repeat>
			<repeat><times>($stop-gt0)*$BREAK</times>
				<eval name="BREAK">0</eval>
				<changeSpeed>
					<speed>0</speed><term>10</term>
				</changeSpeed>
      			</repeat>
	</repeat>

	<wait>($2-$bcnt)</wait>

	<!--同期した-->
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed>(320/960)</speed><term>40</term>
	</changeSpeed>
	<wait>30</wait>
	<eval name="ATTACK">$3</eval>
	<repeat><times>-1</times>
		<!--攻撃１：時計周りに弾を吐く-->
		<repeat><times>$ATTACK-eq0</times>
			<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
			<fireRef label="stageEX_bossTmp01_fire05A">
			<param>-90</param>
			<param>2.2</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp01_fire05B">
			<param>180/16</param>
			<param>1.4</param>
			</fireRef>
			<wait>5</wait>
			<repeat><times>8</times>
				<fireRef label="stageEX_bossTmp01_fire05B">
				<param>180/16</param>
				<param>2.2</param>
				</fireRef>
				<fireRef label="stageEX_bossTmp01_fire05B">
				<param>180/16</param>
				<param>1.4</param>
				</fireRef>
			<wait>5</wait>
			</repeat>
			<wait>135</wait>
		</repeat>
		<!--攻撃２：反時計周りに弾を吐く-->
		<repeat><times>$ATTACK-eq1</times>
			<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
			<fireRef label="stageEX_bossTmp01_fire05A">
			<param>90</param>
			<param>2.2</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp01_fire05B">
			<param>-180/16</param>
			<param>1.4</param>
			</fireRef>
			<wait>5</wait>
			<repeat><times>8</times>
				<fireRef label="stageEX_bossTmp01_fire05B">
				<param>-180/16</param>
				<param>2.2</param>
				</fireRef>
				<fireRef label="stageEX_bossTmp01_fire05B">
				<param>-180/16</param>
				<param>1.4</param>
				</fireRef>
			<wait>5</wait>
			</repeat>
			<wait>135</wait>
		</repeat>
		<eval name="ATTACK">($ATTACK+1)%2</eval>
	</repeat>
	</action>
</enemy>

<revenge label="EX_as_revenge_5_01">

	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<!-- 爆発アクション -->
	<presentRef label="enemy_revenge_present_01"></presentRef>
	<soundRef label="enemy_break1"></soundRef>

	<repeat><times>4</times>
		<createRef label="item_create_01"></createRef>
		<wait>1</wait>
	</repeat>

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

	<wait>1</wait>
	<vanish/>

</revenge>

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

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

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

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

<!-- 弾幕開始 -->
<eval name="rel_dir2">0</eval>
	<actionRef label="boss_sword"></actionRef>
	<createRef label="stageEX_boss_create_6_1"><param>0</param></createRef>
	<eval name="wa">10</eval>
	<fireRef label="boss_stageEX_fire_laser_6_1"><param>0</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
	<wait>1</wait>
	<repeat><times>9</times>
		<evaladd name="wa">-1</evaladd>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
		<wait>1</wait>
	</repeat>
	<wait>55</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_6_3"><param>0</param><param>3</param></fireRef>
	<wait>5</wait>
<repeat><times>5</times>
	<eval name="rel_dir1">(1-2*($_player_cy%2))</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_6_1"><param>0</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+30</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+15</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+30</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>

	<eval name="rel_dir2">($rel_dir2+1)%8</eval>

	<wait>150</wait>
	<actionRef label="aim_move"/>
	<!-- wait 60 -->

	<wait>80</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_6_3"><param>0</param><param>3</param></fireRef>
	<wait>40-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<eval name="rel_dir1">(1-2*($_player_cy%2))</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_6_1"><param>0</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+30</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+15</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+30</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>

	<eval name="rel_dir2">($rel_dir2+1)%8</eval>
	<wait>150</wait>
	<actionRef label="aim_move"/>
	<!-- wait 60 -->

	<wait>80</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_6_3"><param>0</param><param>3</param></fireRef>

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

	<eval name="rel_dir1">(1-2*($_player_cy%2))</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_6_1"><param>0</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+30</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+15</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>
	<wait>10</wait>
	<fireRef label="EX_boss_fire_6_1_s"><param>60+30</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_6_1_s"><param>60</param><param>$rel_dir2</param><param>$rel_dir1</param></fireRef>
	</repeat>

	<eval name="rel_dir2">($rel_dir2+1)%8</eval>
	<wait>150</wait>
	<actionRef label="org_move"/>
	<!-- wait 60 -->

	<wait>80-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stageEX_boss_fire_6_3"><param>0</param><param>3</param></fireRef>
	<wait>40</wait>
</repeat>

<wait>60</wait>

<targetRevenge label="stageEX_boss_enemy2"></targetRevenge>

</action>

<action label="aim_move">
	<eval name="x">($_player_cx-$_self_cx)/70</eval>
	<eval name="y">($_player_cy-$_self_cy)/70</eval>

	<accel>
		<horizontal>$x</horizontal><term>1</term>
		<vertical>$y</vertical><term>1</term>
	</accel>
	<wait>1</wait>
	<accel>
		<horizontal>0</horizontal><term>1</term>
		<vertical>0</vertical><term>1</term>
	</accel>

	<wait>59</wait>

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

	<actionRef label="boss_sword"></actionRef>
	<createRef label="stageEX_boss_create_6_1"><param>0</param></createRef>
	<eval name="wa">10</eval>
	<fireRef label="boss_stageEX_fire_laser_6_1"><param>0</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
	<wait>1</wait>
	<repeat><times>9</times>
		<evaladd name="wa">-1</evaladd>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
		<wait>1</wait>
	</repeat>

</action>

<action label="org_move">
	<eval name="x">(320-$_self_cx)/70</eval>
	<eval name="y">(120-$_self_cy)/70</eval>

	<accel>
		<horizontal>$x</horizontal><term>1</term>
		<vertical>$y</vertical><term>1</term>
	</accel>
	<wait>1</wait>
	<accel>
		<horizontal>0</horizontal><term>1</term>
		<vertical>0</vertical><term>1</term>
	</accel>

	<wait>59</wait>

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

	<wait>15</wait>

	<actionRef label="boss_sword"></actionRef>
	<createRef label="stageEX_boss_create_6_1"><param>0</param></createRef>
	<eval name="wa">10</eval>
	<fireRef label="boss_stageEX_fire_laser_6_1"><param>0</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
	<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
	<wait>1</wait>
	<repeat><times>9</times>
		<evaladd name="wa">-1</evaladd>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>189</param><param>$wa</param></fireRef>
		<fireRef label="boss_stageEX_fire_laser_6_1_s"><param>180</param><param>$wa</param></fireRef>
		<wait>1</wait>
	</repeat>

</action>

<create label="stageEX_boss_create_6_1">
	<speed type="absolute">0</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<enemyRef label="stageEX_boss_enemy_6_1"><param>$1</param></enemyRef>
</create>

<enemy label="stageEX_boss_enemy_6_1">
	<img type="maskadd">
		<file type="dds">sword3</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>140</width><height>140</height>
		<alpha>250</alpha><red>1</red><green>1</green><blue>255</blue>
	</img>
	<setDrawLevel><num>20</num></setDrawLevel>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>68</radius></collision>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<rotateImg>
			<direction>12</direction><term>40</term>
		</rotateImg>
		<wait>10</wait>
		<changeColor>
			<alpha>10</alpha><red>1</red><green>1</green><blue>255</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>

	</action>

</enemy>

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

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


<bullet label="boss_stageEX_fire_laser_bullet_6_1">
	<collision type="sync"><left>-2</left><top>-4</top><right>2</right><bottom>4</bottom></collision>
	
	<img type="add">
		<file type="dds">laser32xb</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>11</height><term>3</term>
		</changeImgSize>
		<wait>2</wait>
		<changeSpeed>
			<speed>1.6</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>


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

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

<bullet label="EX_boss_bullet_6_1">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>20</width><height>16</height>
		<alpha>255</alpha><red>0</red><green>0</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">3.2</speed><term>10</term>
		</changeSpeed>
		<wait>5</wait>

		<eval name="dir">90*$2-($_player_cx%17)*3</eval>
		<repeat><times>20</times>
			<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
			<repeat><times>3</times>
				<fireRef label="EX_boss_fire_6_2"><param>$dir</param><param>$1</param></fireRef>
				<wait>10</wait>
				<evaladd name="dir">-13*$2</evaladd>
			</repeat>
		</repeat>
	</action>
</bullet>

<fire label="EX_boss_fire_6_2">
	<speed>0</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_6_2"><param>$2</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_6_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>32*$1</left><top>0</top><right>32*$1+32</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>235</alpha><red>0</red><green>0</green><blue>0</blue>
	</img>
	<action>
		<wait>60</wait>
		<changeSpeed>
			<speed type="absolute">1.2</speed><term>40</term>
		</changeSpeed>
	</action>
</bullet>

<fire label="stageEX_boss_fire_6_3">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stageEX_boss_bullet_6_3"><param>$2</param></bulletRef>
</fire>

<bullet label="stageEX_boss_bullet_6_3">
	<collision type="sync"><left>-31</left><top>-7</top><right>31</right><bottom>7</bottom></collision>
	<img type="maskadd">
		<file type="dds">largeshot</file>
		<left>0</left><top>0</top><right>256</right><bottom>256</bottom>
		<width>80</width><height>24</height>
		<alpha>255</alpha><red>1</red><green>1</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>
		<repeat><times>-1</times>
		<wait>3</wait>
		<createRef label="stageEX_boss_fire_6_4"></createRef>
		</repeat>

	</action>

</bullet>

<create label="stageEX_boss_fire_6_4">
	<speed type="absolute">0.5</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<objectRef label="stageEX_boss_bullet_6_4"></objectRef>
</create>

<object label="stageEX_boss_bullet_6_4">
	<img type="add">
		<file type="dds">largeshot</file>
		<left>0</left><top>0</top><right>256</right><bottom>256</bottom>
		<width>80</width><height>24</height>
		<alpha>140</alpha><red>100</red><green>100</green><blue>200</blue>
	</img>
	<setDrawLevel><num>20</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<changeColor>
			<alpha>30</alpha><red>1</red><green>1</green><blue>255</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>

	</action>

</object>


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

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

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

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

<!-- 弾幕開始 -->

        <!--ビット１を吐く、90度、初速5.0、15ターン後に8ターン使って1.25に減速-->
	<createRef label="stageEX_bossTmp04_createWORM">
	<param>4</param>	<!--高速移動速度-->
	<param>1</param>	<!--同期攻撃の待ち時間-->
	<param>5</param>	<!--同期攻撃の最初は時計周り？反時計周り？-->
        <param>0</param>        <!--攻撃１の待ち時間-->
        <param>1</param>        <!--初弾の向き-->
        <param>0</param>        <!--攻撃２の待ち時間-->
	</createRef>
        <wait>1</wait>
	<createRef label="stageEX_bossTmp04_createWORM">
	<param>-4</param>	<!--高速移動速度-->
	<param>1</param>	<!--同期攻撃の待ち時間-->
	<param>-5</param>	<!--同期攻撃の最初は時計周り？反時計周り？-->
        <param>30</param>       <!--攻撃１の待ち時間-->
        <param>-1</param>       <!--初弾の向き-->
        <param>90</param>       <!--攻撃２の待ち時間-->
	</createRef>
        <wait>22</wait>

        <eval name="MOVEARG">0</eval>
        <repeat><times>4</times>
        <!--480+480フレームで１ループ-->
        <!--攻撃１：一直線の剣戟→狙い弾×２、移動、攻撃をもっかい-->
                <!--予備動作-->
		<actionRef label="boss_sword"></actionRef>
                <createRef label="stageEX_bossTmp04_enemy_LASERcreate_A">
                <param>-60</param><param>$_self_cx</param><param>$_self_cy</param>
                </createRef>
                <wait>60</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>0</param>
                <param>120</param>
                </createRef>
                <wait>1</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>-180</param>
                <param>120</param>
                </createRef>
                <wait>29</wait>

                <!--予備動作-->
		<actionRef label="boss_sword"></actionRef>
                <createRef label="stageEX_bossTmp04_enemy_LASERcreate_A">
                <param>60</param><param>$_self_cx</param><param>$_self_cy</param>
                </createRef>
                <wait>60</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>0</param>
                <param>120</param>
                </createRef>
                <wait>1</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>180</param>
                <param>120</param>
                </createRef>
                <wait>9</wait>

                <!--移動、予定では50フレ-->
                <actionRef label="stageEX_bossTmp04_MOVE">
                <param>$MOVEARG</param>
                </actionRef>
                <eval name="MOVEARG">1-$MOVEARG</eval>

                <!--予備動作-->
		<actionRef label="boss_sword"></actionRef>
                <createRef label="stageEX_bossTmp04_enemy_LASERcreate_A">
                <param>-60</param><param>$_self_cx</param><param>$_self_cy</param>
                </createRef>
                <wait>60</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>0</param>
                <param>120</param>
                </createRef>
                <wait>1</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>180</param>
                <param>120</param>
                </createRef>
                <wait>29</wait>

                <!--予備動作-->
		<actionRef label="boss_sword"></actionRef>
                <createRef label="stageEX_bossTmp04_enemy_LASERcreate_A">
                <param>60</param><param>$_self_cx</param><param>$_self_cy</param>
                </createRef>
                <wait>60</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>0</param>
                <param>120</param>
                </createRef>
                <wait>1</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
                <createRef label="stageEX_bossTmp04_fireWAVE">
                <param>180</param>
                <param>120</param>
                </createRef>

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

                <wait>119-3</wait>
                <!--ここで攻撃パターンが変わることを示す動作みたいなのがほしい-->


        <!--攻撃２：バラマキ、オプションの攻撃１を強化したヤツ-->
                <actionRef label="stageEX_bossTmp04_subAction">
                <param>90</param><!--firstOFFSET-->
                <param>-90/8</param><!--smallOFFSET-->
                <param>90/16</param><!--分裂弾オフセット-->
                </actionRef>

                <!--移動、予定では50フレ-->
                <actionRef label="stageEX_bossTmp04_MOVE">
                <param>$MOVEARG</param>
                </actionRef>
                <eval name="MOVEARG">1-$MOVEARG</eval>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->

                <wait>10-3</wait>

                <actionRef label="stageEX_bossTmp04_subAction">
                <param>-67.5</param><!--firstOFFSET-->
                <param>90/8</param><!--smallOFFSET-->
                <param>-90/18</param><!--分裂弾オフセット-->
                </actionRef>
                <actionRef label="stageEX_bossTmp04_subAction">
                <param>45</param><!--firstOFFSET-->
                <param>-90/10</param><!--smallOFFSET-->
                <param>90/20</param><!--分裂弾オフセット-->
                </actionRef>

                <!--移動、予定では50フレ-->
                <actionRef label="stageEX_bossTmp04_MOVE">
                <param>$MOVEARG</param>
                </actionRef>
                <eval name="MOVEARG">1-$MOVEARG</eval>
                <wait>10</wait>

                <actionRef label="stageEX_bossTmp04_subAction">
                <param>-22.5</param><!--firstOFFSET-->
                <param>90/10</param><!--smallOFFSET-->
                <param>-90/20</param><!--分裂弾オフセット-->
                </actionRef>
                <wait>80</wait>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->
                <wait>80-3</wait>
                <!--ここで攻撃パターンが変わることを示す動作みたいなのがほしい-->
                
        <wait>1</wait>
        </repeat>

<wait>120</wait>

<targetRevenge label="stageEX_boss_enemy2"></targetRevenge>

</action>

<action label="stageEX_bossTmp04_MOVE">
        <repeat><times>$1</times>
                <changeDirection>
                        <direction type="relative">180</direction><term>1</term>
                </changeDirection>
        </repeat>
        <repeat><times>1-$1</times>
                <eval name="DIROFFSET">90</eval>

                <repeat><times>$_self_cx-gt$_player_cx</times>
                        <eval name="DIROFFSET">-90</eval>
                </repeat>
                <changeDirection>
                        <direction type="aim">$DIROFFSET</direction><term>1</term>
                </changeDirection>
        </repeat>
                <changeSpeed>
                        <speed>2.0</speed><term>10</term>
                </changeSpeed>
                <wait>40</wait>
                <changeSpeed>
                        <speed>0.0</speed><term>10</term>
                </changeSpeed>
                <wait>10</wait>

</action>

<action label="stageEX_bossTmp04_subAction">
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
        <fireRef label="stageEX_bossTmp04_fire06A">
        <param>$1</param>
        <param>2.1</param>
        <param>$3</param>
        </fireRef>
        <fireRef label="stageEX_bossTmp04_fire06B">
        <param>$2</param>
        <param>1.4</param>
        <param>-1*$3</param>
        </fireRef>
        <wait>2</wait>
        <repeat><times>8</times>
                <fireRef label="stageEX_bossTmp04_fire06B">
                <param>$2</param>
                <param>2.1</param>
                <param>$3</param>
                </fireRef>
                <fireRef label="stageEX_bossTmp04_fire06B">
                <param>$2</param>
                <param>1.4</param>
                <param>-1*$3</param>
                </fireRef>
                <wait>2</wait>
        </repeat>
        <fireRef label="stageEX_bossTmp04_fire06A">
        <param>-1*$1</param>
        <param>1.4</param>
        <param>-1*$3</param>
        </fireRef>
        <fireRef label="stageEX_bossTmp04_fire06B">
        <param>-1*$2</param>
        <param>2.1</param>
        <param>$3</param>
        </fireRef>
        <wait>2</wait>
        <repeat><times>8</times>
                <fireRef label="stageEX_bossTmp04_fire06B">
                <param>-1*$2</param>
                <param>1.4</param>
                <param>-1*$3</param>
                </fireRef>
                <fireRef label="stageEX_bossTmp04_fire06B">
                <param>-1*$2</param>
                <param>2.1</param>
                <param>$3</param>
                </fireRef>
                <wait>2</wait>
        </repeat>
        <wait>14</wait>
</action>

<create label="stageEX_bossTmp04_createWORM">
	<speed>$1</speed>
	<direction type="absolute">90</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<child>1</child>
	<objectRef label="stageEX_bossTmp04_enemyWORM">
	<param>$2</param>
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	<param>$6</param>
        </objectRef>
</create>

<object label="stageEX_bossTmp04_enemyWORM">
	<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>205</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

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

	<action>
	<wait>5</wait>
	<changeSpeed>
	<speed>$1/10</speed><term>8</term>
	</changeSpeed>
	<wait>18</wait>
	<!--基本的に攻撃は見えない弾が追尾して行うこととする-->
	<wait>$3</wait>

	<repeat><times>-1</times>
		<changeSpeed>
		<speed>$1/4</speed><term>120</term>
		</changeSpeed>

		<repeat><times>($_self_cx-gt320)</times>
			<eval name="DIRECT">-80-($_player_cx%21)</eval>
			<evaladd name="DIRECT">($_self_cy-lt40)*(-20)+($_self_cy-gt120)*20</evaladd>
		</repeat>
		<repeat><times>1-($_self_cx-gt320)</times>
			<eval name="DIRECT">80+($_player_cy%21)</eval>
			<evaladd name="DIRECT">($_self_cy-lt40)*20+($_self_cy-gt120)*(-20)</evaladd>
		</repeat>

		<changeDirection>
		<direction type="absolute">$DIRECT</direction>
		<term>1</term>
		</changeDirection>

<!--		<wait>480</wait> -->
		<wait>1</wait>
		<actionRef label="stageEX_bossTmp04_WORM_action1"><param>$3</param><param>$4</param><param>$5</param></actionRef>

		<changeSpeed>
		<speed>0</speed><term>60</term>
		</changeSpeed>

		<wait>119</wait>

		<actionRef label="stageEX_bossTmp04_WORM_action2"><param>$3</param><param>$4</param><param>$5</param><param>$1</param><param>$2</param></actionRef>

<!--		<wait>480</wait> -->
	</repeat>

	</action>
</object>

<action label="stageEX_bossTmp04_WORM_action1">
<!-- wait 360 -->
	<eval name="FIRSTOFFSET">90</eval>
	<eval name="SMALLOFFSET">-90/8</eval>
	<eval name="NEXTBUL">8</eval>
	<repeat><times>3</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="stageEX_bossTmp04_fire01A">
		<param>$FIRSTOFFSET*$2</param>
		<param>1.8</param>
		</fireRef>

		<fireRef label="stageEX_bossTmp04_fire01B">
		<param>$SMALLOFFSET*$2</param>
		<param>1.2</param>
		</fireRef>
		<wait>4</wait>
		<repeat><times>7</times>
			<evaladd name="NEXTBUL">8</evaladd>
			<fireRef label="stageEX_bossTmp04_fire01B">
			<param>$SMALLOFFSET*$2</param>
			<param>1.8</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp04_fire01B">
			<param>$SMALLOFFSET*$2</param>
			<param>1.2</param>
			</fireRef>
			<wait>4</wait>
		</repeat>
		<wait>28</wait>

		<eval name="NEXTBUL">8</eval>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="stageEX_bossTmp04_fire01A">
		<param>-1*$FIRSTOFFSET*$2</param>
		<param>1.8</param>
		</fireRef>

		<fireRef label="stageEX_bossTmp04_fire01B">
		<param>-1*$SMALLOFFSET*$2</param>
		<param>1.2</param>
		</fireRef>
		<wait>4</wait>
		<repeat><times>7</times>
			<evaladd name="NEXTBUL">8</evaladd>
			<fireRef label="stageEX_bossTmp04_fire01B">
			<param>-1*$SMALLOFFSET*$2</param>
			<param>1.8</param>
			</fireRef>
			<fireRef label="stageEX_bossTmp04_fire01B">
			<param>-1*$SMALLOFFSET*$2</param>
			<param>1.2</param>
			</fireRef>
			<wait>4</wait>
		</repeat>
		<wait>28</wait>
		<evaladd name="FIRSTOFFSET">-30</evaladd>
		<evaladd name="SMALLOFFSET">-90/256</evaladd>
	</repeat>
	<!--ここで攻撃パターンが変わることを示す動作みたいなのがほしい-->

</action>

<action label="stageEX_bossTmp04_WORM_action2">
<!-- wait 480 -->
	<!--攻撃２：小型の衝撃波(本体の攻撃１のマイナーバージョン)を交互に計３発-->
	<!--予備動作-->
	<actionRef label="boss_sword"></actionRef>
	<createRef label="stageEX_bossTmp04_enemy_LASERcreate_A">
	<param>65*$2</param><param>$_self_cx</param><param>$_self_cy</param>
	</createRef>
	<wait>60</wait>
	<wait>($3-$1)</wait>
	<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
	<createRef label="stageEX_bossTmp04_fireWAVEB">
	<param>0</param><param>120</param><param>$_self_cx</param><param>$_self_cy</param>
	</createRef>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
	<createRef label="stageEX_bossTmp04_fireWAVEB">
	<param>180</param><param>120</param><param>$_self_cx</param><param>$_self_cy</param>
	</createRef>
	<wait>120-1</wait>

	<!--予備動作-->
	<actionRef label="boss_sword"></actionRef>
	<createRef label="stageEX_bossTmp04_enemy_LASERcreate_A">
	<param>-65*$2</param><param>$_self_cx</param><param>$_self_cy</param>
	</createRef>
	<wait>60</wait>
	<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
	<createRef label="stageEX_bossTmp04_fireWAVEB">
	<param>0</param><param>120</param><param>$_self_cx</param><param>$_self_cy</param>
	</createRef>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
	<createRef label="stageEX_bossTmp04_fireWAVEB">
	<param>180</param><param>120</param><param>$_self_cx</param><param>$_self_cy</param>
	</createRef>


	<changeSpeed>
	<speed>$4/2</speed><term>120</term>
	</changeSpeed>

		<repeat><times>($_self_cx-gt320)</times>
			<eval name="DIRECT">-80-($_player_cx%21)</eval>
			<evaladd name="DIRECT">($_self_cy-lt40)*(-20)+($_self_cy-gt120)*20</evaladd>
		</repeat>
		<repeat><times>1-($_self_cx-gt320)</times>
			<eval name="DIRECT">80+($_player_cy%21)</eval>
			<evaladd name="DIRECT">($_self_cy-lt40)*20+($_self_cy-gt120)*(-20)</evaladd>
		</repeat>

		<changeDirection>
		<direction type="absolute">$DIRECT</direction>
		<term>1</term>
		</changeDirection>

        <wait>240-$3+$1</wait>

</action>



<fire label="stageEX_bossTmp04_fire01A">
        <speed>$2*3</speed>
        <direction type="aim">$1</direction>
	<bulletRef label="stageEX_bossTmp04_Bullet01">
        <param>$2</param>
	</bulletRef>

</fire>

<fire label="stageEX_bossTmp04_fire01B">
        <speed>$2*3</speed>
        <direction type="sequence">$1</direction>
	<bulletRef label="stageEX_bossTmp04_Bullet01">
        <param>$2</param>
	</bulletRef>
</fire>
<bullet label="stageEX_bossTmp04_Bullet01">
	<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>32</red><green>64</green><blue>240</blue>
	</img>
	<action>
                <changeSpeed>
                <speed>$1</speed><term>10</term>
                </changeSpeed>
      	</action>
</bullet>


<create label="stageEX_bossTmp04_fireWAVE">
        <direction type="sequence">$1</direction>
        <speed>5.4</speed>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
        <enemyRef label="stageEX_bossTmp04_bulletWAVE">
        <param>$2</param>
        </enemyRef>
</create>

<enemy label="stageEX_bossTmp04_bulletWAVE">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>24</width><height>24</height>
		<alpha>255</alpha><red>224</red><green>224</green><blue>224</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>

                <eval name="WAITD">$1</eval>
                <repeat><times>-1</times>
                        <fireRef label="stageEX_bossTmp04_fire03">
                        <param>$WAITD</param>
                        </fireRef>
                        <evaladd name="WAITD">-6</evaladd>
                        <wait>6</wait>
                </repeat>
	</action>
</enemy>


<fire label="stageEX_bossTmp04_fire03">
        <speed>0</speed>
        <direction>0</direction>
        <bulletRef label="stageEX_bossTmp04_bullet03">
        <param>$1</param>
        </bulletRef>
</fire>
<bullet label="stageEX_bossTmp04_bullet03">
	<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>224</red><green>224</green><blue>64</blue>
	</img>

	<action>
                <wait>1</wait>
                <fireRef label="stageEX_bossTmp04_fire04">
                <param>$1-1</param>
                <param>40</param>
                <param>2.4</param>
                <param>32</param>
                <param>224</param>
                <param>64</param>
                </fireRef>
                <wait>1</wait>
                <fireRef label="stageEX_bossTmp04_fire04">
                <param>$1-2</param>
                <param>20</param>
                <param>4.0</param>
                <param>224</param>
                <param>64</param>
                <param>32</param>
                </fireRef>
                <wait>1</wait>
                <fireRef label="stageEX_bossTmp04_fire04">
                <param>$1-3</param>
                <param>-40</param>
                <param>2.4</param>
                <param>32</param>
                <param>224</param>
                <param>64</param>
                </fireRef>
                <wait>1</wait>
                <fireRef label="stageEX_bossTmp04_fire04">
                <param>$1-4</param>
                <param>-20</param>
                <param>4.0</param>
                <param>224</param>
                <param>64</param>
                <param>32</param>
                </fireRef>

                <wait>$1-4</wait>
                <changeDirection>
                        <direction type="aim">0</direction><term>1</term>
                </changeDirection>
                <changeSpeed>
                        <speed>2.4</speed><term>60</term>
                </changeSpeed>
	</action>
</bullet>
<fire label="stageEX_bossTmp04_fire04">
        <speed>0</speed>
        <direction>0</direction>
        <bulletRef label="stageEX_bossTmp04_bullet04">
        <param>$1</param>
        <param>$2</param>
        <param>$3</param>
        <param>$4</param>
        <param>$5</param>
        <param>$6</param>
        </bulletRef>
</fire>

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

	<action>
                <wait>$1</wait>
                <changeDirection>
                        <direction type="aim">$2</direction><term>1</term>
                </changeDirection>
                <changeSpeed>
                        <speed>$3</speed><term>60</term>
                </changeSpeed>
                <wait>-1</wait>
	</action>
</bullet>


<create label="stageEX_bossTmp04_fireWAVEB">
        <direction type="sequence">$1</direction>
        <speed>5.4</speed>
	<cx>$3</cx><cy>$4</cy>
	<vital>1</vital>
	<child>1</child>
        <enemyRef label="stageEX_bossTmp04_bulletWAVEB">
        <param>$2</param>
        </enemyRef>
</create>

<enemy label="stageEX_bossTmp04_bulletWAVEB">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>24</width><height>24</height>
		<alpha>255</alpha><red>224</red><green>224</green><blue>224</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>

                <eval name="WAITD">$1</eval>
                <repeat><times>16</times>
                        <fireRef label="stageEX_bossTmp04_fire05">
                        <param>$WAITD</param>
                        </fireRef>
                        <evaladd name="WAITD">-7</evaladd>
                        <wait>7</wait>
                </repeat>
	</action>
</enemy>
<fire label="stageEX_bossTmp04_fire05">
        <speed>0</speed>
        <direction>0</direction>
        <bulletRef label="stageEX_bossTmp04_bullet05">
        <param>$1</param>
        </bulletRef>
</fire>
<bullet label="stageEX_bossTmp04_bullet05">
	<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>32</red><green>64</green><blue>240</blue>
	</img>

	<action>
                <wait>1</wait>

                <fireRef label="stageEX_bossTmp04_fire05B">
                <param>$1-1</param>
                <param>30</param>
                <param>2.0</param>
                </fireRef>
                <fireRef label="stageEX_bossTmp04_fire05B">
                <param>$1-1</param>
                <param>-30</param>
                <param>2.0</param>
                </fireRef>

                <wait>$1</wait>
                <changeDirection>
                        <direction type="aim">0</direction><term>1</term>
                </changeDirection>
                <changeSpeed>
                        <speed>3.6</speed><term>60</term>
                </changeSpeed>
	</action>
</bullet>

<fire label="stageEX_bossTmp04_fire05B">
        <speed>0</speed>
        <direction>0</direction>
        <bulletRef label="stageEX_bossTmp04_bullet05B">
        <param>$1</param>
        <param>$2</param>
        <param>$3</param>
        </bulletRef>
</fire>
<bullet label="stageEX_bossTmp04_bullet05B">
	<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>32</red><green>160</green><blue>224</blue>
	</img>

	<action>
                <wait>$1</wait>
                <changeDirection>
                        <direction type="aim">$2</direction><term>1</term>
                </changeDirection>
                <changeSpeed>
                        <speed>$3</speed><term>60</term>
                </changeSpeed>
	</action>
</bullet>

<fire label="stageEX_bossTmp04_fire06A">
        <speed>$2*3</speed>
        <direction type="aim">$1</direction>
        <bulletRef label="stageEX_bossTmp04_bullet06">
        <param>$2</param>
        <param>$3</param>
        </bulletRef>
</fire>
<fire label="stageEX_bossTmp04_fire06B">
        <speed>$2*3</speed>
        <direction type="sequence">$1</direction>
        <bulletRef label="stageEX_bossTmp04_bullet06">
        <param>$2</param>
        <param>$3</param>
        </bulletRef>
</fire>
<bullet label="stageEX_bossTmp04_bullet06">
	<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>240</red><green>128</green><blue>64</blue>
	</img>

	<action>
                <changeSpeed>
                        <speed>$1</speed><term>10</term>
                </changeSpeed>
                <wait>20</wait>
                <fireRef label="stageEX_bossTmp04_fire07">
                <param>$1*0.75</param>
                <param>$2</param>
                </fireRef>
	</action>
</bullet>

<fire label="stageEX_bossTmp04_fire07">
        <speed>0</speed>
        <direction type="relative">$2</direction>
        <bulletRef label="stageEX_bossTmp04_bullet07">
        <param>$1</param>
        </bulletRef>
</fire>
<bullet label="stageEX_bossTmp04_bullet07">
	<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>64</red><green>240</green><blue>64</blue>
	</img>

	<action>
                <changeSpeed>
                        <speed>$1</speed><term>60</term>
                </changeSpeed>
	</action>
</bullet>

<create label="stageEX_bossTmp04_enemy_LASERcreate_A">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>1</vital>
	<enemyRef label="stageEX_bossTmp04_enemy_LASEREnemy"></enemyRef>
</create>
<create label="stageEX_bossTmp04_enemy_LASERcreate_B">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>1</vital>
	<enemyRef label="stageEX_bossTmp04_enemy_LASEREnemy"><param>$4</param><param>$5</param></enemyRef>
</create>

<enemy label="stageEX_bossTmp04_enemy_LASEREnemy">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="maskadd">
		<file type="dds">laser64_1</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>2</width><height>980</height>
		<alpha>32</alpha><red>240</red><green>240</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

	<action>
		<changeColor>
			<alpha>180</alpha><red>240</red><green>240</green><blue>255</blue><term>14</term>
		</changeColor>
		<wait>60</wait>
		<wait>60</wait>


		<changeColor>
			<alpha>32</alpha><red>240</red><green>240</green><blue>255</blue><term>100</term>
		</changeColor>

		<wait>100</wait>

		<vanish/>
	</action>
</enemy>

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

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

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

	<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>
<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
<fireRef label="EX_boss_fire_8_1"><param>8-($_player_cx%17)-120</param></fireRef>
<repeat><times>4</times>
	<fireRef label="EX_boss_fire_8_1_s"><param>8</param></fireRef>
</repeat>
<repeat><times>5</times>
	<wait>1</wait>
	<repeat><times>8</times>
		<fireRef label="EX_boss_fire_8_1_s"><param>8</param></fireRef>
	</repeat>
</repeat>
<wait>5</wait>
<repeat><times>5</times>
<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
<repeat><times>2</times>
	<fireRef label="EX_boss_fire_8_1_s"><param>8+3</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_8_1_s"><param>8</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="EX_boss_fire_8_1_s"><param>8</param></fireRef>
		</repeat>
	</repeat>
	<wait>5</wait>
	<fireRef label="EX_boss_fire_8_1_s"><param>8+6</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_8_1_s"><param>8</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<repeat><times>8</times>
			<fireRef label="EX_boss_fire_8_1_s"><param>8</param></fireRef>
		</repeat>
	</repeat>
	<wait>5</wait>
</repeat>
</repeat>

<wait>5</wait>
<eval name="rel_dir">1-2*($_player_cx%2)</eval>
<wait>10</wait>
<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
<fireRef label="EX_boss_fire_8_2"><param>-64</param><param>$rel_dir</param></fireRef>
<repeat><times>3</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>2</param><param>$rel_dir</param></fireRef>
</repeat>
<fireRef label="EX_boss_fire_8_2_s"><param>6</param><param>$rel_dir</param></fireRef>
<repeat><times>3</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>2</param><param>$rel_dir</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>14</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>6</param><param>$rel_dir</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="EX_boss_fire_8_2_s"><param>2</param><param>$rel_dir</param></fireRef>
	</repeat>
	<fireRef label="EX_boss_fire_8_2_s"><param>6</param><param>$rel_dir</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="EX_boss_fire_8_2_s"><param>2</param><param>$rel_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
</repeat>
<wait>4</wait>
<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
<fireRef label="EX_boss_fire_8_2_s"><param>64</param><param>-1*$rel_dir</param></fireRef>
<repeat><times>3</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>-2</param><param>-1*$rel_dir</param></fireRef>
</repeat>
<fireRef label="EX_boss_fire_8_2_s"><param>-6</param><param>-1*$rel_dir</param></fireRef>
<repeat><times>3</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>-2</param><param>-1*$rel_dir</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>14</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>-6</param><param>-1*$rel_dir</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="EX_boss_fire_8_2_s"><param>-2</param><param>-1*$rel_dir</param></fireRef>
	</repeat>
	<fireRef label="EX_boss_fire_8_2_s"><param>-6</param><param>-1*$rel_dir</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="EX_boss_fire_8_2_s"><param>-2</param><param>-1*$rel_dir</param></fireRef>
	</repeat>
	<wait>1</wait>
</repeat>

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

<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
<fireRef label="EX_boss_fire_8_2_ab"><param>8-($_player_cx%17)-120</param><param>$rel_dir</param></fireRef>
<repeat><times>4</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>9</param><param>$rel_dir</param></fireRef>
</repeat>
<repeat><times>5</times>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_8_2_s"><param>9</param><param>$rel_dir</param></fireRef>
	</repeat>
</repeat>
<wait>5</wait>
<repeat><times>5</times>
<actionRef label="enemy_bullet_action8"><param>32</param><param>$rel_dir</param></actionRef>
<repeat><times>2</times>
	<fireRef label="EX_boss_fire_8_2_s"><param>9+5</param><param>$rel_dir</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_8_2_s"><param>9</param><param>$rel_dir</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="EX_boss_fire_8_2_s"><param>9</param><param>$rel_dir</param></fireRef>
		</repeat>
	</repeat>
	<wait>5</wait>
	<fireRef label="EX_boss_fire_8_2_s"><param>9+7</param><param>$rel_dir</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_8_2_s"><param>9</param><param>$rel_dir</param></fireRef>
	</repeat>
	<repeat><times>5</times>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="EX_boss_fire_8_2_s"><param>9</param><param>$rel_dir</param></fireRef>
		</repeat>
	</repeat>
	<wait>5</wait>
</repeat>
</repeat>
<wait>22</wait>
<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
<fireRef label="EX_boss_fire_8_1"><param>-64</param></fireRef>
<repeat><times>4</times>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_8_1_s"><param>4</param></fireRef>
</repeat>
<wait>1</wait>
</repeat>
<wait>15-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

</repeat>

<wait>120</wait>

<targetRevenge label="stageEX_boss_enemy2"></targetRevenge>

</action>


<fire label="EX_boss_fire_8_1">
	<speed>3.3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_8_1"></bulletRef>
</fire>

<fire label="EX_boss_fire_8_1_ab">
	<speed>3.3</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_8_1"></bulletRef>
</fire>
<fire label="EX_boss_fire_8_1_s">
	<speed>3.3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_8_1"></bulletRef>
</fire>

<bullet label="EX_boss_bullet_8_1">

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

<fire label="EX_boss_fire_8_2">
	<speed>2.8</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_8_1"><param>$2</param></bulletRef>
</fire>

<fire label="EX_boss_fire_8_2_ab">
	<speed>2.8</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_8_2"><param>$2</param></bulletRef>
</fire>
<fire label="EX_boss_fire_8_2_s">
	<speed>2.8</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_8_2"><param>$2</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_8_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>0</red><green>0</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>

		<changeDirection>
			<direction type="relative">60*$1</direction><term>30</term>
		</changeDirection>
	</action>

</bullet>




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

<enemy label="stageEX_boss_enemy3_dummy">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>29</radius></collision>
</enemy>

<action  label="stageEX_boss_09_action">
<!-- センターポイントへ移動 -->
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">1.0</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>30</wait>

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

<wait>10</wait>
<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>30</radius></collision>
<createRef label="stageEX_boss_09_create_dummy"></createRef>

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

	<repeat><times>30</times>

	<eval name="dir">0</eval>
	<wait>4</wait>
		
	<repeat><times>2</times>
		<fireRef label="EX_boss_fire_10_2"><param>7</param><param>$dir</param><param>$sp</param></fireRef>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<evaladd name="dir">7</evaladd>

		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_2_s"><param>17</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
			<wait>4</wait>
		</repeat>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_2_s"><param>35</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
			<wait>4</wait>
		</repeat>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_2_s"><param>31</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
			<wait>4</wait>
		</repeat>
		</repeat>
		<wait>28</wait>
	</repeat>

	<wait>50</wait>
	<global name="prate_average">$__prate_average+$_prate</global>
	<global name="prate_average_num">$__prate_average_num+1</global>
		<eval name="dir">0</eval>
	<wait>4</wait>
	<wait>10</wait>
		
	<repeat><times>2</times>
		<fireRef label="EX_boss_fire_10_1"><param>7</param><param>$dir</param><param>$sp</param></fireRef>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<evaladd name="dir">7</evaladd>

		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>13</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_1_s"><param>23</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>6</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
		</repeat>
		<wait>6+4</wait>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>13</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_1_s"><param>19</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>6</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
		</repeat>
		<wait>6+6</wait>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>13</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_1_s"><param>22</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>6</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
		</repeat>
		<wait>6+6</wait>
		</repeat>
		<wait>33</wait>
	</repeat>

	<wait>60</wait>

	<eval name="dir">3</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_10_3"><param>0</param><param>$dir</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60</param><param>$sp</param></fireRef>
	<repeat><times>4</times>
	<wait>5</wait>
	<evaladd name="dir">20</evaladd>
	<fireRef label="EX_boss_fire_10_3_s"><param>60+12</param><param>$dir</param><param>60+$dir</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir</param><param>60+$dir</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60+$dir-1</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60+$dir-1</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60+$dir-2</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60+$dir-2</param><param>$sp</param></fireRef>
	</repeat>
	<wait>240</wait>
	<evaladd name="sp">0.05</evaladd>
	</repeat>


	<repeat><times>-1</times>

	<eval name="dir">0</eval>
	<wait>4</wait>
		
	<repeat><times>2</times>
		<fireRef label="EX_boss_fire_10_2"><param>7</param><param>$dir</param><param>$sp</param></fireRef>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>7</times>
			<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<evaladd name="dir">7</evaladd>

		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_2_s"><param>17</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
			<wait>4</wait>
		</repeat>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_2_s"><param>35</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
			<wait>4</wait>
		</repeat>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_2_s"><param>31</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>7</times>
				<fireRef label="EX_boss_fire_10_2_s"><param>24</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
			<wait>4</wait>
		</repeat>
		</repeat>
		<wait>28</wait>
	</repeat>

	<wait>50</wait>
		<eval name="dir">0</eval>
	<wait>4</wait>
	<wait>10</wait>
		
	<repeat><times>2</times>
		<fireRef label="EX_boss_fire_10_1"><param>7</param><param>$dir</param><param>$sp</param></fireRef>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
		</repeat>
		<evaladd name="dir">7</evaladd>

		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>13</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_1_s"><param>23</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>6</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
		</repeat>
		<wait>6+4</wait>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>13</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_1_s"><param>19</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>6</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
		</repeat>
		<wait>6+6</wait>
		</repeat>
		<repeat><times>2</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>13</times>
			<wait>1</wait>
			<fireRef label="EX_boss_fire_10_1_s"><param>21</param><param>$dir</param><param>$sp</param></fireRef>
			<repeat><times>5</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>6</times>
				<fireRef label="EX_boss_fire_10_1_s"><param>30</param><param>$dir</param><param>$sp</param></fireRef>
			</repeat>
			<evaladd name="dir">7</evaladd>
		</repeat>
		<wait>6+6</wait>
		</repeat>
		<wait>32</wait>
	</repeat>

	<wait>60</wait>

	<eval name="dir">3</eval>
	<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
	<fireRef label="EX_boss_fire_10_3"><param>0</param><param>$dir</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60</param><param>$sp</param></fireRef>
	<repeat><times>4</times>
	<wait>5</wait>
	<evaladd name="dir">20</evaladd>
	<fireRef label="EX_boss_fire_10_3_s"><param>60+12</param><param>$dir</param><param>60+$dir</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir</param><param>60+$dir</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60+$dir-1</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-1</param><param>60+$dir-1</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60+$dir-2</param><param>$sp</param></fireRef>
	<fireRef label="EX_boss_fire_10_3_s"><param>60</param><param>$dir-2</param><param>60+$dir-2</param><param>$sp</param></fireRef>
	</repeat>
	<wait>240</wait>
	</repeat>

</action>


<fire label="EX_boss_fire_10_1">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_1"><param>$2</param><param>$3</param></bulletRef>
</fire>
<fire label="EX_boss_fire_10_1_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_1"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_10_1">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>3</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*4</left><top>0</top><right>32*5</right><bottom>32</bottom>
		<width>10</width><height>10</height>
		<alpha>205</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">0.8</speed><term>48</term>
		</changeSpeed>
		<wait>58</wait>
		<changeDirection>
			<direction type="relative">0</direction><term>60</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">2.2+$2</speed><term>80</term>
		</changeSpeed>
	</action>

</bullet>

<fire label="EX_boss_fire_10_2">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_2"><param>$2</param><param>$3</param></bulletRef>
</fire>
<fire label="EX_boss_fire_10_2_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_2"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_10_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>6</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*7</left><top>0</top><right>32*8</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>205</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">0.7</speed><term>48</term>
		</changeSpeed>
		<wait>58</wait>
		<changeDirection>
			<direction type="relative">0</direction><term>60</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.5+$2</speed><term>80</term>
		</changeSpeed>
	</action>

</bullet>

<fire label="EX_boss_fire_10_3">
	<speed>3.2</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_3"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>
<fire label="EX_boss_fire_10_3_s">
	<speed>3.2</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_3"><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_10_3">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>8</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*1</left><top>0</top><right>32*2</right><bottom>32</bottom>
		<width>20</width><height>20</height>
		<alpha>205</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>10</wait>
		<wait>$2</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<fireRef label="EX_boss_fire_10_4"><param>4-($_self_cx+$_self_cy)%9</param><param>6</param><param>$3</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="EX_boss_fire_10_4_s"><param>18</param><param>6</param><param>$3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_10_4_s"><param>18</param><param>5</param><param>$3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_10_4_s"><param>18</param><param>4</param><param>$3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_10_4_s"><param>18</param><param>3</param><param>$3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_10_4_s"><param>18</param><param>2</param><param>$3</param></fireRef>
		</repeat>
		<wait>1</wait>
		<vanish/>
	</action>

</bullet>

<fire label="EX_boss_fire_10_4">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_4"><param>$2</param><param>$3</param></bulletRef>
</fire>
<fire label="EX_boss_fire_10_4_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_10_4"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="EX_boss_bullet_10_4">

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

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

</bullet>





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

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

	<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>1590</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
	</repeat>

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

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


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

	<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>1440</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red2"><param>60</param></actionRef>
	</repeat>

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

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

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

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

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

	<targetRevenge label="enemy_stageEXboss_4_1"/>
	<targetRevenge label="enemy_stageEXboss_4_1_score"/>
	<targetRevenge label="enemy_stageEXboss_4_2"/>
	<targetRevenge label="enemy_stageEXboss_4_2_score"/>

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

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_05"><param>0</param><param>0</param></createRef>
	<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>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>56/2</param><param>$counter_e</param><param>1440</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red2"><param>80</param></actionRef>
	</repeat>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="stageEX_boss_05_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>
<revenge label="stageEX_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>

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

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

	<accel>
		<horizontal>0</horizontal><term>1</term>
		<vertical>0</vertical><term>1</term>
	</accel>
	

	<eval name="localcounter">$_counter</eval>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>

	<wait>1</wait>
	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	
	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

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

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

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

	<wait>1</wait>

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

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="stageEX_boss_07_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>
<revenge label="stageEX_boss_07_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>

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

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


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

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

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


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

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

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

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

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

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

	<wait>1</wait>

	<addScore>
		<score>3000000</score>	
	</addScore>
	<!-- *** アイテムの出現 *** -->
	<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>
		<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>

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

	<repeat><times>$etb_num-eq0</times>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

	<wait>1</wait>

	<!-- 01ばらまき -->
	<actionRef label="break_action"></actionRef>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>3</param><param>0</param></actionRef>
			<createRef label="item_create_01_etb"><param>-30000</param><param>2000000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
			<global name="tension">$__tension+1</global>
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>70/2</param><param>$counter_e</param><param>43*60</param><param>24</param><param>$localcounter</param></actionRef>

	<!-- ドット画像を表示 -->
	<actionRef label="stageEX_boss_appear2"></actionRef>

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

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

</revenge>



<!-- ********************************************************************* -->
<!-- *** 真最終形態はここから始まる                                        *** -->
<action label="stageEX_boss_top_action2">

	<sysvar name="_arg0">74</sysvar><eval name="f74">$_gameflag</eval>			
	<sysvar name="_arg0">75</sysvar><eval name="f75">$_gameflag</eval>			

	<repeat><times>$f74-eq1</times>
	<setSharedVitalNum>
		<num>2</num><vital>2600+$f75*240+($_twinstype-eq2)*400</vital>
	</setSharedVitalNum>
	</repeat>
	<repeat><times>($f74-eq0)+($f74-eq2)</times>
	<setSharedVitalNum>
		<num>2</num><vital>7200+$f75*600+($_twinstype-eq2)*1000+($_twinstype-eq3)*400</vital>
	</setSharedVitalNum>
	</repeat>

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

	<!-- *** 最初のボスオブジェクト作成 *** -->
	<!-- *** enemy tension形態のため、TTC発動、ミスのチェック *** -->
	<repeat><times>$f75</times>
		<global name="ttc_start">$_ttc_frame</global>
		<createRef label="stageEX_boss_10e_create"></createRef>
	</repeat>
	<repeat><times>1-$f75</times>
		<global name="ttc_start">$_ttc_frame</global>
		<createRef label="stageEX_boss_10_create"></createRef>
	</repeat>
	
	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stageEX2"></createRef>

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

<!-- ********************************************************************* -->
<!-- *** 第 １０ 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置が固定であることに注意                                *** -->
<create label="stageEX_boss_10_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>320</cx><cy>160</cy>
	<inv>40</inv>
	<score>5000000</score>
	<flag>16</flag>
	<prate>$__boss_prate5</prate>
	<enemyRef label="stageEX_boss_enemy3"></enemyRef>
</create>


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

	<!-- *** VITAL ゲージはボスの子オブジェクトなのでここで作成 *** -->
	<!-- *** 画面下のボス表示を作成 *** -->
	<shareVital><num>2</num></shareVital>
	<createRef label="boss_vital_create3"></createRef>
	<createRef label="boss_underbar_create2"></createRef>

	<!-- *** 第 N 形態ごとのアクション *** -->
	<global name="prate_average">$__prate_average+$_prate</global>
	<global name="prate_average_num">$__prate_average_num+1</global>
	<actionRef  label="create_timer4"></actionRef>
	<revengeRef label="stageEX_boss_10_revenge"></revengeRef>

	<actionRef  label="stageEX_boss_10_action"></actionRef>
</enemy>

<!-- ********************************************************************* -->
<!-- *** 第 １０ 形態のボスオブジェクト作成                               *** -->
<!-- ***  真真最終                                                         *** -->
<!-- *** 初期位置が固定であることに注意                                *** -->
<create label="stageEX_boss_10e_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>320</cx><cy>160</cy>
	<inv>40</inv>
	<score>10000000</score>
	<flag>16</flag>
	<prate>$__boss_prate5</prate>
	<enemyRef label="stageEX_boss_enemy3e"></enemyRef>
</create>


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

	<!-- *** VITAL ゲージはボスの子オブジェクトなのでここで作成 *** -->
	<!-- *** 画面下のボス表示を作成 *** -->
	<shareVital><num>2</num></shareVital>
	<createRef label="boss_vital_create3"></createRef>
	<createRef label="boss_underbar_create2"></createRef>

	<!-- *** 第 N 形態ごとのアクション *** -->
	<global name="prate_average">$__prate_average+$_prate</global>
	<global name="prate_average_num">$__prate_average_num+1</global>
	<actionRef  label="create_timer4"></actionRef>
	<revengeRef label="stageEX_boss_10e_revenge"></revengeRef>

	<actionRef  label="stageEX_boss_10e_action"></actionRef>
</enemy>



<!-- ********************************************************************* -->
<!-- *** ボスのアクション                                              *** -->
<!-- *** 第１０形態（真最終）                                      *** -->
<action  label="stageEX_boss_10_action">

<wait>50</wait>
<sound label="bgm" type="bgm">
	<track>
		<file type="ogg">23_extraboss2_loop</file>
	</track>
	<play>
		<flag>1</flag><loop>44100*2*2*11</loop>
	</play>
</sound>
<wait>50</wait>
<createRef label="maya_wing_bmp"></createRef>
<wait>80</wait>
<wait>120</wait>



<targetRevenge label="flash_white"/>
<targetRevenge label="maya_particle_org2"/>

<system><command>playermoveenable</command></system>
<wait>60</wait>

<!-- 最終bgm -->
<!--
<sound label="bgm" type="bgm">
	<track>
		<file type="ogg">23_extraboss_loop</file>
	</track>
	<play>
		<flag>1</flag><loop>44100*2*2*4</loop>
	</play>
</sound>
-->
<actionRef label="stageEX_3_bgm_title_action"></actionRef>

<!-- 魔法陣呼び出し -->
<actionRef label="common_maya_effect2"/>
<actionRef label="mahoujin4"><param>190</param><param>185</param><param>10</param><param>30</param></actionRef>
<wait>60</wait>
<global name="ttc_start_check">$_ttc_frame</global>
<global name="miss_start">$_misscount</global>

<!-- 当たり判定 -->
<wait>9</wait>
<createRef label="stageEX_boss2_dummyr"><param>88</param><param>-61</param></createRef>
<createRef label="stageEX_boss2_dummyl"><param>-88</param><param>-61</param></createRef>
<!-- <createRef label="stageEX_boss2_dummyr2"><param>118+15</param><param>-64</param></createRef> -->
<!-- <createRef label="stageEX_boss2_dummyl2"><param>-118-15</param><param>-64</param></createRef> -->
<collision type="rect"><left>-60</left><top>-30</top><right>60</right><bottom>20</bottom></collision>
<global name="counter_tmp">$_counter</global>
<wait>1</wait>
<!-- ダミー判定用 -->
<createRef label="stageEX_boss2_dummy2r"><param>88</param><param>-61</param></createRef>
<createRef label="stageEX_boss2_dummy2l"><param>-88</param><param>-61</param></createRef>
<!-- <createRef label="stageEX_boss2_dummy2r2"><param>118+15</param><param>-64</param></createRef> -->
<!-- <createRef label="stageEX_boss2_dummy2l2"><param>-118-15</param><param>-64</param></createRef> -->
<createRef label="stageEX_boss2_dummy3"></createRef>
<wait>10</wait>

<wait>29</wait>
<eval name="times_ct">2</eval>
<wait>1</wait>

<!-- 弾幕開始 -->
<!-- 1〜3回目 -->
<repeat><times>3</times>
<createRef label="stageEX_boss_create_9_1"><param>0</param><param>3</param><param>20</param></createRef>
<repeat><times>4</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>36</param><param>3</param><param>20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>36</param><param>2</param><param>20</param></createRef>
</repeat>

<wait>5</wait>
	<global name="prate_average">$__prate_average+$_prate</global>
	<global name="prate_average_num">$__prate_average_num+1</global>
<wait>5</wait>

<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>13</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>300-25*$times_ct</wait>


<createRef label="stageEX_boss_create_9_2"><param>36</param><param>3</param><param>-20</param></createRef>
<repeat><times>4</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>36</param><param>3</param><param>-20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>36</param><param>2</param><param>-20</param></createRef>
</repeat>

<wait>10</wait>
<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>280-25*$times_ct</wait>

<eval name="l_sp">1.6+0.05*($times_ct-1)</eval>
<eval name="f_sp">3.1+0.05*($times_ct-1)</eval>
<wait>10</wait>

<repeat><times>2</times>
	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_3"><param>-90+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-12+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-12+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
	</repeat>
	<wait>22</wait>
	</repeat>

	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_4"><param>267+($_player_cx%7)+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_4_s"><param>13+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>10</times>
	<wait>1</wait>
	<eval name="times_ct2">0</eval>
	<fireRef label="EX_boss_fire_9_4_s"><param>13+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>
	<wait>60</wait>
</repeat>
	<wait>30</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5"><param>0</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<repeat><times>$times_ct-gt1</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt2</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt4</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

<wait>50-($times_ct-1)*11</wait>
<evaladd name="times_ct">1</evaladd>
<wait>3</wait>
</repeat>


<repeat><times>20</times>
<createRef label="stageEX_boss_create_9_1"><param>0</param><param>3</param><param>20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>3</param><param>20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>2</param><param>20</param></createRef>
</repeat>

<wait>5</wait>
	<global name="prate_average">$__prate_average+$_prate</global>
	<global name="prate_average_num">$__prate_average_num+1</global>
<wait>5</wait>

<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>13</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>300-25*$times_ct</wait>


<createRef label="stageEX_boss_create_9_2"><param>30</param><param>3</param><param>-20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>3</param><param>-20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>2</param><param>-20</param></createRef>
</repeat>

<wait>10</wait>
<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>280-25*$times_ct</wait>

<eval name="l_sp">1.6+0.05*($times_ct-1)</eval>
<eval name="f_sp">3.1+0.05*($times_ct-1)</eval>
<wait>10</wait>

<repeat><times>2</times>
	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_3"><param>-90+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-12+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-12+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
	</repeat>
	<wait>22</wait>
	</repeat>

	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_4"><param>267+($_player_cx%7)+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_4_s"><param>13+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>10</times>
	<wait>1</wait>
	<eval name="times_ct2">0</eval>
	<fireRef label="EX_boss_fire_9_4_s"><param>13+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>
	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>
	<wait>60</wait>
</repeat>
	<wait>30</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5"><param>0</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<repeat><times>$times_ct-gt1</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt2</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt4</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

<wait>50-($times_ct-1)*11</wait>
<wait>3</wait>
</repeat>

<repeat><times>-1</times>
<createRef label="stageEX_boss_create_9_1"><param>0</param><param>3</param><param>20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>3</param><param>20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>2</param><param>20</param></createRef>
</repeat>

<wait>5</wait>
<wait>5</wait>

<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>13</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>300-25*$times_ct</wait>


<createRef label="stageEX_boss_create_9_2"><param>30</param><param>3</param><param>-20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>3</param><param>-20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>2</param><param>-20</param></createRef>
</repeat>

<wait>10</wait>
<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>280-25*$times_ct</wait>

<eval name="l_sp">1.6+0.05*($times_ct-1)</eval>
<eval name="f_sp">3.1+0.05*($times_ct-1)</eval>
<wait>10</wait>

<repeat><times>2</times>
	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_3"><param>-90+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-12+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-12+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
	</repeat>
	<wait>22</wait>
	</repeat>

	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_4"><param>267+($_player_cx%7)+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>10</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_4_s"><param>13+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>10</times>
	<wait>1</wait>
	<eval name="times_ct2">0</eval>
	<fireRef label="EX_boss_fire_9_4_s"><param>13+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>
	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>
	<wait>60</wait>
</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5"><param>0</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<repeat><times>$times_ct-gt1</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt2</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt4</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

<wait>50-($times_ct-1)*11</wait>
<wait>3</wait>
</repeat>

</action>


<!-- create -->
<create label="stageEX_boss_create_9_1">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss_enemy_9_1"><param>$2</param><param>$3</param></enemyRef>
</create>

<create label="stageEX_boss_create_9_1_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss_enemy_9_1"><param>$2</param><param>$3</param></enemyRef>
</create>

<enemy label="stageEX_boss_enemy_9_1">
	<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>24</width><height>24</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>32</width><height>32</height><term>30</term>
	</changeImgSize>

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

		<changeSpeed>
			<speed type="absolute">2.2</speed><term>1</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">$2</direction><term>60</term>
		</changeDirection>
		
<!--		<wait>60</wait> -->

		<wait>4</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
		<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
		<wait>4</wait>
		<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
		<wait>4</wait>
		</repeat>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
		<wait>4</wait>
		<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
		<wait>4</wait>
		</repeat>

		<changeSpeed>
			<speed type="absolute">0.2</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">180</direction><term>60</term>
		</changeDirection>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
		<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
		<wait>5</wait>
		<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
		<wait>5</wait>
		</repeat>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
		<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
		<wait>5</wait>
		<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
		<wait>5</wait>
		</repeat>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>2</times>
		<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
		<wait>5</wait>
		<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
		<wait>5</wait>
		</repeat>

		<changeSpeed>
			<speed type="absolute">3.2</speed><term>30</term>
		</changeSpeed>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
		<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
		<wait>4</wait>
		<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
		<wait>4</wait>
		</repeat>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
			<wait>4</wait>
			<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
			<wait>4</wait>
		</repeat>
		<changeDirection>
			<direction type="relative">$2*2</direction><term>120</term>
		</changeDirection>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
		<repeat><times>3</times>
		<fireRef label="EX_boss_fire_9_1"><param>90</param></fireRef>
		<wait>4</wait>
		<fireRef label="EX_boss_fire_9_1"><param>-90</param></fireRef>
		<wait>4</wait>
		</repeat>

	</action>

</enemy>

<fire label="EX_boss_fire_9_1">
	<speed>0.3</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_9_1"></bulletRef>
</fire>

<bullet label="EX_boss_bullet_9_1">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>255</red><green>0</green><blue>0</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>130</wait>
		<changeSpeed>
			<speed type="absolute">2.4</speed><term>100</term>
		</changeSpeed>
	</action>

</bullet>

<create label="stageEX_boss_create_9_2">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<child>1</child>
	<enemyRef label="stageEX_boss_enemy_9_2"><param>$2</param><param>$3</param></enemyRef>
</create>

<create label="stageEX_boss_create_9_2_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss_enemy_9_2"><param>$2</param><param>$3</param></enemyRef>
</create>

<enemy label="stageEX_boss_enemy_9_2">
	<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>24</width><height>24</height>
		<alpha>220</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<changeImgSize>
		<width>32</width><height>32</height><term>30</term>
	</changeImgSize>

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

		<changeSpeed>
			<speed type="absolute">2.6</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">360</direction><term>180</term>
		</changeDirection>
		
		<wait>4</wait>
		<repeat><times>6</times>
		<actionRef label="enemy_bullet_action8"><param>32</param></actionRef>
			<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_2"><param>90</param></fireRef>
			<wait>4</wait>
			<fireRef label="EX_boss_fire_9_2"><param>-90</param></fireRef>
			<wait>4</wait>
			</repeat>
		</repeat>

	</action>
</enemy>

<fire label="EX_boss_fire_9_2">
	<speed>0.3</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="EX_boss_bullet_9_2"></bulletRef>
</fire>

<bullet label="EX_boss_bullet_9_2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>0</red><green>0</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>45</wait>
		<changeSpeed>
			<speed type="absolute">2.6</speed><term>100</term>
		</changeSpeed>
	</action>

</bullet>

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

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

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

<bullet label="EX_boss_bullet_9_3">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
<!--
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>0</red><green>0</green><blue>255</blue>
	</img>
-->
	<img type="maskadd">
		<file type="dds">bullet_ys</file>
		<left>0</left><top>16</top><right>64</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>235</alpha><red>55</red><green>55</green><blue>5</blue>
	</img>

	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>90+90+180</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>60</term>
		</changeSpeed>
	</action>
</bullet>

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

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

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

<bullet label="EX_boss_bullet_9_4">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
<!--
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>255</red><green>0</green><blue>0</blue>
	</img>
-->
	<img type="maskadd">
		<file type="dds">bullet_ys</file>
		<left>0</left><top>16</top><right>64</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>235</alpha><red>255</red><green>255</green><blue>65</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>90+180</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>60</term>
		</changeSpeed>
	</action>
</bullet>

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

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

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

<bullet label="EX_boss_bullet_9_5">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>14</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*$3</left><top>0</top><right>32*$3+32</right><bottom>32</bottom>
		<width>32</width><height>32</height>
		<alpha>225</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">$2</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">$4</direction><term>120</term>
		</changeDirection>

	</action>
</bullet>


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

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

<bullet label="EX_boss_bullet_9_6">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="normal">
		<file type="dds">bullet_ys</file>
		<left>0</left><top>16</top><right>64</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>235</alpha><red>255</red><green>185</green><blue>255</blue>
	</img>

	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>$1</wait>
		<changeSpeed>
			<speed type="absolute">$2</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>

<!-- 真夜最終　翼部分あたり判定（テンション時貫通） -->
<create label="stageEX_boss2_dummyr">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<child>1</child>
	<flag>16</flag>
	<enemyRef label="stageEX_boss2_enemy_dummyr"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummyr">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<shareVital><num>2</num></shareVital>
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>60</radius></collision> -->
	<collision type="rect"><left>-20</left><top>-60</top><right>30</right><bottom>50</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>

<create label="stageEX_boss2_dummyl">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<child>1</child>
	<flag>16</flag>
	<enemyRef label="stageEX_boss2_enemy_dummyl"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummyl">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<shareVital><num>2</num></shareVital>
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>60</radius></collision> -->
	<collision type="rect"><left>-30</left><top>-30</top><right>20</right><bottom>50</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>


<create label="stageEX_boss2_dummyr2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<child>1</child>
	<flag>16</flag>
	<enemyRef label="stageEX_boss2_enemy_dummyr2"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummyr2">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<shareVital><num>2</num></shareVital>
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>60</radius></collision> -->
	<collision type="rect"><left>-7</left><top>-70</top><right>15</right><bottom>40</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>

<create label="stageEX_boss2_dummyl2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<child>1</child>
	<flag>16</flag>
	<enemyRef label="stageEX_boss2_enemy_dummyl2"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummyl2">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<shareVital><num>2</num></shareVital>
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>60</radius></collision> -->
	<collision type="rect"><left>-15</left><top>-40</top><right>7</right><bottom>40</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>

<!-- 真夜最終　翼部分あたり判定（通常） -->
<create label="stageEX_boss2_dummy2l">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<vital>99999999</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss2_enemy_dummy2l"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummy2l">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="rect"><left>-28</left><top>-27</top><right>30</right><bottom>47</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>

<create label="stageEX_boss2_dummy2r">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<vital>99999999</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss2_enemy_dummy2r"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummy2r">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="rect"><left>-30</left><top>-57</top><right>28</right><bottom>47</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>

<create label="stageEX_boss2_dummy2r2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<vital>99999999</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss2_enemy_dummy2r2"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummy2r2">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>60</radius></collision> -->
	<collision type="rect"><left>-15</left><top>-57</top><right>13</right><bottom>47</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>

<create label="stageEX_boss2_dummy2l2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<vital>99999999</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss2_enemy_dummy2l2"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummy2l2">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>60</radius></collision> -->
	<collision type="rect"><left>-13</left><top>-57</top><right>15</right><bottom>47</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>



<create label="stageEX_boss2_dummy3">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>99999999</vital>
	<child>1</child>
	<enemyRef label="stageEX_boss2_enemy_dummy3"></enemyRef>
</create>

<enemy label="stageEX_boss2_enemy_dummy3">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<collision type="rect"><left>-58</left><top>-28</top><right>58</right><bottom>18</bottom></collision>
	<img type="normal">
		<file type="dds">barrier</file>
		<left>0</left><top>0</top><right>0</right><bottom>0</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>
	</action>
</enemy>

<!-- ********************************************************************* -->
<!-- *** ボスのアクション                                              *** -->
<!-- *** 第１０形態（真真最終）                                      *** -->
<action  label="stageEX_boss_10e_action">

<wait>50</wait>
<sound label="bgm" type="bgm">
	<track>
		<file type="ogg">23_extraboss2_loop</file>
	</track>
	<play>
		<flag>1</flag><loop>44100*2*2*11</loop>
	</play>
</sound>
<wait>50</wait>
<createRef label="maya_wing_bmp2"></createRef>
<wait>80</wait>
<wait>120</wait>



<targetRevenge label="flash_white"/>
<targetRevenge label="maya_particle_org2"/>

<system><command>playermoveenable</command></system>
<wait>60</wait>

<!-- 最終bgm -->
<!--
<sound label="bgm" type="bgm">
	<track>
		<file type="ogg">23_extraboss_loop</file>
	</track>
	<play>
		<flag>1</flag><loop>44100*2*2*4</loop>
	</play>
</sound>
-->
<actionRef label="stageEX_3_bgm_title_action"></actionRef>

<!-- 魔法陣呼び出し -->
<actionRef label="common_maya_effect2"/>
<actionRef label="mahoujin5"><param>190</param><param>185</param><param>10</param><param>30</param></actionRef>
<wait>60</wait>
<global name="ttc_start_check">$_ttc_frame</global>
<global name="miss_start">$_misscount</global>

<!-- 当たり判定 -->
<wait>9</wait>
<createRef label="stageEX_boss2_dummyr"><param>88</param><param>-61</param></createRef>
<createRef label="stageEX_boss2_dummyl"><param>-88</param><param>-61</param></createRef>
<!-- <createRef label="stageEX_boss2_dummyr2"><param>118+15</param><param>-64</param></createRef> -->
<!-- <createRef label="stageEX_boss2_dummyl2"><param>-118-15</param><param>-64</param></createRef> -->
<collision type="rect"><left>-60</left><top>-30</top><right>60</right><bottom>20</bottom></collision>
<global name="counter_tmp">$_counter</global>
<wait>1</wait>
<!-- ダミー判定用 -->
<createRef label="stageEX_boss2_dummy2r"><param>88</param><param>-61</param></createRef>
<createRef label="stageEX_boss2_dummy2l"><param>-88</param><param>-61</param></createRef>
<!-- <createRef label="stageEX_boss2_dummy2r2"><param>118+15</param><param>-64</param></createRef> -->
<!-- <createRef label="stageEX_boss2_dummy2l2"><param>-118-15</param><param>-64</param></createRef> -->
<createRef label="stageEX_boss2_dummy3"></createRef>
<wait>10</wait>

<wait>29</wait>
<eval name="times_ct">3</eval>
<wait>1</wait>

<!-- 弾幕開始 -->
<!-- 1〜4回目 -->
<repeat><times>4</times>

<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cx%7)-90</param><param>5</param><param>1.4</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>1.4</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>5-($_player_cx%11)-90</param><param>5</param><param>2.2</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>2.2</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27</wait>

<createRef label="stageEX_boss_create_9_1"><param>0</param><param>3</param><param>20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>3</param><param>20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>2</param><param>20</param></createRef>
</repeat>

<wait>5</wait>
	<global name="prate_average">$__prate_average+$_prate</global>
	<global name="prate_average_num">$__prate_average_num+1</global>
<wait>5</wait>

<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>13</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>

<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cx%7)-90</param><param>5</param><param>1.4</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>1.4</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>5-($_player_cx%11)-90</param><param>5</param><param>2.2</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>2.2</param></fireRef>
</repeat>
<wait>27</wait>
<wait>30</wait>

<wait>300-90-25*$times_ct</wait>

<createRef label="stageEX_boss_create_9_2"><param>30</param><param>3</param><param>-20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>3</param><param>-20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>2</param><param>-20</param></createRef>
</repeat>

<wait>10</wait>
<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>280-30-25*$times_ct</wait>

<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27-3</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>5-($_player_cx%11)-90</param><param>5</param><param>2.2</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>2.2</param></fireRef>
</repeat>


<wait>5</wait>
<eval name="l_sp">1.6+0.05*($times_ct-2)</eval>
<eval name="f_sp">3.1+0.05*($times_ct-2)</eval>
<wait>5</wait>

<repeat><times>2</times>
	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_3"><param>-90+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>

	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_4"><param>267+($_player_cx%7)+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_4_s"><param>15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>13</times>
	<wait>1</wait>
	<eval name="times_ct2">0</eval>
	<fireRef label="EX_boss_fire_9_4_s"><param>15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>
	<wait>90</wait>
</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5"><param>0</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<repeat><times>$times_ct-gt1</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt2</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt4</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

<wait>50-($times_ct-1)*8</wait>
<evaladd name="times_ct">1</evaladd>
<wait>3</wait>
</repeat>


<repeat><times>20</times>

<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cx%7)-90</param><param>5</param><param>1.4</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>1.4</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>5-($_player_cx%11)-90</param><param>5</param><param>2.2</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>2.2</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27</wait>
<createRef label="stageEX_boss_create_9_1"><param>0</param><param>3</param><param>20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>3</param><param>20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>2</param><param>20</param></createRef>
</repeat>

<wait>5</wait>
	<global name="prate_average">$__prate_average+$_prate</global>
	<global name="prate_average_num">$__prate_average_num+1</global>
<wait>5</wait>

<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>13</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>

<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cx%7)-90</param><param>5</param><param>1.4</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>1.4</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>5-($_player_cx%11)-90</param><param>5</param><param>2.2</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>2.2</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27</wait>
<wait>300-90-25*$times_ct</wait>

<createRef label="stageEX_boss_create_9_2"><param>30</param><param>3</param><param>-20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>3</param><param>-20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>2</param><param>-20</param></createRef>
</repeat>

<wait>10</wait>
<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<wait>280-30-25*$times_ct</wait>

<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27</wait>

<eval name="l_sp">1.6+0.05*($times_ct-2)</eval>
<eval name="f_sp">3.1+0.05*($times_ct-2)</eval>
<wait>10</wait>

<repeat><times>2</times>
	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_3"><param>-90+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>

	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_4"><param>267+($_player_cx%7)+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_4_s"><param>15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>13</times>
	<wait>1</wait>
	<eval name="times_ct2">0</eval>
	<fireRef label="EX_boss_fire_9_4_s"><param>15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>
	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>
	<wait>90</wait>
</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5"><param>0</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<repeat><times>$times_ct-gt1</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt2</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt4</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

<wait>50-($times_ct-1)*8</wait>
<wait>3</wait>
</repeat>

<repeat><times>-1</times>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cx%7)-90</param><param>5</param><param>1.4</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>1.4</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>5-($_player_cx%11)-90</param><param>5</param><param>2.2</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>2.2</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27</wait>

<createRef label="stageEX_boss_create_9_1"><param>0</param><param>3</param><param>20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>3</param><param>20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_1_s"><param>30</param><param>2</param><param>20</param></createRef>
</repeat>

<wait>5</wait>
<wait>5</wait>

<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>13</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>7</param><param>10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cx%7)-90</param><param>5</param><param>1.4</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>1.4</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>1.4</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>5-($_player_cx%11)-90</param><param>5</param><param>2.2</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>2.2</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>2.2</param></fireRef>
</repeat>
<wait>27</wait>
<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27</wait>

<wait>300-90-25*$times_ct</wait>


<createRef label="stageEX_boss_create_9_2"><param>30</param><param>3</param><param>-20</param></createRef>
<repeat><times>5</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>3</param><param>-20</param></createRef>
</repeat>
<wait>1</wait>
<repeat><times>6</times>
	<createRef label="stageEX_boss_create_9_2_s"><param>30</param><param>2</param><param>-20</param></createRef>
</repeat>

<wait>10</wait>
<repeat><times>$times_ct</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>3</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>2</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>7</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>18</param><param>1</param><param>2.4</param><param>5</param><param>-10</param></fireRef>
	</repeat>
	<wait>23</wait>
</repeat>

<wait>280-30-25*$times_ct</wait>

<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
<fireRef label="EX_boss_fire_9_6"><param>3-($_player_cy%7)-90</param><param>5</param><param>3</param></fireRef>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>5</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>4</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>7</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>3</param><param>3</param></fireRef>
</repeat>
<wait>1</wait>
<repeat><times>8</times>
	<fireRef label="EX_boss_fire_9_6_s"><param>6</param><param>2</param><param>3</param></fireRef>
</repeat>
<wait>27</wait>

<eval name="l_sp">1.6+0.05*($times_ct-2)</eval>
<eval name="f_sp">3.1+0.05*($times_ct-2)</eval>
<wait>10</wait>

<repeat><times>2</times>
	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_3"><param>-90+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_3_s"><param>-15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_3_s"><param>2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_3_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_3_ss"><param>1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>1</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>

	<eval name="times_ct2">0</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_4"><param>267+($_player_cx%7)+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>

	<repeat><times>13</times>
	<eval name="times_ct2">0</eval>
	<wait>1</wait>
	<fireRef label="EX_boss_fire_9_4_s"><param>15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<repeat><times>13</times>
	<wait>1</wait>
	<eval name="times_ct2">0</eval>
	<fireRef label="EX_boss_fire_9_4_s"><param>15+180</param><param>$f_sp</param><param>$l_sp</param></fireRef>
	<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
	<repeat><times>4</times>
		<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
	</repeat>
	<repeat><times>3</times>
		<wait>1</wait>
		<fireRef label="EX_boss_fire_9_4_s"><param>-2+180</param><param>$f_sp-0.15*5*(1+$times_ct2)</param><param>$l_sp</param></fireRef>
		<fireRef label="EX_boss_fire_9_4_ss"><param>180</param><param>0</param><param>$l_sp</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="EX_boss_fire_9_4_ss"><param>-1</param><param>-0.15</param><param>$l_sp</param></fireRef>
		</repeat>
		<evaladd name="times_ct2">1</evaladd>
	</repeat>
	</repeat>
	<repeat><times>3</times>
	<repeat><times>$_self_cy-gt$_player_cy</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="EX_boss_fire_9_5_a"><param>-40</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.1</param><param>4</param><param>0</param></fireRef>
	</repeat>
	<wait>30</wait>
	</repeat>
	<wait>90</wait>
</repeat>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5"><param>0</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>1</param><param>120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>2</param><param>-120</param></fireRef>
	</repeat>

	<wait>15</wait>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>3</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>4</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>

	<repeat><times>$times_ct-gt1</times>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>5</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt2</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>6</param><param>-120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>
	<repeat><times>$times_ct-gt4</times>
	<fireRef label="EX_boss_fire_9_5_s"><param>7</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>3</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>2</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="EX_boss_fire_9_5_s"><param>20</param><param>1</param><param>2.8</param><param>7</param><param>120</param></fireRef>
	</repeat>
	<wait>15</wait>
	</repeat>

<wait>50-($times_ct-1)*8</wait>
<wait>3</wait>
</repeat>

</action>




<!-- ********************************************************************* -->
<!-- *** ボスのリベンジ                                              *** -->
<!-- *** 第１０形態（真最終）                                      *** -->
<revenge label="stageEX_boss_10_revenge">
	<!-- *** ボス戦の後始末 *** -->
	<eval name="localcounter">$_counter-300</eval>
	<actionRef label="bg_fadein_action"></actionRef>

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

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

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

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

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

	<wait>1</wait>

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

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

	<wait>1</wait>

	<!-- 01ばらまき -->
	<actionRef label="break_action"></actionRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>

	<repeat><times>$etb_num</times>
		<actionRef label="etb_letter99n"></actionRef>
		<createRef label="item_create_01_etb"><param>-999999</param><param>3000000</param></createRef>
		<sysvar name="tbchain">$_tbchain+1</sysvar>
	</repeat>
	<repeat><times>1-($etb_num)</times>
		<actionRef label="etb_letter99n"></actionRef>
		<createRef label="item_create_01_etb"><param>-999999</param><param>0</param></createRef>

	</repeat>

	<eval name="counter_e">$__counter_tmp</eval>
	<actionRef label="item_counter_01_boss"><param>80/2</param><param>$counter_e</param><param>3600+1000</param><param>24</param><param>$localcounter</param></actionRef>
	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>

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

</revenge>


<!-- ********************************************************************* -->
<!-- *** ボスのリベンジ                                              *** -->
<!-- *** 第１０形態（真真最終）                                      *** -->
<revenge label="stageEX_boss_10e_revenge">
	<!-- *** ボス戦の後始末 *** -->
	<eval name="localcounter">$_counter-300</eval>
	<actionRef label="bg_fadein_action"></actionRef>

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

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

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

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

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

	<wait>1</wait>

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

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

	<wait>1</wait>

	<!-- 01ばらまき -->
	<actionRef label="break_action"></actionRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>

	<repeat><times>$etb_num</times>
		<actionRef label="etb_letter99n"></actionRef>
		<createRef label="item_create_01_etb"><param>-999999</param><param>5000000</param></createRef>
		<sysvar name="tbchain">$_tbchain+1</sysvar>
	</repeat>
	<repeat><times>1-($etb_num)</times>

		<actionRef label="etb_letter99n"></actionRef>
		<createRef label="item_create_01_etb"><param>-999999</param><param>0</param></createRef>
	</repeat>

	<eval name="counter_e">$__counter_tmp</eval>
	<actionRef label="item_counter_01_boss"><param>94/2</param><param>$counter_e</param><param>3600+1600</param><param>24</param><param>$localcounter</param></actionRef>
	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>

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

</revenge>


</exbulletml>
