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

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

<action label="stage1_middle_boss">

	<!-- *** 第 N 形態 *** -->
	<global name="boss_state">1</global>
	
	<!-- *** ボスの初期ライフ *** -->
	<global name="boss_life">2</global>
	
	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="enemy_create_middle_boss"><param>200</param><param>-12</param></createRef>
	
	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stage1middle"></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="enemy_create_middle_boss">

	<speed>4</speed>
	<direction type="absolute">135</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>850</vital>
	<inv>40</inv>
	<score>90000</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>850</vital>
	<inv>40</inv>
	<score>90000</score>
	<prate>$__middle_boss_prate2</prate>
	<enemyRef label="enemy_middle_boss"></enemyRef>

</create>

<create label="enemy_create_middle_boss3">

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

</create>

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

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

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

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

	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage1_middle_boss_01_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage1_middle_boss_01_action"></actionRef>
<!-- child弾のアイテム化試験用 -->
<!--		<actionRef  label="stage1_middle_boss_01_action_test"></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="stage1_middle_boss_02_revenge"></revengeRef>
		<global name="timer">15</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage1_middle_boss_02_action"></actionRef>
	</repeat>

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

		<revengeRef label="stage1_middle_boss_03_revenge"></revengeRef>
		<global name="timer">8</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage1_middle_boss_03_action"></actionRef>
	</repeat>
</enemy>


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


<action  label="stage1_middle_boss_01_action">

<!-- 自爆まで３周 -->
<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_rand">($_player_cx)%9</eval>

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

	<wait>20</wait>

	<eval name="dir">0</eval>


	<!-- 第１形態 No1 ウィルスばらまき -->
	<repeat><times>6</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>$dir</param><param>255</param><param>8</param><param>4</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>$dir-$_player_cx%60</param><param>8</param><param>4</param><param>255</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01"><param>$dir+$_player_cy%80</param><param>255</param><param>255</param><param>4</param></fireRef>
		<wait>1</wait>
		<wait>3</wait>
		<eval name="dir">$dir_rand+45-(($_player_cx+$_player_cy)%10)*10</eval>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01_ab"><param>$dir</param><param>255</param><param>8</param><param>255</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_ab"><param>$dir-$_player_cx%195</param><param>8</param><param>255</param><param>255</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_ab"><param>$dir+$_player_cy%200</param><param>128</param><param>128</param><param>4</param></fireRef>
		<wait>3</wait>
		<eval name="dir">$dir_rand+60-(($_player_cx+$_player_cy)%7)*20</eval>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01_s"><param>$dir</param><param>100</param><param>8</param><param>128</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>$dir-$_player_cx%195</param><param>128</param><param>4</param><param>255</param></fireRef>
		<wait>1</wait>
		<fireRef label="middle_boss_fire_01_s"><param>$dir+$_player_cy%200</param><param>128</param><param>64</param><param>4</param></fireRef>
		<wait>8</wait>
		<eval name="dir">$dir_rand+30-(($_player_cx+$_player_cy)%7)*20</eval>
		<evaladd name="dir_rand">($dir_rand+$dir)%43</evaladd>
	</repeat>

	<!-- 移動 -->
	<changeDirection>
		<direction type="absolute">-85</direction><term>1</term>
	</changeDirection>

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

	<wait>60</wait>

	<!-- 第１形態 No2 9Wayねじれ -->

	<actionRef label="9way"></actionRef>

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

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

	<wait>85</wait>

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

	<wait>30</wait>

	<actionRef label="9way"></actionRef>

	<!-- 移動 -->
	<changeDirection>
		<direction type="absolute">-95</direction><term>1</term>
	</changeDirection>

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

	<wait>48-3</wait>

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

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

	<wait>60</wait>

	<!-- 第１形態 No3 ○ばらまき -->

	<eval name="main_dir">-225</eval>
	<eval name="sub_dir">0</eval>
	<repeat><times>45</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_04"><param>$main_dir</param><param>$sub_dir</param></fireRef>
			<evaladd name="sub_dir">45</evaladd>
		</repeat>
		<wait>2</wait>
		<evaladd name="main_dir">12</evaladd>
	</repeat>

	<wait>60</wait>

	<repeat><times>45</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<repeat><times>8</times>
			<fireRef label="middle_boss_fire_04"><param>$main_dir</param><param>$sub_dir</param></fireRef>
			<evaladd name="sub_dir">45</evaladd>
		</repeat>
		<wait>2</wait>
		<evaladd name="main_dir">-12</evaladd>
	</repeat>
	<wait>45-3</wait>

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

</repeat>

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


</action>

<action label="9way">
	<eval name="dist">-15</eval>
	<eval name="dist2">30</eval>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_03"><param>0</param><param>2.0</param></fireRef>
	<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.6</param></fireRef>
	<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.4</param></fireRef>
	<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.2</param></fireRef>
	<wait>1</wait>

	<repeat><times>4</times>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03_s"><param>$dist-12</param><param>2.0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.8</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.6</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.4</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.2</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>$dist2-12</param><param>2.0</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.8</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.6</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.4</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>3</param><param>1.2</param></fireRef>
		<wait>1</wait>
		<eval name="dist">$dist-30</eval>
		<eval name="dist2">$dist2+30</eval>
	</repeat>
</action>

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

<fire label="middle_boss_fire_01_ab">
	<speed>0</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="middle_boss_bullet_01"><param>$2</param><param>$3</param><param>$4</param></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</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="middle_boss_bullet_03"><param>$2</param></bulletRef>
</fire>

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

<fire label="middle_boss_fire_04">
	<speed>3</speed>
	<direction type="aim">$2</direction>
	<bulletRef label="middle_boss_bullet_04"><param>$1</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>


	<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.9</speed><term>8</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>20</width><height>20</height>
		<alpha>255</alpha><red>4</red><green>3</green><blue>242</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

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

</bullet>

<bullet label="middle_boss_bullet_04">

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

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


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

		<changeSpeed>
			<speed type="absolute">2.8</speed><term>20</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">$1</direction><term>1</term>
		</changeDirection>

	</action>

</bullet>

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

<action  label="stage1_middle_boss_02_action">

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

	<changePosition type="center">
		<x>320</x><y>170</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>

	<wait>70</wait>
	<eval name="main_dir">160</eval>
<!-- １５周で自爆 -->
	<repeat><times>15</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_05_ab"><param>$main_dir</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
		<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>

		<wait>4</wait>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05_s"><param>6</param></fireRef>
			<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
			<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
			<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
			<wait>4</wait>
		</repeat>
		<repeat><times>7</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_05_s"><param>-6</param></fireRef>
			<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
			<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
			<fireRef label="middle_boss_fire_05_s"><param>90</param></fireRef>
			<wait>4</wait>
		</repeat>		


		<repeat><times>3</times>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<repeat><times>12</times>
				<fireRef label="middle_boss_fire_06_s"><param>10</param></fireRef>
				<wait>1</wait>
			</repeat>
		</repeat>
		<evaladd name="main_dir">21</evaladd>
		<wait>4-3</wait>

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

	</repeat>


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

</action>

<fire label="middle_boss_fire_05_ab">
	<speed>3</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="middle_boss_bullet_05"></bulletRef>
</fire>

<fire label="middle_boss_fire_05_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_05"></bulletRef>
</fire>

<fire label="middle_boss_fire_06_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="middle_boss_bullet_06"></bulletRef>
</fire>

<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">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>18</width><height>18</height>
		<alpha>255</alpha><red>235</red><green>3</green><blue>108</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>

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

	</action>

</bullet>

<bullet label="middle_boss_bullet_06">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>	
	
	<img type="maskadd">
		<file type="dds">dia</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>24</width><height>24</height>
		<alpha>255</alpha><red>12</red><green>255</green><blue>4</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>

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

	</action>

</bullet>


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

<action  label="stage1_middle_boss_03_action">
	<wait>10</wait>
	<actionRef label="mahoujin_middle"><param>190</param><param>4</param><param>5</param><param>225</param></actionRef>
	<wait>20</wait>
	<global name="ttc_start_check">$_ttc_frame</global>
	<global name="miss_start">$_misscount</global>
	<wait>50</wait>

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

<!-- ２周で自爆 -->
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<repeat><times>2</times>
		<changeDirection>
			<direction type="absolute">80</direction><term>1</term>
		</changeDirection>

	<!-- 右に行く -->

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07"><param>$rad</param><param>$spd</param><param>-16</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30-3</wait>

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

	<repeat><times>11</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>20</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30</wait>
	</repeat>

	<!-- 真ん中に行く -->
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07"><param>$rad</param><param>$spd</param><param>-12</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30-3</wait>

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

	<repeat><times>11</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>28</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30</wait>
	</repeat>

	<!-- 左に行く -->

	<changeDirection>
		<direction type="absolute">-80</direction><term>1</term>
	</changeDirection>


		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07"><param>$rad</param><param>$spd</param><param>-16</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30-3</wait>

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


	<repeat><times>11</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>20</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30</wait>
	</repeat>

	<!-- 真ん中に行く -->

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

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07"><param>$rad</param><param>$spd</param><param>-12</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30-3</wait>

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

	<repeat><times>11</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<eval name="rad">12</eval>
		<eval name="spd">2.6</eval>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>18</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
		<wait>1</wait>
	
		<repeat><times>3</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-2</param></fireRef>
			<wait>1</wait>
		</repeat>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-3</param></fireRef>
			<wait>1</wait>
		<repeat><times>2</times>
			<evaladd name="rad">4</evaladd>
			<evaladd name="spd">-0.3</evaladd>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>-8</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<fireRef label="middle_boss_fire_07_s"><param>$rad</param><param>$spd</param><param>90</param><param>$rad/2-4</param></fireRef>
			<wait>1</wait>
		</repeat>
		<wait>30</wait>
	</repeat>

	</repeat> 

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

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

   <wait>100-3</wait>
   <targetRevenge label="enemy_middle_boss"></targetRevenge>

</action>

<!-- パラメータ　大きさ、最終スピード、direction、collisionの半径 -->
<fire label="middle_boss_fire_07">
	<speed>4</speed>
	<direction type="aim">$3</direction>
	<bulletRef label="middle_boss_bullet_07"><param>$1</param><param>$2</param><param>$4</param></bulletRef>
</fire>

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

<bullet label="middle_boss_bullet_07">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>$3</radius></collision>	
	
	<img type="maskadd">
		<file type="dds">bullet64_1</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>$1</width><height>$1</height>
		<alpha>255</alpha><red>40</red><green>80</green><blue>255</blue>
	</img>

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

	</action>
</bullet>


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

<revenge label="stage1_middle_boss_01_revenge">

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

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

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

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

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

	<wait>1</wait>

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

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

<revenge label="stage1_middle_boss_02_revenge">

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

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

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

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

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

	<wait>1</wait>

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

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

<revenge label="stage1_middle_boss_03_revenge">

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

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

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_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_stage1middle"></targetRevenge>

	<wait>1</wait>

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

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

	<wait>1</wait>


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

	<!-- 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>1</param><param>0</param></actionRef>
			<createRef label="item_create_01_etb"><param>-10000</param><param>100000</param></createRef>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
		</repeat>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>18/2</param><param>$counter_e</param><param>760</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="stage1_boss_top_action">

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

	<actionRef label="stage1_2_bgm_title_action"></actionRef>
	<sound label="bgm" type="bgm">
		<track>
			<file type="ogg">11_stage1boss</file>
		</track>
		<play>
			<flag>1</flag><loop>44100*2*2*1</loop>
		</play>
	</sound>


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

	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="stage1_boss_01_create"></createRef>
	
	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stage1"></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="stage1_boss_01_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$__boss_cx</cx><cy>$__boss_cy</cy>
	<vital>1350</vital>
	<inv>40</inv>
	<score>100000</score>
	<prate>$__boss_prate</prate>
	<enemyRef label="stage1_boss_enemy"></enemyRef>
</create>


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

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

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

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

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

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


	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage1_boss_01_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage1_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="stage1_boss_02_revenge"></revengeRef>
		<global name="timer">10</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage1_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="stage1_boss_03_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage1_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="stage1_boss_04_revenge"></revengeRef>
		<global name="timer">15</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage1_boss_04_action"></actionRef>
	</repeat>
</enemy>


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

<!-- ３周で自爆 -->
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
<repeat><times>3</times>
<!-- 第１形態 No1 ダイアばら撒き -->
	<eval name="rl">1</eval>

	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_01"><param>-30*$rl</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
	<wait>2</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>12</param><param>1.7</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>-14</param><param>1.4</param></fireRef>
	<wait>3</wait>
	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_01_s"><param>24*$rl</param><param>1.7</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>-9</param><param>1.7</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>11</param><param>1.4</param></fireRef>
	<wait>3</wait>
	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_01_s"><param>36*$rl</param><param>1.7</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
	<wait>2</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>-26*$rl</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>58*$rl</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
	<wait>4</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>2</param><param>1.4</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>-4</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_01_s"><param>22*$rl</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>-3</param><param>1.4</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>28*$rl</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>-3</param><param>1.4</param></fireRef>
	<fireRef label="stage1_boss_fire_01_s"><param>-70*$rl</param><param>1.7</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_01_s"><param>-3</param><param>1.4</param></fireRef>
	<wait>19</wait>
	<eval name="rl">-1*$rl</eval>
	<wait>1</wait>

	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_01"><param>-40*$rl</param><param>1.7</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>4</param><param>1.7</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>-2</param><param>1.4</param></fireRef>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_01_s"><param>24*$rl</param><param>1.7</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>36*$rl</param><param>1.7</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_01_s"><param>-6</param><param>1.7</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>8</param><param>1.4</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>-26*$rl</param><param>1.7</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>58*$rl</param><param>1.7</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>3</param><param>1.4</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_01_s"><param>-3</param><param>1.4</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>5</param><param>1.7</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>22*$rl</param><param>1.7</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>-7</param><param>1.4</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>28*$rl</param><param>1.7</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>-3</param><param>1.4</param></fireRef>
		<fireRef label="stage1_boss_fire_01_s"><param>-70*$rl</param><param>1.7</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage1_boss_fire_01_s"><param>-3</param><param>1.4</param></fireRef>
		<wait>19</wait>
		<eval name="rl">-1*$rl</eval>
		<wait>1</wait>
	</repeat>
	<wait>29-3</wait>

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


<!-- 自分のいるのと反対へ移動 -->
	<eval name="dir_judge">1-2*($_player_cx-gt320)</eval>
	<wait>1</wait>
	<changeDirection>
		<direction type="absolute">88*$dir_judge</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">2</speed><term>30</term>
	</changeSpeed>
	<wait>68</wait>
	<changeSpeed>
		<speed type="absolute">0</speed><term>30</term>
	</changeSpeed>
	<wait>30</wait>

<!-- 第１形態 No2 板弾 -->
	<eval name="board_dir">180</eval>

	<actionRef label="board"><param>$board_dir</param></actionRef>
	<wait>4</wait>
	<actionRef label="aim_circle"><param>1</param></actionRef>
	<wait>1</wait>
	<changeSpeed>
		<speed type="absolute">1.6</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">-90*$dir_judge</direction><term>1</term>
	</changeDirection>

	<repeat><times>2</times>
		<evaladd name="board_dir">-18</evaladd>
		<actionRef label="board"><param>$board_dir</param></actionRef>
		<wait>4</wait>
		<actionRef label="aim_circle"><param>-1</param></actionRef>
		<wait>4</wait>

		<evaladd name="board_dir">-18</evaladd>
		<actionRef label="board"><param>$board_dir</param></actionRef>
		<wait>4</wait>
		<actionRef label="aim_circle"><param>1</param></actionRef>
		<wait>1</wait>
	</repeat>

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

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


<!-- 中央へ移動 -->
	<changeSpeed>
		<speed type="absolute">2.4</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">92*$dir_judge</direction><term>1</term>
	</changeDirection>

	<wait>70</wait>

	<changeSpeed>
		<speed type="absolute">0</speed><term>30</term>
	</changeSpeed>
	<wait>30</wait>
<!-- 第１形態 No3 丸×ばらまき -->

	<wait>50</wait>
	<eval name="main_dir">-225</eval>
	<eval name="sub_dir">0</eval>
	<repeat><times>40</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<repeat><times>8</times>
			<fireRef label="stage1_boss_fire_04"><param>$main_dir</param><param>$sub_dir</param></fireRef>
			<evaladd name="sub_dir">45</evaladd>
		</repeat>
		<wait>2</wait>
		<repeat><times>8</times>
			<fireRef label="stage1_boss_fire_04"><param>$main_dir+80</param><param>$sub_dir</param></fireRef>
			<evaladd name="sub_dir">45</evaladd>
		</repeat>
		<wait>2</wait>
		<evaladd name="main_dir">15</evaladd>
	</repeat>

	<wait>60</wait>

	<eval name="main_dir">116</eval>
	<eval name="sub_dir2">45</eval>
	<repeat><times>10</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir</param><param>$sub_dir2</param><param>4</param></fireRef>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir</param><param>$sub_dir2</param><param>2</param></fireRef>
			<evaladd name="sub_dir2">90</evaladd>
		</repeat>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir</param><param>$sub_dir2</param><param>0</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir+85</param><param>$sub_dir2</param><param>4</param></fireRef>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir+85</param><param>$sub_dir2</param><param>2</param></fireRef>
			<evaladd name="sub_dir2">90</evaladd>
		</repeat>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir+85</param><param>$sub_dir2</param><param>0</param></fireRef>
		<wait>4</wait>
		<evaladd name="main_dir">-4</evaladd>
	</repeat>

	<repeat><times>30</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir</param><param>$sub_dir2</param><param>4</param></fireRef>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir</param><param>$sub_dir2</param><param>2</param></fireRef>
			<evaladd name="sub_dir2">90</evaladd>
		</repeat>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir</param><param>$sub_dir2</param><param>0</param></fireRef>
		<wait>2</wait>
		<repeat><times>4</times>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir+85</param><param>$sub_dir2</param><param>4</param></fireRef>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir+85</param><param>$sub_dir2</param><param>2</param></fireRef>
			<evaladd name="sub_dir2">90</evaladd>
		</repeat>
			<fireRef label="stage1_boss_fire_04_x"><param>$main_dir+85</param><param>$sub_dir2</param><param>0</param></fireRef>
		<wait>2</wait>
		<evaladd name="main_dir">-22</evaladd>
	</repeat>
	<wait>60-3</wait>

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

</repeat>
<wait>120</wait>
<targetRevenge label="stage1_boss_enemy"></targetRevenge>


</action>

<!-- 板弾action -->
<action label="board">
<!-- param 初期速度、初期方向、wait時間、最終速度 最終角度 他の弾待ちwait -->
	<eval name="last_dir">$1</eval>
	<eval name="wait_time">41</eval>

	<repeat><times>10</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_02"><param>0</param><param>$last_dir</param><param>20</param><param>1.8</param><param>$last_dir</param><param>$wait_time</param></fireRef>
		<fireRef label="stage1_boss_fire_02"><param>0.6</param><param>$last_dir+90</param><param>20</param><param>1.8</param><param>$last_dir</param><param>$wait_time</param></fireRef>
		<fireRef label="stage1_boss_fire_02"><param>0.6</param><param>$last_dir-90</param><param>20</param><param>1.8</param><param>$last_dir</param><param>$wait_time</param></fireRef>
		<fireRef label="stage1_boss_fire_02"><param>1.2</param><param>$last_dir+90</param><param>20</param><param>1.8</param><param>$last_dir</param><param>$wait_time</param></fireRef>
		<fireRef label="stage1_boss_fire_02"><param>1.2</param><param>$last_dir-90</param><param>20</param><param>1.8</param><param>$last_dir</param><param>$wait_time</param></fireRef>
		<wait>1</wait>
		<evaladd name="last_dir">30</evaladd>
		<evaladd name="wait_time">-4</evaladd>
		<wait>3</wait>
	</repeat>

</action>
<!-- 狙い丸弾 action -->
<action label="aim_circle">
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_03"><param>0</param><param>2.2</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>2.0</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.8</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.6</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_03_s"><param>104*$1</param><param>2.2</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>2.0</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.8</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.6</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.4</param></fireRef>
	<wait>1</wait>
	<fireRef label="stage1_boss_fire_03_s"><param>104*$1</param><param>2.2</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>2.0</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.8</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.6</param></fireRef>
	<fireRef label="stage1_boss_fire_03_s"><param>4*$1</param><param>1.4</param></fireRef>
	<wait>1</wait>

</action>


<fire label="stage1_boss_fire_01">
	<speed>2</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage1_boss_bullet_01"><param>$2</param></bulletRef>
</fire>

<fire label="stage1_boss_fire_01_s">
	<speed>2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage1_boss_bullet_01"><param>$2</param></bulletRef>
</fire>

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

<fire label="stage1_boss_fire_03">
	<speed>2</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage1_boss_bullet_03"><param>$2</param></bulletRef>
</fire>

<fire label="stage1_boss_fire_03_s">
	<speed>2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage1_boss_bullet_03"><param>$2</param></bulletRef>
</fire>

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

<fire label="stage1_boss_fire_04_x">
	<speed>$3</speed>
	<direction type="absolute">$2</direction>
	<bulletRef label="stage1_boss_bullet_04_x"><param>$1</param></bulletRef>
</fire>


<bullet label="stage1_boss_bullet_01">
	<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>18</width><height>18</height>
		<alpha>255</alpha><red>235</red><green>38</green><blue>3</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>

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

	</action>
</bullet>


<bullet label="stage1_boss_bullet_02">
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>	-->
	<collision type="sync"><left>-6</left><top>-8</top><right>6</right><bottom>8</bottom></collision>

	
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>32*7</left><top>32</top><right>32*8</right><bottom>64</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	
	<action>
		<wait>$1-1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<wait>$4</wait>
		<changeSpeed>
			<speed type="absolute">$2</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">$3</direction><term>1</term>
		</changeDirection>

	</action>
</bullet>

<bullet label="stage1_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>68</green><blue>210</blue>
	</img>

	<action>

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

	</action>
</bullet>

<bullet label="stage1_boss_bullet_04">

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

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

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

		<changeSpeed>
			<speed type="absolute">2.7</speed><term>20</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">$1</direction><term>1</term>
		</changeDirection>

	</action>

</bullet>


<bullet label="stage1_boss_bullet_04_x">

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

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

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

		<changeSpeed>
			<speed type="absolute">2.7</speed><term>20</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">$1</direction><term>1</term>
		</changeDirection>

	</action>

</bullet>



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

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

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

	<wait>1</wait>

<!-- 弾幕開始 -->
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
<!--連鎖（？）する弾の数-->
	<eval name="chain_bullet">11</eval>
	<eval name="chain_bullet2">11</eval> <!--両側の奴は若干ぬるめ設定を考慮-->
<!--連鎖（？）でできた弾を曲げる角度定義-->
	<eval name="bend_bullet1">14.4</eval>
	<eval name="bend_bullet2">10.5</eval> <!--両側の奴は若干ぬるめ設定を考慮-->
<!--弾の加速時間-->
<!--小さいと弾が描く円が大きくなる、大きいと広がり方が遅くなる-->
	<eval name="acc_bullet1">20</eval>
	<eval name="acc_bullet2">90</eval> <!--ハードでは円を大きくしたいため両側からのやつは-->
                                              <!--違う加速度にした-->
	<wait>1</wait>
<!--連鎖？弾の間隔、小さいと基本的に間隔が狭くなる-->
	<eval name="wait_chain1">12</eval>
	<eval name="wait_chain2">25</eval> <!--両側から来る奴は若干広めに取る-->

<!-- ランダム位置の前回記録 -->
	<global name="pre_position">99</global>

<repeat><times>5</times>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="fire_11"><param>$chain_bullet</param><param>$wait_chain1</param>
                                 <param>$bend_bullet1</param><param>$acc_bullet1</param></fireRef>
	<repeat><times>(20-1)</times>
                <fireRef label="fire_12"><param>$chain_bullet</param><param>$wait_chain1</param>
                                         <param>$bend_bullet1</param><param>$acc_bullet1</param></fireRef>
	</repeat>
	<actionRef label="stage1_boss_random_position01"></actionRef>
	<wait>15</wait>
	<wait>100</wait>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<repeat><times>20</times>
                <fireRef label="fire_13"><param>$chain_bullet</param><param>$wait_chain1</param>
                                         <param>$bend_bullet1</param><param>$acc_bullet1</param></fireRef>
	</repeat>

	<actionRef label="stage1_boss_random_position01"></actionRef>
	<wait>15</wait>
	<wait>100-3</wait>

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


	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
        <fireRef label="fire_11"><param>$chain_bullet2</param><param>$wait_chain2</param>
                                 <param>$bend_bullet2</param><param>$acc_bullet2</param></fireRef>
        <repeat><times>(20-1)</times>
                <fireRef label="fire_12"><param>$chain_bullet2</param><param>$wait_chain2</param>
                                         <param>$bend_bullet2</param><param>$acc_bullet2</param></fireRef>
        </repeat>
        <repeat><times>20</times>
                <fireRef label="fire_13"><param>$chain_bullet2</param><param>$wait_chain2</param>
                                         <param>$bend_bullet2</param><param>$acc_bullet2</param></fireRef>
        </repeat>

	<actionRef label="stage1_boss_random_position01"></actionRef>
	<wait>15</wait>
	<wait>230-3</wait>

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

</repeat>

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

</action>


<fire label="fire_11">
        <speed>0</speed>
        <direction type="aim">0</direction>
	<bulletRef label="bullet_11"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="fire_12">
        <speed>0</speed>
        <direction type="sequence">(360/20)</direction>
	<bulletRef label="bullet_11"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="fire_13">
        <speed>0</speed>
        <direction type="sequence">(360/20)</direction>
	<bulletRef label="bullet_13"><param>$1</param><param>$2</param><param>$3</param><param>$4</param></bulletRef>
</fire>

<fire label="fire_21">
        <speed>0</speed>
        <direction type="relative">$3</direction>
	<bulletRef label="bullet_12"><param>$1</param><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></bulletRef>
</fire>

<fire label="fire_22">
        <speed>0</speed>
        <direction type="relative">(-$3)</direction>
	<bulletRef label="bullet_14"><param>$1</param><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></bulletRef>
</fire>

<bullet label="bullet_11">
	<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>14</width><height>14</height>
		<alpha>255</alpha><red>10</red><green>255</green><blue>50</blue>
	</img>

	<action>
		<changeSpeed>
			<speed>1.8</speed><term>$4</term>
		</changeSpeed>
                <wait>$2</wait>
                <fireRef label="fire_21"><param>($1-1)</param><param>$2</param><param>$3</param><param>$4</param>
                                        <param>50</param><param>10</param><param>255</param></fireRef>
	</action>
</bullet>

<bullet label="bullet_12">
	<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>14</width><height>14</height>
		<alpha>255</alpha><red>$5</red><green>$6</green><blue>$7</blue>
	</img>

	<action>
		<changeSpeed>
			<speed>1.8</speed><term>$4</term>
		</changeSpeed>
                <wait>$2</wait>
                <repeat><times>($1-gt0)</times>
                        <fireRef label="fire_21"><param>($1-1)</param><param>$2</param><param>$3</param><param>$4</param>
                                                <param>$7</param><param>$5</param><param>$6</param></fireRef>
                </repeat>
	</action>
</bullet>

<bullet label="bullet_13">
	<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>14</width><height>14</height>
		<alpha>255</alpha><red>10</red><green>255</green><blue>50</blue>
	</img>

	<action>
		<changeSpeed>
			<speed>1.8</speed><term>$4</term>
		</changeSpeed>
                <wait>$2</wait>
                <fireRef label="fire_22"><param>($1-1)</param><param>$2</param><param>$3</param><param>$4</param>
                                        <param>50</param><param>10</param><param>255</param></fireRef>
	</action>
</bullet>

<bullet label="bullet_14">
	<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>14</width><height>14</height>
		<alpha>255</alpha><red>$5</red><green>$6</green><blue>$7</blue>
	</img>

	<action>
		<changeSpeed>
			<speed>1.8</speed><term>$4</term>
		</changeSpeed>
                <wait>$2</wait>
                <repeat><times>($1-gt0)</times>
                        <fireRef label="fire_22"><param>($1-1)</param><param>$2</param><param>$3</param><param>($4-0)</param>
                                                <param>$7</param><param>$5</param><param>$6</param></fireRef>
                </repeat>
	</action>
</bullet>

<!-- ランダム移動 -->
<action label="stage1_boss_random_position01">

	<eval name="left">240</eval>  <!-- 外に出ないように設定する移動範囲の左端 -->
	<eval name="top">80</eval>  <!-- 外に出ないように設定する移動範囲の上端-->
	<eval name="dis_h">24</eval>  <!-- 移動先ポイントを設定するための間隔（縦） -->
	<eval name="dis_w">36</eval>  <!-- 移動先ポイントを設定するための間隔（横） -->


<!-- 移動場所決定 -->
<!-- 移動場所決定 前回と同じ位置だった場合、+2して再計算-->

	<eval name="position">($_self_cx+$_self_cy+$_player_cx+$_player_cy)%15</eval>

	<repeat><times>$postion-eq$__pre_position</times>
		<eval name="position">($_self_cx+$_self_cy+$_player_cx+$_player_cy+1)%15</eval>
	</repeat>

	<global name="pre_position">$position</global>

<!-- 移動 -->

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

	<wait>1</wait>

	<changePosition type="center">
		<x>$left+$dis_w/2+$dis_w*($position%5)</x><y>$top+$dis_h/2+($position-gt4)*$dis_h+($position-gt9)*$dis_h</y>
	</changePosition>

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

</action>



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

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

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

	<wait>2</wait>


<!-- 弾幕開始 -->
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
<!-- 前の形態が動かないなら、そのまま弾幕開始 -->
	<wait>45</wait>

<!-- 大型弾の×弾その１ -->
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_3_01"><param>45</param><param>20</param><param>45</param></fireRef>
	<fireRef label="stage1_boss_fire_3_01"><param>135</param><param>20</param><param>45</param></fireRef>
	<fireRef label="stage1_boss_fire_3_01"><param>225</param><param>20</param><param>45</param></fireRef>
	<fireRef label="stage1_boss_fire_3_01"><param>315</param><param>20</param><param>45</param></fireRef>


	<eval name="dir_change">1</eval>
	<repeat><times>6</times>

		<changeSpeed>
			<speed type="absolute">1</speed><term>30</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">-70*$dir_change</direction><term>1</term>
		</changeDirection>
		<wait>90</wait>

<!-- 大型弾の×弾その２ -->
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_3_04"><param>45</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_04"><param>135</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_04"><param>225</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_04"><param>315</param><param>20</param><param>45</param></fireRef>

		<wait>60-3</wait>

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

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

<!-- 大型弾の×弾その１ -->
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_3_01"><param>45</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_01"><param>135</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_01"><param>225</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_01"><param>315</param><param>20</param><param>45</param></fireRef>


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

<!-- 大型弾の×弾その２ -->
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_3_04"><param>45-5</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_04"><param>135-5</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_04"><param>225-5</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_04"><param>315-5</param><param>20</param><param>45</param></fireRef>

		<wait>60</wait>

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

<!-- 大型弾の×弾その１ -->
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_3_01"><param>45+5</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_01"><param>135+5</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_01"><param>225+5</param><param>20</param><param>45</param></fireRef>
		<fireRef label="stage1_boss_fire_3_01"><param>315+5</param><param>20</param><param>45</param></fireRef>

		<eval name="dir_change">$dir_change*(-1)</eval>

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

	</repeat>

<wait>120</wait>

<targetRevenge label="stage1_boss_enemy"></targetRevenge>

</action>


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

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

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


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

<fire label="stage1_boss_fire_3_05">
	<speed>0</speed>
	<direction type="relative">0</direction>
	<bulletRef label="stage1_boss_bullet_3_05"><param>$1</param><param>$2</param><param>$3</param></bulletRef>
</fire>

<fire label="stage1_boss_fire_3_06">
	<speed>3</speed>
	<direction type="absolute">$1</direction>
	<cx>$2</cx><cy>$3</cy>
	<bulletRef label="stage1_boss_bullet_3_06"></bulletRef>
</fire>


<bullet label="stage1_boss_bullet_3_01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>13</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_1</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>30</width><height>30</height>
		<alpha>255</alpha><red>10</red><green>255</green><blue>50</blue>
	</img>
	<eval name="loop">0</eval>
	<action>
		<repeat><times>-1</times>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage1_boss_fire_3_02"><param>(0+$loop)</param><param>$2</param></fireRef>
			<wait>$1</wait>
			<eval name="loop">($loop+1)</eval>
		</repeat>
	</action>
</bullet>

<bullet label="stage1_boss_bullet_3_02">
	<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>16</width><height>16</height>
		<alpha>255</alpha><red>10</red><green>255</green><blue>50</blue>
	</img>

	<action>
		<wait>120</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="stage1_boss_fire_3_03"><param>$1*22.5+$2</param><param>190-(($_self_cx+$_player_cx)%11)*2</param></fireRef>
		<fireRef label="stage1_boss_fire_3_03"><param>$1*22.5+$2+(190-20%$_self_cx)</param><param>10-(($_self_cy+$_player_cy)%11)*2</param></fireRef>
		<vanish/>
	</action>
</bullet>

<bullet label="stage1_boss_bullet_3_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>14</width><height>14</height>
		<alpha>255</alpha><red>10</red><green>2</green><blue>240</blue>
	</img>

	<action>
		<changeSpeed>
			<speed type="absolute">0.2</speed><term>10</term>
		</changeSpeed>
		<wait>10</wait>
		<changeSpeed>
			<speed type="absolute">1.5</speed><term>30</term>
		</changeSpeed>
		<wait>20</wait>
		<changeDirection>
			<direction type="absolute">$1</direction><term>1</term>
		</changeDirection>

	</action>
</bullet>

<bullet label="stage1_boss_bullet_3_04">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>13</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet64_1</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>30</width><height>30</height>
		<alpha>255</alpha><red>10</red><green>255</green><blue>50</blue>
	</img>
	<eval name="loop">0</eval>
	<action>
		<repeat><times>-1</times>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage1_boss_fire_3_05"><param>(0+$loop)</param><param>$2</param><param>1-($loop%2)*2</param></fireRef>
			<wait>$1</wait>
			<evaladd name="loop">1</evaladd>
		</repeat>
	</action>
</bullet>

<bullet label="stage1_boss_bullet_3_05">
	<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>16</width><height>16</height>
		<alpha>255</alpha><red>10</red><green>255</green><blue>50</blue>
	</img>

	<action>
		<wait>120+$1*15</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="stage1_boss_fire_3_06"><param>90+90*$3</param><param>0</param><param>0</param></fireRef>
		<fireRef label="stage1_boss_fire_3_06"><param>90+90*$3</param><param>8</param><param>0</param></fireRef>
		<fireRef label="stage1_boss_fire_3_06"><param>90+90*$3</param><param>-8</param><param>0</param></fireRef>
		<vanish/>
	</action>
</bullet>

<bullet label="stage1_boss_bullet_3_06">
	<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>18</width><height>18</height>
		<alpha>255</alpha><red>255</red><green>1</green><blue>22</blue>
	</img>

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

	</action>
</bullet>




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

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

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

	<changePosition type="center">
		<x>320</x><y>160</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>
	<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>
<wait>55</wait>

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_4_01"></fireRef>

	<createRef label="stage1_boss_create_4_01"><param>320</param><param>60</param><param>10</param></createRef>
	<wait>1</wait>
	<createRef label="stage1_boss_create_4_01"><param>160</param><param>70</param><param>15</param></createRef>
	<wait>1</wait>
	<createRef label="stage1_boss_create_4_01"><param>225</param><param>70</param><param>1</param></createRef>
	<wait>1</wait>
	<createRef label="stage1_boss_create_4_01"><param>480</param><param>40</param><param>32</param></createRef>
	<wait>3</wait>

	<wait>1</wait>
	<eval name="pos_x">$_player_cy+$_self_cx</eval>
	<eval name="pos_y">$_player_cx+$_self_cy</eval>

	<wait>1</wait>
	<createRef label="stage1_boss_create_4_01"><param>195-($pos_x%11)*2</param><param>90</param><param>10</param></createRef>
	<wait>3</wait>
	<createRef label="stage1_boss_create_4_01"><param>335+($pos_x%13)*2</param><param>10+($pos_y%15)</param><param>20</param></createRef>
	<wait>4</wait>
	<createRef label="stage1_boss_create_4_01"><param>410-($pos_x%8)*2</param><param>40+($pos_y%11)*2</param><param>40</param></createRef>
	<wait>2</wait>
	<createRef label="stage1_boss_create_4_01"><param>300-($pos_x%9)*2</param><param>100-($pos_y%12)*2</param><param>35</param></createRef>


<repeat><times>5</times>
	<changeSpeed>
		<speed type="absolute">1.7</speed><term>20</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">80*(1-2*($_player_cx-lt320))</direction><term>1</term>
	</changeDirection>

	<wait>17</wait>
	<wait>43</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_4_01"></fireRef>

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

	<wait>80</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_4_01"></fireRef>

	<changeSpeed>
		<speed type="absolute">1.7</speed><term>20</term>
	</changeSpeed>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<wait>60</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_4_01"></fireRef>

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

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

	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage1_boss_fire_4_01"></fireRef>

	<repeat><times>2</times>
		<changeSpeed>
			<speed type="absolute">1.7</speed><term>20</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">80*(1-2*($_player_cx-lt320))</direction><term>1</term>
		</changeDirection>
		<wait>60</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_4_01"></fireRef>
		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>	

		<wait>80</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_4_01"></fireRef>

		<changeSpeed>
			<speed type="absolute">1.7</speed><term>20</term>
		</changeSpeed>
		<changeDirection>
			<direction type="relative">180</direction><term>1</term>
		</changeDirection>
		<wait>60</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_4_01"></fireRef>

		<changeSpeed>
			<speed type="absolute">0</speed><term>20</term>
		</changeSpeed>
		<wait>80-3</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage1_boss_fire_4_01"></fireRef>

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

	</repeat>

</repeat>

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

</action>

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

<create label="stage1_boss_create_4_02">
	<speed>2</speed>
	<direction type="absolute">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage1_boss_enemy_4_02"><param>$2</param></enemyRef>
</create>

<create label="stage1_boss_create_4_02_s">
	<speed>2</speed>
	<direction type="sequence">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage1_boss_enemy_4_02"><param>$2</param></enemyRef>
</create>

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

	<changeImgSize>
		<width>48</width><height>48</height><term>60</term>
	</changeImgSize>

	<action>
		<wait>60+$1</wait>
		<setReflect>
			<flag>3</flag><num>999</num>
		</setReflect>
		<changeSpeed>
			<speed type="absolute">0.3</speed><term>45</term>
		</changeSpeed>
		<changeDirection>
			<direction type="absolute">90*(1-2*($_self_cx-gt320))</direction><term>1</term>
		</changeDirection>

		<repeat><times>-1</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<createRef label="stage1_boss_create_4_02"><param>180</param><param>1.4</param></createRef>
			<createRef label="stage1_boss_create_4_02_s"><param>0</param><param>1.3</param></createRef>
			<createRef label="stage1_boss_create_4_02_s"><param>0</param><param>1.2</param></createRef>
			<createRef label="stage1_boss_create_4_02_s"><param>0</param><param>1.1</param></createRef>
			<wait>52+15</wait>

			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage1_boss_fire_4_02"><param>180</param><param>2.0</param></fireRef>
			<fireRef label="stage1_boss_fire_4_02_s"><param>0</param><param>1.8</param></fireRef>
			<fireRef label="stage1_boss_fire_4_02_s"><param>0</param><param>1.6</param></fireRef>
			<fireRef label="stage1_boss_fire_4_02_s"><param>0</param><param>1.4</param></fireRef>
			<fireRef label="stage1_boss_fire_4_02_s"><param>0</param><param>1.2</param></fireRef>
			<wait>52+15</wait>

		</repeat>
	</action>

</enemy>

<enemy label="stage1_boss_enemy_4_02">
	<score>10</score>
	<inv>0</inv>
	<prate>0.12</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<buzz type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></buzz>
	<flag>7</flag>
	<revengeRef label="stage1_boss_revenge_4_01"></revengeRef>
	<img type="maskadd">
		<file type="dds">circle_enemy</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>12</width><height>12</height>
		<alpha>255</alpha><red>128</red><green>128</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>
	</action>
</enemy>

<fire label="stage1_boss_fire_4_01">
	<speed>2</speed>
	<direction type="aim">0</direction>
	<bulletRef label="stage1_boss_bullet_4_01"></bulletRef>
</fire>

<fire label="stage1_boss_fire_4_02">
	<speed>2</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage1_boss_bullet_4_02"><param>$2</param></bulletRef>
</fire>

<fire label="stage1_boss_fire_4_02_s">
	<speed>2</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage1_boss_bullet_4_02"><param>$2</param></bulletRef>
</fire>


<bullet label="stage1_boss_bullet_4_01">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>13</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet</file>
		<left>32*5</left><top>0</top><right>32*6</right><bottom>32</bottom>
		<width>32</width><height>32</height>
		<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue>
	</img>
	<action>
		<changeSpeed>
			<speed type="absolute">1.1</speed><term>30</term>
		</changeSpeed>
	</action>
</bullet>

<bullet label="stage1_boss_bullet_4_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>3</green><blue>15</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>30</term>
		</changeSpeed>
	</action>
</bullet>



<revenge label="stage1_boss_revenge_4_01">
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<soundRef label="enemy_break2"></soundRef>
	<actionRef label="explosion_action_small"></actionRef>
	<wait>1</wait>
	<changeColor>
		<alpha>32</alpha><red>0</red><green>0</green><blue>0</blue><term>5</term>
	</changeColor>
	<wait>5</wait>
	<vanish></vanish>
</revenge>



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

<revenge label="stage1_boss_01_revenge">

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

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

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

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

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


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

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

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

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

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


<revenge label="stage1_boss_02_revenge">

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

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

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

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


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

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

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>22/2</param><param>$counter_e</param><param>1300</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="stage1_boss_03_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>

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

	<wait>1</wait>

	<!-- *** アイテムの出現 *** -->
	<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>

	<!-- *** うちかえし *** -->
	<actionRef label="revenge_bullet_boss"/>
	<wait>30</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>1280</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

	<wait>60</wait>

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


<revenge label="stage1_boss_04_revenge">

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

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


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

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<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_stage1"></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>7</param></actionRef>
			<createRef label="item_create_01_etb"><param>-17000</param><param>450000</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>1660</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>
