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

<!-- ********************************************************************* -->
<!-- *** 中ボス戦はここから始ま                                        *** -->
<!-- *** stage3中ボス easy                                            *** -->

<action label="stage3_middle_boss">

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

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


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

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

</action>



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

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

<create label="enemy_create_middle_boss">

	<speed>4</speed>
	<direction type="absolute">-135</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>1300</vital>
	<inv>40</inv>
	<score>100000</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>1050</vital>
	<inv>40</inv>
	<score>100000</score>
	<prate>$__middle_boss_prate2</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>

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


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

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

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

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

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

		<revengeRef label="stage3_middle_boss_02_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage3_middle_boss_02_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_03_middle"></presentRef>

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

</enemy>


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


<action  label="stage3_middle_boss_01_action">

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

	<wait>19</wait>
	<changeDirection>
		<direction type="absolute">30-60*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">0.5</speed><term>1</term>
	</changeSpeed>
	<wait>1</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="dir_seq">0</eval>

<!-- ウィルスばら撒き -->
	<!-- 見えないenemy -->
	<createRef label="middle_boss_creat_01"><param>$_self_cx</param><param>$_self_cy</param></createRef>

	<repeat><times>4</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>-80+$dir_seq</param><param>255</param><param>8</param><param>4</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>20</param><param>8</param><param>4</param><param>255</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>20</param><param>255</param><param>255</param><param>4</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>20</param><param>255</param><param>8</param><param>255</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>20</param><param>8</param><param>255</param><param>255</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>20</param><param>8</param><param>4</param><param>255</param></fireRef>
		<wait>5</wait>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01_s"><param>20</param><param>128</param><param>128</param><param>4</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>20</param><param>100</param><param>8</param><param>128</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>128</param><param>4</param><param>255</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>128</param><param>64</param><param>4</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>255</param><param>8</param><param>4</param></fireRef>
		<wait>5</wait>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>255</param><param>255</param><param>4</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>255</param><param>8</param><param>255</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>8</param><param>255</param><param>255</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>128</param><param>128</param><param>4</param></fireRef>
		<wait>5</wait>
		<fireRef label="middle_boss_fire_01_s"><param>-20</param><param>100</param><param>8</param><param>128</param></fireRef>
		<wait>4</wait>

		<evaladd name="dir_seq">3</evaladd>
		<changeDirection>
			<direction type="relative">180</direction><term>1</term>
		</changeDirection>
		<wait>1</wait>

	</repeat>

	<changeSpeed>
		<speed type="absolute">0</speed><term>40</term>
	</changeSpeed>
	<wait>1</wait>
	<wait>74-3</wait>

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


<!--	<fireRef label="middle_boss_fire_04"><param>0</param></fireRef>
	<fireRef label="middle_boss_fire_04_s"><param>72</param></fireRef>
	<fireRef label="middle_boss_fire_04_s"><param>72</param></fireRef>
	<fireRef label="middle_boss_fire_04_s"><param>72</param></fireRef>
	<fireRef label="middle_boss_fire_04_s"><param>72</param></fireRef> -->
<!-- 星型 -->
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<createRef label="middle_boss_creat_02"><param>$_self_cx</param><param>$_self_cy</param><param>0</param></createRef>
	<wait>1</wait>
	<createRef label="middle_boss_creat_02b_s"><param>$_self_cx</param><param>$_self_cy</param><param>72</param></createRef>
	<wait>1</wait>
	<createRef label="middle_boss_creat_02p_s"><param>$_self_cx</param><param>$_self_cy</param><param>72</param></createRef>
	<wait>1</wait>
	<createRef label="middle_boss_creat_02r_s"><param>$_self_cx</param><param>$_self_cy</param><param>72</param></createRef>
	<wait>1</wait>
	<createRef label="middle_boss_creat_02g_s"><param>$_self_cx</param><param>$_self_cy</param><param>72</param></createRef>

	<wait>450</wait>

	<changeDirection>
		<direction type="absolute">80</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

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

	<changeSpeed>
		<speed type="absolute">0</speed><term>25</term>
	</changeSpeed>
<!-- 剣戟 -->

	<wait>60</wait>
	<eval name="def_dir">-12</eval>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06"><param>$def_dir</param><param>13</param></fireRef>

	<repeat><times>2</times>
	<wait>7</wait>
	<evaladd name="def_dir">60+(($_player_cx+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>3</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-180+(($_player_cy+$_self_cy)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>17</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">90+(($_player_cy+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>12</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-200+(($_player_cx+$_self_cy)%23)</evaladd>
	<wait>1</wait>
<!--
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>9</param></fireRef>
-->
	</repeat>

	<wait>5</wait>

	<changeDirection>
		<direction type="absolute">-100</direction><term>40</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2.2</speed><term>25</term>
	</changeSpeed>

	<repeat><times>2</times>
	<wait>7</wait>
	<evaladd name="def_dir">50+(($_player_cx+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06"><param>$def_dir</param><param>15</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-130+(($_player_cy+$_self_cy)%23)*2</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>13</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">190+(($_player_cy+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>10</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-95+(($_player_cx+$_self_cy)%23)</evaladd>
	<wait>1</wait>
<!--
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>5</param></fireRef>
-->
	</repeat>

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

	<repeat><times>2</times>
	<wait>7</wait>
	<evaladd name="def_dir">40+(($_player_cx+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>4</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-150+(($_player_cy+$_self_cy)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>18</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">96+(($_player_cy+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>9</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-192+(($_player_cx+$_self_cy)%23)</evaladd>
	<wait>1</wait>
<!--
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>6</param></fireRef>
-->
	</repeat>

	<wait>5</wait>

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

	<repeat><times>2</times>
	<wait>7</wait>
	<evaladd name="def_dir">60+(($_player_cx+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06"><param>$def_dir</param><param>2</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-180+(($_player_cy+$_self_cy)%23)*2</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>10</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">90+(($_player_cy+$_self_cx)%23)</evaladd>
	<wait>1</wait>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>5</param></fireRef>

	<wait>7</wait>
	<evaladd name="def_dir">-200+(($_player_cx+$_self_cy)%23)</evaladd>
	<wait>1</wait>
<!--
	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_06_s"><param>$def_dir</param><param>19</param></fireRef>
-->
	</repeat>

	<wait>50</wait>

	<changeDirection>
		<direction type="absolute">90</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1</speed><term>25</term>
	</changeSpeed>
	<wait>20</wait>

	<changePosition>
		<x>320</x><y>140</y>
	</changePosition>

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

</repeat>

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

</action>

<create label="middle_boss_creat_01">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_01"></enemyRef>
</create>

<enemy label="middle_boss_enemy_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="normal">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>8</right><bottom>8</bottom>
		<width>8</width><height>8</height>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
	</img>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>

	<action>

	<eval name="dir_def">45</eval>

	<repeat><times>3</times>
		<wait>6</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>$dir_def</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
		<repeat><times>5</times>
			<wait>6</wait>
			<fireRef label="middle_boss_fire_03_s"><param>88.5</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
		</repeat>

			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>5</times>
			<wait>6</wait>
			<fireRef label="middle_boss_fire_03_s"><param>91.5</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
		</repeat>

			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<repeat><times>3</times>
			<wait>6</wait>
			<fireRef label="middle_boss_fire_03_s"><param>91.5</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
		</repeat>
		<repeat><times>2</times>
			<wait>6</wait>
			<fireRef label="middle_boss_fire_03_s"><param>88.5</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_03_s"><param>105</param></fireRef>
		</repeat>
		<wait>45</wait>
		<evaladd name="dir_def">63</evaladd>
	</repeat>
	<vanish/>
	</action>
</enemy>


<create label="middle_boss_creat_02">
	<speed>3.8</speed>
	<direction type="aim">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_02"></enemyRef>
</create>

<create label="middle_boss_creat_02b_s">
	<speed>3.8</speed>
	<direction type="sequence">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_02blue"></enemyRef>
</create>

<create label="middle_boss_creat_02g_s">
	<speed>3.8</speed>
	<direction type="sequence">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_02green"></enemyRef>
</create>

<create label="middle_boss_creat_02p_s">
	<speed>3.8</speed>
	<direction type="sequence">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_02pink"></enemyRef>
</create>

<create label="middle_boss_creat_02r_s">
	<speed>3.8</speed>
	<direction type="sequence">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_02red"></enemyRef>
</create>


<create label="middle_boss_creat_02_s">
	<speed>3.8</speed>
	<direction type="sequence">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_02"></enemyRef>
</create>

<enemy label="middle_boss_enemy_02">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="normal">
		<file type="dds">s_mahoujin6</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>240</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

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

		<changeDirection>
			<direction type="relative">180-18</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">3.8</speed><term>40</term>
		</changeSpeed>

		<eval name="dir_small">75</eval>

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

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

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

		<repeat><times>4</times>
			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">3.8</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
			<changeSpeed>
				<speed type="absolute">0</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
		</repeat>

			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">2.4</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>127</param><param>2</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
	</action>
</enemy>

<enemy label="middle_boss_enemy_02blue">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<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>240</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

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

		<changeDirection>
			<direction type="relative">180-18</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">3.8</speed><term>40</term>
		</changeSpeed>

		<eval name="dir_small">75</eval>

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

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

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

		<repeat><times>4</times>
			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">3.8</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
			<changeSpeed>
				<speed type="absolute">0</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
		</repeat>

			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">2.4</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>127</param><param>255</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>


	</action>
</enemy>

<enemy label="middle_boss_enemy_02green">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<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>240</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

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

		<changeDirection>
			<direction type="relative">180-18</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">3.8</speed><term>40</term>
		</changeSpeed>

		<eval name="dir_small">75</eval>

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

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

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

		<repeat><times>4</times>
			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">3.8</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
			<changeSpeed>
				<speed type="absolute">0</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
		</repeat>

			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">2.4</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>2</param><param>255</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
	</action>
</enemy>

<enemy label="middle_boss_enemy_02pink">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="normal">
		<file type="dds">s_mahoujin4</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>240</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

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

		<changeDirection>
			<direction type="relative">180-18</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">3.8</speed><term>40</term>
		</changeSpeed>

		<eval name="dir_small">75</eval>

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

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

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

		<repeat><times>4</times>
			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">3.8</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
			<changeSpeed>
				<speed type="absolute">0</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
		</repeat>

			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">2.4</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>200</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
	</action>
</enemy>


<enemy label="middle_boss_enemy_02red">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="normal">
		<file type="dds">s_mahoujin</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>240</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>3</direction><term>-1</term>
	</rotateImg>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

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

		<changeDirection>
			<direction type="relative">180-18</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">3.8</speed><term>40</term>
		</changeSpeed>

		<eval name="dir_small">75</eval>

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

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

		<repeat><times>3</times>
			<wait>3</wait>
			<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
			<wait>3</wait>
			<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
			<wait>3</wait>
			<evaladd name="dir_small">15</evaladd>
		</repeat>
		<wait>4</wait>

		<repeat><times>4</times>
			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">3.8</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
			<changeSpeed>
				<speed type="absolute">0</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
		</repeat>

			<changeDirection>
				<direction type="relative">180-36</direction><term>1</term>
			</changeDirection>
			<changeSpeed>
				<speed type="absolute">2.4</speed><term>40</term>
			</changeSpeed>
			<repeat><times>3</times>
				<wait>3</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_05"><param>$dir_small</param><param>255</param><param>1</param><param>1</param></fireRef>
				<wait>3</wait>
				<evaladd name="dir_small">15</evaladd>
			</repeat>
			<wait>4</wait>
	</action>
</enemy>


<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></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></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>3.5</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_03"></bulletRef>
</fire>

<fire label="middle_boss_fire_03_s">
	<speed>3.5</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_03"></bulletRef>
</fire>
<!--
<fire label="middle_boss_fire_04">
	<speed>3.8</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_04"></bulletRef>
</fire>

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

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

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

<fire label="middle_boss_fire_06_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_06"><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">1.8</speed><term>60</term>
		</changeSpeed>
	</action>

</bullet>

<bullet label="middle_boss_bullet_02">

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

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


	<action>
		<changeSpeed>
			<speed type="absolute">0.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>4</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>20</height>
		<alpha>255</alpha><red>255</red><green>68</green><blue>5</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">2.2</speed><term>35</term>
		</changeSpeed>
	</action>

</bullet>

<bullet label="middle_boss_bullet_05">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>
	<img type="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>$1</red><green>$2</green><blue>$3</blue>
	</img>
	<action>

		<wait>55</wait>
		<changeSpeed>
			<speed type="absolute">1.6</speed><term>60</term>
		</changeSpeed>
	

	</action>
</bullet>

<bullet label="middle_boss_bullet_06">

<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision> -->
	<collision type="sync"><left>-38</left><top>-7</top><right>38</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>20</height>
		<alpha>255</alpha><red>200</red><green>240</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>$1</term>
		</changeSpeed>
		<wait>$1</wait>
		<wait>90</wait>
		<changeSpeed>
			<speed type="absolute">2.2</speed><term>60</term>
		</changeSpeed>
	

	</action>
</bullet>

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

<action  label="stage3_middle_boss_02_action">

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

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

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

<!-- 弾幕開始 -->
	<eval name="bul_wait2">5</eval>			<!--弾の間隔、小さいと狭い-->
	<eval name="bul_count">8</eval>			<!--弾の数-->
	<eval name="bul_offset">-1*15</eval>		<!--弾の隙間、大きいと間隔が広いが変なとこに飛ぶかも-->
	<eval name="first_offset">15</eval>		<!--初回弾発射までの待ち時間-->
	<wait>1</wait>
	
	<repeat><times>3</times>
        	<eval name="bul_offset2">0</eval>
		<!--最初の一発-->
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_07">
			<param>270</param>
			<param>$bul_count</param>
			<param>$bul_wait2</param>
			<param>$bul_offset2</param>
			<param>-1*$bul_offset</param>
			<param>$first_offset</param>
		</fireRef>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_07_2_s">
			<param>180</param>
			<param>$bul_count</param>
			<param>$bul_wait2</param>
			<param>-1*$bul_offset2</param>
			<param>$bul_offset</param>
			<param>$first_offset</param>
		</fireRef>

		<repeat><times>2</times>
			<repeat><times>4</times>
				<evaladd name="bul_offset2">($bul_count-2)*$bul_offset/32</evaladd>
				<wait>52</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_07_1_s">
					<param>180+(360/32)</param>
					<param>$bul_count</param>
					<param>$bul_wait2</param>
					<param>$bul_offset2</param>
					<param>-1*$bul_offset</param>
					<param>$first_offset</param>
				</fireRef>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_07_2_s">
					<param>180</param>
					<param>$bul_count</param>
					<param>$bul_wait2</param>
					<param>-1*$bul_offset2</param>
					<param>$bul_offset</param>
				<param>$first_offset</param>
				</fireRef>
			</repeat>

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

			<repeat><times>4</times>
				<evaladd name="bul_offset2">($bul_count-2)*$bul_offset/32</evaladd>
				<wait>52</wait>
				<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
				<fireRef label="middle_boss_fire_07_1_s">
					<param>180+(360/32)</param>
					<param>$bul_count</param>
					<param>$bul_wait2</param>
					<param>$bul_offset2</param>
					<param>-1*$bul_offset</param>
					<param>$first_offset</param>
				</fireRef>
				<wait>3</wait>
				<fireRef label="middle_boss_fire_07_2_s">
					<param>180</param>
					<param>$bul_count</param>
					<param>$bul_wait2</param>
					<param>-1*$bul_offset2</param>
					<param>$bul_offset</param>
				<param>$first_offset</param>
				</fireRef>
			</repeat>

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

</action>

<fire label="middle_boss_fire_07">
	<speed>1.8</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="middle_boss_bullet_07_1">
	<param>($6+$3)</param>
	<param>$2</param>
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	</bulletRef>
</fire>

<fire label="middle_boss_fire_07_1_s">
	<speed>1.8</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_07_1">
	<param>($6+$3)</param>
	<param>$2</param>
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	</bulletRef>
</fire>

<fire label="middle_boss_fire_07_2_s">
	<speed>1.8</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_07_2">
	<param>($6+$3)</param>
	<param>$2</param>
	<param>$3</param>
	<param>$4</param>
	<param>$5</param>
	</bulletRef>
</fire>

<fire label="middle_boss_fire_08_1">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_08_1"></bulletRef>
</fire>
<fire label="middle_boss_fire_08_1_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_08_1"></bulletRef>
</fire>

<fire label="middle_boss_fire_08_2">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_08_2"></bulletRef>
</fire>
<fire label="middle_boss_fire_08_2_s">
	<speed>4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_08_2"><param>0</param>
	</bulletRef>
</fire>


<bullet label="middle_boss_bullet_07_1">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>10</radius></collision>

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

	<action>
		<wait>$1</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_08_1">
		<param>$4</param>
		</fireRef>
		<repeat><times>($2-1)</times>
			<wait>$3</wait>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="middle_boss_fire_08_1_s">
			<param>$5</param>
			</fireRef>
		</repeat>
	</action>

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

	<vanish/>
</bullet>

<bullet label="middle_boss_bullet_07_2">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>10</radius></collision>

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

	<action>
		<wait>$1</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_08_2">
		<param>$4</param>
		</fireRef>
		<repeat><times>($2-1)</times>
			<wait>$3</wait>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="middle_boss_fire_08_2_s">
			<param>$5</param>
			</fireRef>
		</repeat>
	</action>
	<changeColor>
		<alpha>32</alpha><red>255</red><green>32</green><blue>64</blue><term>30</term>
	</changeColor>
	<wait>30</wait>
	<vanish/>
</bullet>

<bullet label="middle_boss_bullet_08_1">
	<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>12</green><blue>255</blue>
	</img>

	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed>1.4</speed><term>30</term>
		</changeSpeed>

		<changeDirection>
			<direction type="relative">-45</direction><term>40</term>
		</changeDirection>

	</action>

</bullet>

<bullet label="middle_boss_bullet_08_2">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>

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

	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed>1.4</speed><term>30</term>
		</changeSpeed>

		<changeDirection>
			<direction type="relative">45</direction><term>40</term>
		</changeDirection>

	</action>

</bullet>

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

<revenge label="stage3_middle_boss_01_revenge">

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

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

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

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_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>$_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>18/2</param><param>$counter_e</param><param>960</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>40</param></actionRef>
	</repeat>

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

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

<revenge label="stage3_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_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_stage3middle"></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>

	<wait>1</wait>

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

	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>
	<!-- *** 逃げるボスの作成 *** -->
	<wait>1</wait>
	<createRef label="enemy_create_middle_boss_escape"></createRef>

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

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

<action label="stage3_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>
	<createRef label="enemy_create_middle_boss_second"><param>390</param><param>-12</param></createRef>

	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stage3middle"></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>850</vital>
	<inv>40</inv>
	<score>120000</score>
	<prate>$__middle_boss_prate3</prate>
	<enemyRef label="enemy_middle_boss_second"></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_03_middle"></presentRef>

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

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

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

	</repeat>
</enemy>

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

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

	<!-- 見えない敵 -->
	<createRef label="middle_boss_creat_03"><param>$_self_cx</param><param>$_self_cy</param></createRef>

	<repeat><times>5</times>
		<fireRef label="middle_boss_fire_09"><param>-30</param></fireRef>
		<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>

		<repeat><times>11</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>3</times>
			<wait>4</wait>
			<fireRef label="middle_boss_fire_09_s"><param>61</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
		</repeat>
		</repeat>

		<repeat><times>11</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>3</times>
			<wait>4</wait>
			<fireRef label="middle_boss_fire_09_s"><param>59</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
		</repeat>
		</repeat>
		<wait>30-3</wait>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->

		<fireRef label="middle_boss_fire_09_2"><param>-45</param></fireRef>
		<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
		<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>

		<repeat><times>11</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>3</times>
			<wait>4</wait>
			<fireRef label="middle_boss_fire_09_2_s"><param>61</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
		</repeat>
		</repeat>

		<repeat><times>11</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<repeat><times>3</times>
			<wait>4</wait>
			<fireRef label="middle_boss_fire_09_2_s"><param>59</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
			<fireRef label="middle_boss_fire_09_2_s"><param>60</param></fireRef>
		</repeat>
		</repeat>
		<wait>30-3</wait>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->

	</repeat>

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

</action>

<create label="middle_boss_creat_03">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_enemy_03"></enemyRef>
</create>

<enemy label="middle_boss_enemy_03">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="normal">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>8</right><bottom>8</bottom>
		<width>8</width><height>8</height>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
	</img>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>

	<action>

	<repeat><times>34</times>

		<fireRef label="middle_boss_fire_10_org"><param>0</param><param>0</param><param>0</param></fireRef>
		<wait>24</wait>
<!--
		<eval name="width">12</eval>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_10"><param>0</param><param>$width</param><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_10_s"><param>75</param><param>$width</param><param>75</param></fireRef>
		<fireRef label="middle_boss_fire_10_s"><param>-150</param><param>$width</param><param>-75</param></fireRef>

		<repeat><times>12</times>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_10_s"><param>75</param><param>$width</param><param>0</param></fireRef>
			<fireRef label="middle_boss_fire_10_s"><param>75</param><param>$width</param><param>75</param></fireRef>
			<fireRef label="middle_boss_fire_10_s"><param>-150</param><param>$width</param><param>-75</param></fireRef>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_10_s"><param>75</param><param>$width</param><param>0</param></fireRef>
			<fireRef label="middle_boss_fire_10_s"><param>75</param><param>$width</param><param>75</param></fireRef>
			<fireRef label="middle_boss_fire_10_s"><param>-150</param><param>$width</param><param>-75</param></fireRef>
			<evaladd name="width">-1</evaladd>
		</repeat>
-->

		<wait>60</wait>

		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_11"><param>0</param></fireRef>
		<fireRef label="middle_boss_fire_11_s"><param>72</param></fireRef>
		<fireRef label="middle_boss_fire_11_s"><param>72</param></fireRef>
		<fireRef label="middle_boss_fire_11_s"><param>72</param></fireRef>
		<fireRef label="middle_boss_fire_11_s"><param>72</param></fireRef>
		<wait>40</wait>

	</repeat>

	</action>
</enemy>


<fire label="middle_boss_fire_09">
	<speed>1.8</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>1.8</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_09"></bulletRef>
</fire>

<fire label="middle_boss_fire_09_2">
	<speed>1.8</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_09_2"></bulletRef>
</fire>

<fire label="middle_boss_fire_09_2_s">
	<speed>1.8</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_09_2"></bulletRef>
</fire>

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

<fire label="middle_boss_fire_10">
	<speed>2.5</speed>
	<direction type="aim">$1+180</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_10"><param>$3</param><param>$2</param></bulletRef>
</fire>

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

<fire label="middle_boss_fire_11">
	<speed>3.5</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_11"></bulletRef>
</fire>

<fire label="middle_boss_fire_11_s">
	<speed>3.5</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_11"></bulletRef>
</fire>


<bullet label="middle_boss_bullet_09">

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

	</action>
</bullet>

<bullet label="middle_boss_bullet_09_2">

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

	</action>
</bullet>

<bullet label="middle_boss_bullet_10_org">

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

	<action>
		<eval name="width">12</eval>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_10"><param>75</param><param>$width</param><param>75</param></fireRef>
		<fireRef label="middle_boss_fire_10_s"><param>-150</param><param>$width</param><param>-75</param></fireRef>

		<repeat><times>12</times>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_10_s"><param>150</param><param>$width</param><param>75</param></fireRef>
			<fireRef label="middle_boss_fire_10_s"><param>-150</param><param>$width</param><param>-75</param></fireRef>
			<wait>1</wait>
			<fireRef label="middle_boss_fire_10_s"><param>150</param><param>$width</param><param>75</param></fireRef>
			<fireRef label="middle_boss_fire_10_s"><param>-150</param><param>$width</param><param>-75</param></fireRef>
			<evaladd name="width">-1</evaladd>
		</repeat>
		<wait>1</wait>
		<vanish/>
	</action>

</bullet>

<bullet label="middle_boss_bullet_10">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$2/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>24</height>
		<alpha>120</alpha><red>255</red><green>120</green><blue>120</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
	<wait>10</wait>

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

	<wait>25</wait>
	<changeDirection>
		<direction type="relative">180-$1</direction><term>15</term>
	</changeDirection>
	<wait>10</wait>

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

	</action>
</bullet>

<bullet label="middle_boss_bullet_11">

	<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>2</red><green>92</green><blue>120</blue>
	</img>

	<action>
		<changeSpeed>
			<speed type="absolute">1.4</speed><term>24</term>
		</changeSpeed>
	</action>
</bullet>

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

<revenge label="stage3_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_stage3middle"></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>0</param><param>8</param></actionRef>
			<createRef label="item_create_01_etb"><param>-8000</param><param>150000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>24/2</param><param>$counter_e</param><param>680</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
		<sysvar name="tbchain">0</sysvar>
	</repeat>

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

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

<!-- ********************************************************************* -->
<!-- *** ボス戦はここから始まる                                        *** -->
<action label="stage3_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">13_stage3boss</file>
		</track>
		<play>
			<flag>1</flag><loop>44100*2*2*4</loop>
		</play>
	</sound>
	<actionRef label="stage3_2_bgm_title_action"></actionRef>


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

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

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

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

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


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


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

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

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

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

<!-- ********************************************************************* -->
<!-- *** ボスオブジェクト                                              *** -->
<enemy label="stage3_boss_enemy">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<presentRef label="stage3_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="stage3_boss_01_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage3_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="stage3_boss_02_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage3_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="stage3_boss_03_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage3_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="stage3_boss_04_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage3_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="stage3_boss_05_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage3_boss_05_action"></actionRef>
	</repeat>
</enemy>


<!-- ********************************************************************* -->
<!-- *** ボスのアクション                                              *** -->
<!-- *** 第１形態                                                      *** -->
<action  label="stage3_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>
<!-- 剣戟ばらまき -->
	<eval name="rand1">$_player_cx%31</eval>
	<eval name="rand2">$_player_cy%21</eval>

	<changeSpeed>
		<speed>2</speed><term>1</term>
	</changeSpeed>

	<wait>1</wait>

	<repeat><times>2</times>

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

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01"><param>$rand1+$rand2</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60+$rand1</param><param>2.2</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand1*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand2*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cy%31</eval>	
		<eval name="rand2">$_player_cx%21</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1+$rand2</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand1</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand2</param><param>1.8</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand1*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80+$rand2*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cx%28</eval>
		<eval name="rand2">$_player_cy%19</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_02"><param>$rand1+$rand2</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand1</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand2</param><param>2.2</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand1*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand2*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cy%31</eval>	
		<eval name="rand2">$_player_cx%21</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1+$rand2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80+$rand1</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand2</param><param>2.4</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand1*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand2*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cx%28</eval>
		<eval name="rand2">$_player_cy%19</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1+$rand2</param><param>2.6</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80+$rand1</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand2</param><param>2.2</param></fireRef>

		<eval name="rand1">$_player_cy%28</eval>
		<eval name="rand2">$_player_cx%19</eval>
		<wait>4</wait>

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


		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01"><param>$rand1+$rand2</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60+$rand1</param><param>2.2</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand1*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand2*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cy%31</eval>	
		<eval name="rand2">$_player_cx%21</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1+$rand2</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand2</param><param>1.8</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand1*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80+$rand2*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cx%28</eval>
		<eval name="rand2">$_player_cy%19</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_02"><param>$rand1+$rand2</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand1</param><param>1.8</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand1*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60+$rand2*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cy%31</eval>	
		<eval name="rand2">$_player_cx%21</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1+$rand2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80+$rand1</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand2</param><param>2.4</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand1*2</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80+$rand2*2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>80</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cx%28</eval>
		<eval name="rand2">$_player_cy%19</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1+$rand2</param><param>2.6</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>80+$rand1</param><param>2.4</param></fireRef>

		<eval name="rand1">$_player_cy%28</eval>
		<eval name="rand2">$_player_cx%19</eval>
		<wait>4</wait>

	</repeat>

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

	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01"><param>$rand1</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>-30-$rand1</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>60+$rand1</param><param>1.8</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_02"><param>-1*(30+$rand2*2)</param><param>2.6</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>60-$rand1</param><param>1.8</param></fireRef>

		<eval name="rand1">$_player_cy%25</eval>	
		<eval name="rand2">$_player_cx%24</eval>
		<wait>4</wait>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>-40-$rand2</param><param>2.5</param></fireRef>
		<fireRef label="stage3_boss_fire_02"><param>20+$rand1</param><param>2.4</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand2</param><param>2.5</param></fireRef>
		<fireRef label="stage3_boss_fire_02_s"><param>-1*(20+$rand2*2)</param><param>2.5</param></fireRef>
		<fireRef label="stage3_boss_fire_02"><param>-20+$rand2*2</param><param>2.5</param></fireRef>

		<eval name="rand1">$_player_cy%19</eval>	
		<eval name="rand2">$_player_cx%27</eval>
		<wait>4</wait>
	</repeat>

		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01_s"><param>$rand1</param><param>2.4</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>-10</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_02"><param>20+$rand1</param><param>2.2</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_01"><param>$rand2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_01_s"><param>15</param><param>2.6</param></fireRef>
		<fireRef label="stage3_boss_fire_02"><param>0</param><param>2.4</param></fireRef>

		<wait>80-3</wait>

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

<!-- 壁反射丸弾 -->

	<eval name="rand1">$_player_cx%21</eval>	
	<eval name="boss_dir">1-($_player_cx-gt320)*2</eval>	
	
	<changeDirection>
		<direction type="absolute">(60+$rand1)*$boss_dir</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</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_03"><param>(-150-$rand1)*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>

	<repeat><times>8</times>
		<wait>12</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_03_s"><param>-59*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	</repeat>

	<wait>30</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>80</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_04"><param>(-150-$rand1)*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>

	<repeat><times>4</times>
		<wait>12</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_04_s"><param>-59*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<wait>12</wait>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_04_s"><param>180</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	</repeat>

	<wait>120</wait>

	<!-- ２回目はランダム方向 -->
<!--
	<eval name="rand1">$_player_cx%21</eval>	
	<eval name="boss_dir">1-($_player_cx%2)*2</eval>	
	
	<changeDirection>
		<direction type="absolute">(60+$rand1)*$boss_dir</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</wait>

	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_03"><param>(-150-$rand1)*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>

	<repeat><times>8</times>
		<wait>12</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_03_s"><param>-59.5*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_03_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	</repeat>

	<wait>30</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>80</wait>

	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_04"><param>(-150-$rand1)*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>

	<repeat><times>4</times>
		<wait>12</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_04_s"><param>-49.5*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<wait>12</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_04_s"><param>180</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_04_s"><param>12*$boss_dir</param><param>1.8</param></fireRef>
	</repeat>

	<wait>120</wait>
-->
	<wait>60-3</wait>

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

<!-- うずまきねらい -->
	<eval name="rand1">$_player_cx%23</eval>	
	<wait>1</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_05"><param>17-$rand1</param><param>2</param></fireRef>
	<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
	<fireRef label="stage3_boss_fire_05_s"><param>26</param><param>2</param></fireRef>
	<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
	<repeat><times>10</times>
		<wait>2</wait>
		<fireRef label="stage3_boss_fire_05_s"><param>26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_05_s"><param>26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
	</repeat>

	<repeat><times>5</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_05_s"><param>26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_05_s"><param>26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
		<repeat><times>10</times>
			<wait>2</wait>
			<fireRef label="stage3_boss_fire_05_s"><param>26</param><param>2</param></fireRef>
			<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
			<fireRef label="stage3_boss_fire_05_s"><param>26</param><param>2</param></fireRef>
			<fireRef label="stage3_boss_fire_05_s"><param>0</param><param>1.6</param></fireRef>
		</repeat>
	</repeat>

	<wait>100</wait>

	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_06"><param>$rand1</param><param>2</param></fireRef>
	<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
	<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
	<fireRef label="stage3_boss_fire_07_s"><param>0</param><param>1.6</param></fireRef>
	<repeat><times>5</times>
		<wait>2</wait>
		<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>2.2</param></fireRef>
	</repeat>

	<repeat><times>5</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
		<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
		<repeat><times>5</times>
			<wait>2</wait>
			<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
			<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
			<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
			<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
			<wait>2</wait>
			<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
			<fireRef label="stage3_boss_fire_06_s"><param>0</param><param>1.6</param></fireRef>
			<fireRef label="stage3_boss_fire_06_s"><param>-26</param><param>2</param></fireRef>
			<fireRef label="stage3_boss_fire_07_s"><param>0</param><param>2.2</param></fireRef>
		</repeat>
	</repeat>

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

</repeat>

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


</action>

<fire label="stage3_boss_fire_01">
	<speed>3.4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage3_boss_bullet_01"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_01_s">
	<speed>3.4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_01"><param>$2</param></bulletRef>
</fire>

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

</bullet>

<fire label="stage3_boss_fire_02">
	<speed>3.4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage3_boss_bullet_02"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_02_s">
	<speed>3.4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_02"><param>$2</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_02">
	<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>255</red><green>2</green><blue>1</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

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

</bullet>

<fire label="stage3_boss_fire_03">
	<speed>0.5</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_03"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_03_s">
	<speed>0.5</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_03"><param>$2</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_03">
	<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>2</red><green>255</green><blue>2</blue>
	</img>
	<setReflect>
		<flag>7</flag><num>1</num>
	</setReflect>

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

</bullet>


<fire label="stage3_boss_fire_04">
	<speed>0.5</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_04"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_04_s">
	<speed>0.5</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_04"><param>$2</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_04">
	<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>184</red><green>255</green><blue>2</blue>
	</img>
	<setReflect>
		<flag>7</flag><num>1</num>
	</setReflect>

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

</bullet>

<fire label="stage3_boss_fire_05">
	<speed>3.6</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_05"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_05_s">
	<speed>3.6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_05"><param>$2</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_05">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</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>12</width><height>12</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<action>

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

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

</bullet>

<fire label="stage3_boss_fire_06">
	<speed>3.6</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_06"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_06_s">
	<speed>3.6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_06"><param>$2</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_06">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*3</left><top>0</top><right>32*4</right><bottom>32</bottom>
		<width>12</width><height>12</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<action>

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

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

</bullet>

<fire label="stage3_boss_fire_07">
	<speed>3.6</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_07"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_07_s">
	<speed>3.6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_07"><param>$2</param></bulletRef>
</fire>

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

	<action>

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

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

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

	</action>

</bullet>






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

<!-- センターポイントへ移動 -->

	<eval name="pos_x">1-2*($_self_cx-lt320)</eval>

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

	<changePosition type="center">
		<x>320+160*$pos_x</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>10</times>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stage3_boss_fire_2_05"><param>-90*$pos_x</param></fireRef>
	<createRef label="stage3_boss_fire_2_06"><param>-90*$pos_x</param></createRef>
	<wait>10</wait>

	<eval name="wait">2</eval>
	<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_2_01"><param>-90*$pos_x</param><param>0.1</param><param>$wait</param><param>$pos_x</param></fireRef>
	<repeat><times>10</times>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_2_01_s"><param>-90*$pos_x</param><param>1</param><param>$wait</param><param>$pos_x</param></fireRef>
		<evaladd name="wait">2</evaladd>
	</repeat>

	<wait>240-1</wait>	
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stage3_boss_fire_2_05"><param>-90*$pos_x</param></fireRef>
	<createRef label="stage3_boss_fire_2_06"><param>-90*$pos_x</param></createRef>
	<wait>1</wait>

	<changeSpeed>
		<speed type="absolute">5</speed><term>1</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">-90*$pos_x</direction><term>1</term>
	</changeDirection>

<!--	<wait>64</wait>  -->

	<eval name="bul_dir">180-24*$pos_x</eval>
	<repeat><times>4</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<repeat><times>2</times>
			<fireRef label="stage3_boss_fire_2_03"><param>$pos_x</param><param>$bul_dir</param></fireRef>
			<evaladd name="bul_dir">3*$pos_x</evaladd>
			<wait>8</wait>
		</repeat>
	</repeat>

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

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

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

</action>


<fire label="stage3_boss_fire_2_01">
	<speed type="absolute">$2</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_02_01_dummy"></bulletRef>
</fire>

<fire label="stage3_boss_fire_2_01_s">
	<speed type="sequence">$2</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_02_01"><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_02_01_dummy">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<img type="maskadd">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>4</right><bottom>4</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>255</red><green>1</green><blue>1</blue>
	</img>

	<action>
		<wait>1</wait>
		<vanish/>
	</action>
</bullet>


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

	<action>

		<wait>20</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>25</term>
		</changeSpeed>
		<wait>85+$1</wait>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_2_02"><param>($1-2)*15</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>2.2</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90+2*$2</param><param>2.0</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>2.0</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>2.0</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>2.0</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90+2*$2</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.8</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90+2*$2</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.6</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90+2*$2</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.4</param></fireRef>
<!--
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90+2*$2</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.4</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90+2*$2</param><param>1.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_02_s"><param>90</param><param>1.2</param></fireRef>
-->	
		<wait>30</wait>

		<changeDirection>
			<direction type="absolute">($_self_cx%19)*20</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.6</speed><term>25</term>
		</changeSpeed>

	</action>

</bullet>

<fire label="stage3_boss_fire_2_02">
	<speed type="absolute">0.2</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage3_boss_bullet_02_02"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_2_02_s">
	<speed type="absolute">0.2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_02_02"><param>$2</param></bulletRef>
</fire>

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

	<action>

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

	</action>

</bullet>

<fire label="stage3_boss_fire_2_03">
	<speed type="absolute">0</speed>
	<direction type="absolute">180</direction>
	<bulletRef label="stage3_boss_bullet_02_03"><param>$1</param><param>$2</param></bulletRef>
</fire>


<bullet label="stage3_boss_bullet_02_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>1</green><blue>255</blue>
	</img>

	<action>

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

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_2_04"><param>$2</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>2.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>2.2</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90+3*$1</param><param>2.0</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>2.0</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>2.0</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>2.0</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90+3*$1</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.8</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.8</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90+3*$1</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.6</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.6</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90+3*$1</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.4</param></fireRef>
<!--
		<wait>4</wait>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90+3*$1</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.4</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.4</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90+3*$1</param><param>1.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.2</param></fireRef>
		<fireRef label="stage3_boss_fire_2_04_s"><param>90</param><param>1.2</param></fireRef>
-->	
		<wait>60</wait>

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

	</action>

</bullet>

<fire label="stage3_boss_fire_2_04">
	<speed type="absolute">0.2</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_02_04"><param>$2</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_2_04_s">
	<speed type="absolute">0.2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_02_04"><param>$2</param></bulletRef>
</fire>

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

	<action>

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

	</action>

</bullet>

<fire label="stage3_boss_fire_2_05">
	<speed type="absolute">5.6</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_02_05"></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_02_05">
	<collision type="rect"><left>96</left><top>12</top><right>-96</right><bottom>-12</bottom></collision>
	<img type="maskadd">
		<file type="dds">sword2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>256</height>
		<alpha>255</alpha><red>1</red><green>1</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
	</action>

</bullet>

<create label="stage3_boss_fire_2_06">
	<speed type="absolute">2.8</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<objectRef label="stage3_boss_bullet_02_06"></objectRef>
</create>

<object label="stage3_boss_bullet_02_06">
	<img type="maskadd">
		<file type="dds">sword</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>360</height>
		<alpha>4</alpha><red>1</red><green>1</green><blue>255</blue>
	</img>
	<flag>7</flag>
	<setDrawLevel><num>20</num></setDrawLevel>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeColor>
			<alpha>100</alpha><red>1</red><green>1</green><blue>255</blue><term>80</term>
		</changeColor>

	</action>

</object>


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

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

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

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

<repeat><times>12</times>
	<eval name="dir">($_player_cy%2)*2-1</eval>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_x_01"><param>0</param><param>2.2</param><param>1</param></fireRef>
	<repeat><times>2</times>
		<repeat><times>3</times>
		<fireRef label="stage3_boss_fire_x_01_s"><param>30</param><param>2.2</param><param>1</param></fireRef>
		</repeat>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<wait>1</wait>
		<repeat><times>2</times>
		<fireRef label="stage3_boss_fire_x_01_s"><param>30</param><param>2.2</param><param>1</param></fireRef>
		</repeat>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<wait>1</wait>
	</repeat>
		<fireRef label="stage3_boss_fire_x_01_s"><param>30</param><param>2.2</param><param>1</param></fireRef>

	<wait>60</wait>

	<changeSpeed>
		<speed type="absolute">2</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">90*$dir+($_player_cx%15)*2</direction>
	</changeDirection>
	<wait>30</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stage3_boss_fire_x_03"><param>0</param><param>2.6</param></fireRef>
	<changeSpeed>
		<speed type="absolute">0</speed><term>30</term>
	</changeSpeed>
	<wait>30</wait>
	<eval name="dir">($_player_cx%2)*2-1</eval>

	<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
	<fireRef label="stage3_boss_fire_x_01"><param>0</param><param>2.2</param><param>-1</param></fireRef>
	<repeat><times>2</times>
		<repeat><times>3</times>
		<fireRef label="stage3_boss_fire_x_01_s"><param>30</param><param>2.2</param><param>-1</param></fireRef>
		</repeat>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<wait>1</wait>
		<repeat><times>2</times>
		<fireRef label="stage3_boss_fire_x_01_s"><param>30</param><param>2.2</param><param>-1</param></fireRef>
		</repeat>
		<actionRef label="enemy_bullet_action_sword"><param>64</param></actionRef>
		<wait>1</wait>
	</repeat>
		<fireRef label="stage3_boss_fire_x_01_s"><param>30</param><param>2.2</param><param>-1</param></fireRef>

	<wait>60</wait>

	<changeSpeed>
		<speed type="absolute">2</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="relative">180</direction>
	</changeDirection>
	<wait>30</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stage3_boss_fire_x_03"><param>0</param><param>2.6</param></fireRef>
	<changeSpeed>
		<speed type="absolute">0</speed><term>30</term>
	</changeSpeed>
	<wait>30</wait>

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

</repeat>

<wait>60</wait>

<targetRevenge label="stage3_boss_enemy"></targetRevenge>


</action>

<fire label="stage3_boss_fire_x_01">
	<speed>3.4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage3_boss_bullet_x_01"><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage3_boss_fire_x_01_s">
	<speed>3.4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_x_01"><param>$2</param><param>$3</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_x_01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>13</radius></collision>
<!--	<collision type="sync"><left>-14</left><top>-14</top><right>15</right><bottom>14</bottom></collision> -->
	<img type="normal">
		<file type="dds">sword2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>28</width><height>48</height>
		<alpha>252</alpha><red>185</red><green>200</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<action>
		<changeDirection>
			<direction type="relative">120*$2</direction><term>60</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">0.2</speed><term>30</term>
		</changeSpeed>

			<fireRef label="stage3_boss_fire_x_02_r"><param>$1-0.2*1</param><param>$2</param></fireRef>
			<wait>3</wait>
			<fireRef label="stage3_boss_fire_x_02_r"><param>$1-0.2*2</param><param>$2</param></fireRef>
			<wait>3</wait>
			<fireRef label="stage3_boss_fire_x_02_r"><param>$1-0.2*3</param><param>$2</param></fireRef>
			<wait>3</wait>
			<fireRef label="stage3_boss_fire_x_02_r"><param>$1-0.2*4</param><param>$2</param></fireRef>
			<wait>3</wait>
			<fireRef label="stage3_boss_fire_x_02_r"><param>$1-0.2*5</param><param>$2</param></fireRef>

		<wait>18</wait>

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

	</action>

</bullet>

<fire label="stage3_boss_fire_x_02_r">
	<speed>0.2</speed>
	<direction type="relative">0</direction>
	<bulletRef label="stage3_boss_bullet_x_02"><param>$1</param><param>$2</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_x_02">
	<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>255</red><green>2</green><blue>1</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

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

		<wait>30</wait>

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

	</action>

</bullet>

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

<bullet label="stage3_boss_bullet_x_03">
	<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="stage3_boss_fire_x_04"></createRef>
		</repeat>

	</action>

</bullet>

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

<object label="stage3_boss_bullet_x_04">
	<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="stage3_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>1</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 弾幕開始 -->
<!--
	<createRef label="stage3_boss_enemy_create_03_01"></createRef>
-->
	<eval name="bul_int">12</eval>
	<eval name="bul_ab_dir">0</eval>
	<wait>1</wait>
	<repeat><times>10</times>
		<actionRef label="boss_sword"></actionRef>
		<createRef label="stage3_boss_fire_3_04"><param>0</param></createRef>
		<wait>1</wait>
		<eval name="random1">(($_self_cx+$_self_cy+$_player_cx+$_player_cy)%24)</eval>
		<eval name="random2">(($_self_cx+$_self_cy+$_player_cx*$_player_cy)%24)</eval>

		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+48)</param><param>$bul_int</param><param>255</param><param>64</param><param>32</param><param>290</param></createRef>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+108)</param><param>-1*$bul_int</param><param>64</param><param>255</param><param>32</param><param>70</param></createRef>
		<wait>1</wait>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+228)</param><param>$bul_int</param><param>32</param><param>64</param><param>255</param><param>110</param></createRef>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+288)</param><param>-1*$bul_int</param><param>224</param><param>224</param><param>32</param><param>250</param></createRef>

		<wait>30</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_3_00"><param>$bul_ab_dir</param><param>255</param><param>100</param><param>120</param></fireRef>
		<wait>1</wait>
		<evaladd name="bul_ab_dir">23</evaladd>
		<wait>28</wait>

		<actionRef label="boss_sword"></actionRef>
		<createRef label="stage3_boss_fire_3_04"><param>0</param></createRef>
		<wait>1</wait>

		<eval name="random1">(($_self_cx+$_self_cy+$_player_cx+$_player_cy)%24)</eval>
		<eval name="random2">(($_self_cx+$_self_cy+$_player_cx*$_player_cy)%24)</eval>

		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+228)</param><param>-1*$bul_int</param><param>255</param><param>64</param><param>32</param><param>290</param></createRef>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+288)</param><param>$bul_int</param><param>64</param><param>255</param><param>32</param><param>70</param></createRef>
		<wait>1</wait>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+48)</param><param>-1*$bul_int</param><param>32</param><param>64</param><param>255</param><param>110</param></createRef>
		<createRef label="stage3_boss_enemy_create_03_02"><param>($random1+78)</param><param>($random2+108)</param><param>$bul_int</param><param>224</param><param>224</param><param>32</param><param>250</param></createRef>

		<wait>30</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_3_00"><param>$bul_ab_dir</param><param>100</param><param>100</param><param>255</param></fireRef>
		<wait>1</wait>
		<evaladd name="bul_ab_dir">23</evaladd>
		<wait>28</wait>

		<actionRef label="stage3_boss_move_03"></actionRef>

		<wait>30</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<wait>1</wait>
		<fireRef label="stage3_boss_fire_3_00"><param>$bul_ab_dir</param><param>120</param><param>255</param><param>100</param></fireRef>
		<wait>1</wait>
		<evaladd name="bul_ab_dir">23</evaladd>
		<wait>28</wait>
		<wait>190-3</wait>

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

	</repeat>

<wait>60</wait>

<targetRevenge label="stage3_boss_enemy"></targetRevenge>

</action>

<!--
<create label="stage3_boss_enemy_create_03_01">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage3_boss_enemy_03_01"></enemyRef>
</create>

<enemy label="stage3_boss_enemy_03_01">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="normal">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>8</right><bottom>8</bottom>
		<width>8</width><height>8</height>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
	</img>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

	<action>
		<definedAction type="synctoparentx"></definedAction>
		<definedAction type="synctoparenty"></definedAction>
		<eval name="bul_ab_dir">0</eval>

		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage3_boss_fire_3_00"><param>$bul_ab_dir</param><param>255</param><param>100</param><param>120</param></fireRef>
			<wait>179</wait>
			<evaladd name="bul_ab_dir">13</evaladd>
			<wait>1</wait>

			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage3_boss_fire_3_00"><param>$bul_ab_dir</param><param>120</param><param>100</param><param>255</param></fireRef>
			<wait>179</wait>
			<evaladd name="bul_ab_dir">13</evaladd>
			<wait>1</wait>

			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage3_boss_fire_3_00"><param>$bul_ab_dir</param><param>120</param><param>255</param><param>100</param></fireRef>
			<wait>179</wait>
			<evaladd name="bul_ab_dir">13</evaladd>
			<wait>1</wait>
		</repeat>
	</action>
</enemy>
-->
<fire label="stage3_boss_fire_3_00">
	<speed type="absolute">0</speed>
	<direction type="absolute">0</direction>
	<bulletRef label="stage3_boss_bullet_3_00"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<bullet label="stage3_boss_bullet_3_00">

	<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>255</red><green>100</green><blue>120</blue>
	</img>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>

	<action>
		<wait>1</wait>
		<eval name="bul_wid">16</eval>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage3_boss_fire_3_01"><param>$1</param><param>$bul_wid</param><param>$2</param><param>$3</param><param>$4</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage3_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$2</param><param>$3</param><param>$4</param></fireRef>
		</repeat>

		<repeat><times>13</times>
			<wait>1</wait>
			<evaladd name="bul_wid">-1</evaladd>
			<repeat><times>6</times>
				<fireRef label="stage3_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$2</param><param>$3</param><param>$4</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>6</times>
				<fireRef label="stage3_boss_fire_3_01_s"><param>60</param><param>$bul_wid</param><param>$2</param><param>$3</param><param>$4</param></fireRef>
			</repeat>
		</repeat>
		<vanish/>
	</action>
</bullet>

<fire label="stage3_boss_fire_3_01">
	<speed type="absolute">0.3</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage3_boss_bullet_3_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param></bulletRef>
</fire>

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

<bullet label="stage3_boss_bullet_3_01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>($1-1)/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>$1</width><height>$1*2</height>
		<alpha>255</alpha><red>$2</red><green>$3</green><blue>$4</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed>4</speed><term>100</term>
		</changeSpeed>

		<changeDirection>
			<direction type="relative">120</direction><term>200</term>
		</changeDirection>

	</action>

</bullet>


<create label="stage3_boss_enemy_create_03_02">
	<speed>$1</speed>
	<direction type="absolute">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage3_boss_enemy_03_02"><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></enemyRef>
</create>

<enemy label="stage3_boss_enemy_03_02">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="normal">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>8</right><bottom>8</bottom>
		<width>8</width><height>8</height>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
	</img>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<wait>1</wait>
	
		<eval name="wid">32</eval>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="stage3_boss_fire_3_02"><param>$1</param><param>$2</param><param>$3</param><param>$4</param><param>$5</param></fireRef>
		<repeat><times>15</times>
			<wait>1</wait>
			<evaladd name="wid">-2</evaladd>
			<fireRef label="stage3_boss_fire_3_02_small"><param>$1</param><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$wid</param></fireRef>
		</repeat>
		<vanish/>
	</action>
</enemy>

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

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

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

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

	<action>
		<wait>1</wait>

		<actionRef label="enemy_bullet_action2"><param>32</param></actionRef>
		<fireRef label="stage3_boss_fire_3_03">
			<param>0</param><param>0.9</param><param>$2</param><param>$3</param><param>$4</param>
		</fireRef>
		<fireRef label="stage3_boss_fire_3_03_s">
			<param>($1/2)</param><param>1.6</param><param>$2</param><param>$3</param><param>$4</param>
		</fireRef>

		<changeSpeed><speed>8</speed><term>60</term>
		</changeSpeed>
		<repeat><times>-1</times>
			<wait>25</wait>
			<actionRef label="enemy_bullet_action2"><param>32</param></actionRef>
			<fireRef label="stage3_boss_fire_3_03_s">
				<param>($1/2)</param><param>0.9</param><param>$2</param><param>$3</param><param>$4</param>
			</fireRef>
			<fireRef label="stage3_boss_fire_3_03_s">
				<param>($1/2)</param><param>1.6</param><param>$2</param><param>$3</param><param>$4</param>
			</fireRef>
		</repeat>
	</action>

</bullet>

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

	<img type="add">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>$5</width><height>$6*2</height>
		<alpha>255</alpha><red>$2</red><green>$3</green><blue>$4</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed><speed>8</speed><term>60</term></changeSpeed>
	</action>
</bullet>


<fire label="stage3_boss_fire_3_03">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage3_boss_bullet_03_03">
		<param>$2</param><param>$3</param><param>$4</param><param>$5</param>
	</bulletRef>
</fire>
<fire label="stage3_boss_fire_3_03_s">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage3_boss_bullet_03_03">
		<param>$2</param><param>$3</param><param>$4</param><param>$5</param>
	</bulletRef>
</fire>

<bullet label="stage3_boss_bullet_03_03">
	<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>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed>$1</speed><term>120</term>
		</changeSpeed>
		<accel>
			<vertical>1</vertical><term>300</term>
		</accel>
	</action>

</bullet>

<create label="stage3_boss_fire_3_04">
	<speed type="absolute">0</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<objectRef label="stage3_boss_bullet_03_04"><param>$1</param></objectRef>
</create>

<object label="stage3_boss_bullet_03_04">
	<img type="maskadd">
		<file type="dds">sword3</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>160</width><height>160</height>
		<alpha>250</alpha><red>1</red><green>1</green><blue>255</blue>
	</img>
	<flag>7</flag>
	<setDrawLevel><num>20</num></setDrawLevel>

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

</object>

<action label="stage3_boss_move_03">
        <!--自機と反対の方向、角度のズレは±15度程度-->

	<eval name="random1">($_self_cx+$_self_cy+$_player_cx+$_player_cy)%31</eval>
	<eval name="move_pos">($random2*20+40))</eval>
	<eval name="move_dir">$random1+75+180*(320-lt$_self_cx)</eval>
	<eval name="random2">($random1*$_player_cx+$_player_cy)%4</eval>
	<changeDirection>
		<direction type="absolute">$move_dir</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>20</term>
	</changeSpeed>
	<wait>(20+$random2*10)</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>20</term>
	</changeSpeed>
	<wait>30</wait>
</action>



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

<!-- 魔法陣呼び出し -->
<actionRef label="mahoujin"><param>190</param><param>255</param><param>10</param><param>30</param></actionRef>
<!-- 画像呼び出し -->
<createRef label="stage3_boss_et"></createRef>

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

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

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

<repeat><times>4</times>
	<changeSpeed>
		<speed type="absolute">3</speed><term>10</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">-70+140*($_player_cx-lt320)</direction><term>1</term>
	</changeDirection>
	<wait>20</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>10</term>
	</changeSpeed>
	<wait>10</wait>

	<wait>30</wait>
	<actionRef label="boss_sword"></actionRef>
	<wait>5</wait>
	<createRef label="stage3_boss_enemy_create_04_01_aim"><param>30</param><param>$_self_cx</param><param>$_self_cy</param><param>5</param><param>2</param></createRef>
	<createRef label="stage3_boss_enemy_create_04_01_aim"><param>-30</param><param>$_self_cx</param><param>$_self_cy</param><param>5</param><param>2</param></createRef>

	<wait>199</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stage3_boss_fire_4_02"><param>10</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<wait>1</wait>

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

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

	<wait>30</wait>
	<actionRef label="boss_sword"></actionRef>
	<wait>5</wait>
	<createRef label="stage3_boss_enemy_create_04_01_aim"><param>30</param><param>$_self_cx</param><param>$_self_cy</param><param>6</param><param>5</param></createRef>
	<createRef label="stage3_boss_enemy_create_04_01_seq"><param>120</param><param>$_self_cx</param><param>$_self_cy</param><param>6</param><param>5</param></createRef>
	<createRef label="stage3_boss_enemy_create_04_01_seq"><param>120</param><param>$_self_cx</param><param>$_self_cy</param><param>6</param><param>5</param></createRef>

	<wait>199</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stage3_boss_fire_4_02"><param>-10</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<wait>1</wait>

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

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

	<wait>30</wait>
	<actionRef label="boss_sword"></actionRef>
	<wait>4</wait>
	<createRef label="stage3_boss_enemy_create_04_01_abs"><param>90</param><param>320</param><param>300-60</param><param>8</param><param>7</param></createRef>
	<wait>1</wait>
	<createRef label="stage3_boss_enemy_create_04_01_abs"><param>90</param><param>320</param><param>180-60</param><param>8</param><param>6</param></createRef>
	<wait>5</wait>
	<actionRef label="boss_sword"></actionRef>
	<wait>4</wait>
	<createRef label="stage3_boss_enemy_create_04_01_abs"><param>30</param><param>268</param><param>210-60</param><param>8</param><param>5</param></createRef>
	<wait>1</wait>
	<createRef label="stage3_boss_enemy_create_04_01_abs"><param>30</param><param>372</param><param>270-60</param><param>8</param><param>4</param></createRef>
	<wait>5</wait>
	<actionRef label="boss_sword"></actionRef>
	<wait>4</wait>
	<createRef label="stage3_boss_enemy_create_04_01_abs"><param>-30</param><param>372</param><param>210-60</param><param>8</param><param>3</param></createRef>
	<wait>1</wait>
	<createRef label="stage3_boss_enemy_create_04_01_abs"><param>-30</param><param>268</param><param>270-60</param><param>8</param><param>1</param></createRef>

	<wait>199</wait>
	<actionRef label="boss_sword"></actionRef>
	<fireRef label="stage3_boss_fire_4_02"><param>20</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<fireRef label="stage3_boss_fire_4_02_s"><param>60</param><param>2.6</param></fireRef>
	<wait>1</wait>

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

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

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

</action>

<create label="stage3_boss_enemy_create_04_01_aim">
	<speed>0</speed>
	<direction type="aim">$1</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>1</vital>
	<enemyRef label="stage3_boss_enemy_04_01"><param>$4</param><param>$5</param></enemyRef>
</create>

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

<create label="stage3_boss_enemy_create_04_01_seq">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>1</vital>
	<enemyRef label="stage3_boss_enemy_04_01"><param>$4</param><param>$5</param></enemyRef>
</create>

<enemy label="stage3_boss_enemy_04_01">
	<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>

		<actionRef label="boss_sword2"></actionRef>
		<createRef label="stage3_boss_enemy_create_04_02"><param>0</param><param>$1</param><param>$2</param></createRef>
		<wait>1</wait>
		<createRef label="stage3_boss_enemy_create_04_02"><param>180</param><param>$1</param><param>$2</param></createRef>

		<wait>60</wait>


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

		<wait>100</wait>
		<wait>100</wait>

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


<create label="stage3_boss_enemy_create_04_02">
	<speed>8</speed>
	<direction type="relative">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage3_boss_enemy_04_02"><param>$2</param><param>$3</param></enemyRef>
</create>

<enemy label="stage3_boss_enemy_04_02">
	<score>0</score>
	<inv>0</inv>
	<prate>0</prate>
	<img type="maskadd">
		<file type="dds">sword2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>16</width><height>64</height>
		<alpha>200</alpha><red>240</red><green>240</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>
	<child>1</child>

	<action>
		<wait>1</wait>
		<actionRef label="enemy_bullet_action8"><param>16</param></actionRef>
		<fireRef label="stage3_boss_fire_4_01"><param>(($_self_cx+$_player_cx)%31)*12</param><param>1.3</param><param>$2</param></fireRef>
		<repeat><times>6</times>
			<fireRef label="stage3_boss_fire_4_01_s"><param>13</param><param>1.3</param><param>$2</param></fireRef>
			<fireRef label="stage3_boss_fire_4_01_s"><param>120</param><param>1.0</param><param>$2</param></fireRef>
			<fireRef label="stage3_boss_fire_4_01_s"><param>120</param><param>0.7</param><param>$2</param></fireRef>
			<wait>$1</wait>
		</repeat>

		<repeat><times>5</times>
			<actionRef label="enemy_bullet_action8"><param>16</param></actionRef>
			<repeat><times>6</times>
				<fireRef label="stage3_boss_fire_4_01_s"><param>13</param><param>1.3</param><param>$2</param></fireRef>
				<fireRef label="stage3_boss_fire_4_01_s"><param>120</param><param>1.0</param><param>$2</param></fireRef>
				<fireRef label="stage3_boss_fire_4_01_s"><param>120</param><param>0.7</param><param>$2</param></fireRef>
				<wait>$1</wait>
			</repeat>
		</repeat>
		<vanish/>

	</action>

</enemy>


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

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

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

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

	<action>
		<changeColor>
			<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
		</changeColor>
		<wait>50</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>120</term>
		</changeSpeed>
	</action>

</bullet>

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

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

<bullet label="stage3_boss_bullet_04_02">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>14</radius></collision>
<!--
	<collision type="sync"><left>-14</left><top>-14</top><right>14</right><bottom>14</bottom></collision>
-->
	<img type="normal">
		<file type="dds">sword2</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>48</height>
		<alpha>180</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

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

</bullet>


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

<revenge label="stage3_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>20/2</param><param>$counter_e</param><param>1050</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

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

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


<revenge label="stage3_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>22/2</param><param>$counter_e</param><param>1140</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

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

<revenge label="stage3_boss_03_revenge">

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

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

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

	<!-- *** アイテムの出現 *** -->
	<createRef label="item_create_03"><param>0</param><param>0</param></createRef>
	<createRef label="item_create_03"><param>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>22/2</param><param>$counter_e</param><param>1120</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

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


<revenge label="stage3_boss_04_revenge">

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

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

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<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>24/2</param><param>$counter_e</param><param>1100</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

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


<revenge label="stage3_boss_05_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_stage3"></targetRevenge>

	<wait>1</wait>

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

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

	<wait>1</wait>

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

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

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

</revenge>


</exbulletml>
