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

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

<action label="stage2A_middle_boss">

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

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


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

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

</action>



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

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

<create label="enemy_create_middle_boss">

	<speed>4</speed>
	<direction type="absolute">-135</direction>
	<cx>$1</cx><cy>$2</cy>
 	<vital>1200</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>900</vital>
	<inv>40</inv>
	<score>90000</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_02_middle"></presentRef>

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

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

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

	</repeat>
	<repeat><times>$__boss_state-eq2</times>

		<revengeRef label="stage2A_middle_boss_02_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2A_middle_boss_02_action"></actionRef>
	</repeat>
</enemy>


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


<action  label="stage2A_middle_boss_01_action">

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

	<wait>19</wait>

	<changeDirection>
		<direction type="absolute">30-60*($_player_cx-gt320)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">0.5</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>

<!-- 自爆まで４周 -->
<repeat><times>4</times>
<!-- 狙いウィルス -->
	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>255</param><param>8</param><param>4</param></fireRef>
		<fireRef label="middle_boss_fire_01"><param>30</param><param>255</param><param>8</param><param>255</param></fireRef>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>8</param><param>255</param><param>255</param></fireRef>

		<wait>4</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>-60</param><param>2</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>120</param><param>2</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>-55</param><param>2</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>110</param><param>2</param></fireRef>
		<wait>5</wait>
		
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>128</param><param>128</param><param>4</param></fireRef>
		<fireRef label="middle_boss_fire_01"><param>30</param><param>8</param><param>4</param><param>255</param></fireRef>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>100</param><param>8</param><param>128</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>-60</param><param>2</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>120</param><param>2</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>-55</param><param>2</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>110</param><param>2</param></fireRef>
		<wait>5</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>255</param><param>255</param><param>4</param></fireRef>
		<fireRef label="middle_boss_fire_01"><param>30</param><param>128</param><param>4</param><param>255</param></fireRef>
		<fireRef label="middle_boss_fire_01"><param>-30</param><param>128</param><param>64</param><param>4</param></fireRef>

		<wait>4</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>-60</param><param>2</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>120</param><param>2</param></fireRef>
		<wait>4</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>-55</param><param>2</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>110</param><param>2</param></fireRef>

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


	<!-- 移動 -->
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>

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

	<wait>40-3</wait>

	<eval name="move_dir">$_player_cx%2</eval>

	<changeDirection>
		<direction type="absolute">60-120*$move_dir</direction><term>1</term>
	</changeDirection>

<!-- 弾丸+バラまき -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>30</term>
	</changeSpeed>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_04"></fireRef>

	<wait>30</wait>

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

	<wait>120</wait>

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

	<wait>30</wait>

	<changeDirection>
		<direction type="absolute">90*($move_dir*2-1)</direction><term>1</term>
	</changeDirection>

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

	<wait>85</wait>

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

	<wait>120</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_04"></fireRef>

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

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



<!-- レーザーばらまき -->

	<repeat><times>2</times>
		<createRef label="middle_boss_lazer_org"><param>$_self_cx</param><param>$_self_cy</param></createRef>
		<wait>27</wait>
		<createRef label="middle_boss_lazer_org2"><param>$_self_cx</param><param>$_self_cy</param></createRef>
		<wait>42</wait>
		<createRef label="middle_boss_lazer_org"><param>$_self_cx</param><param>$_self_cy</param></createRef>
		<wait>27</wait>
		<createRef label="middle_boss_lazer_org2"><param>$_self_cx</param><param>$_self_cy</param></createRef>
		<wait>42</wait>
	</repeat>

	<wait>180-3</wait>

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

	<changeDirection>
		<direction type="absolute">30-60*($_player_cx-gt320)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">0.5</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>


</repeat>

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

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

</action>

<!-- レーザーaction -->
<create label="middle_boss_lazer_org">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>1</vital>
	<enemyRef label="middle_boss_lazer_org"><param>$3</param></enemyRef>
</create>

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

	<action>

		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_06_laser"><param>0</param></fireRef>
		<wait>1</wait>
		<wait>3</wait>

		<repeat><times>12</times>
			<wait>10</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_06_s_laser"><param>30</param></fireRef>
			<wait>1</wait>		
			<wait>3</wait>
		
		</repeat>
		<vanish/>
	</action>
</enemy>

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

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

	<action>

		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_06_r_laser"><param>8</param></fireRef>
		<wait>1</wait>
		<wait>3</wait>

		<repeat><times>12</times>
			<wait>6</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_06_s_r_laser"><param>-32</param></fireRef>
			<wait>1</wait>		
			<wait>3</wait>
		</repeat>
		<vanish/>
	</action>
</enemy>

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

<fire label="middle_boss_fire_02">
	<speed>2</speed>
	<direction type="relative">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_02"><param>$2</param><param>$3</param><param>$4</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>0.5</speed>
	<direction type="aim">0</direction>
	<bulletRef label="middle_boss_bullet_04"></bulletRef>
</fire>

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

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

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

<fire label="middle_boss_fire_06_s_laser">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_06_laser"></bulletRef>
</fire>

<fire label="middle_boss_fire_06_s_r_laser">
	<speed>0</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_06_r_laser"></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>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_02"><param>135</param><param>$1</param><param>$2</param><param>$3</param></fireRef>
		<fireRef label="middle_boss_fire_02"><param>-135</param><param>$1</param><param>$2</param><param>$3</param></fireRef>
		<changeSpeed>
			<speed type="absolute">1.3</speed><term>8</term>
		</changeSpeed>
		<wait>20</wait>
		<changeSpeed>
			<speed type="absolute">3.2</speed><term>85</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</speed><term>11</term>
		</changeSpeed>
	</action>

</bullet>

<bullet label="middle_boss_bullet_03">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>4</radius></collision>	
	
	<img type="maskadd">
		<file type="dds">dia32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>20</width><height>20</height>
		<alpha>255</alpha><red>255</red><green>68</green><blue>5</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>8</radius></collision>	-->

	<collision type="sync"><left>-9</left><top>-12</top><right>9</right><bottom>12</bottom></collision>

	<img type="maskadd">
		<file type="dds">gun_bullet</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>48</width><height>48</height>
		<alpha>255</alpha><red>5</red><green>255</green><blue>68</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">2.7</speed><term>80</term>
		</changeSpeed>
		<wait>1</wait>

		<repeat><times>-1</times>
		<eval name="child_dir">$_player_cx%20</eval>
		<eval name="child_sp">1+($_player_cy%10)/10</eval>
		<actionRef label="enemy_bullet_action3"><param>24</param></actionRef>
		<fireRef label="middle_boss_fire_05"><param>$child_dir</param><param>10-$child_dir</param><param>-2</param><param>$child_sp</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_05"><param>$child_dir*(-1)</param><param>-5</param><param>5-$child_dir</param><param>$child_sp</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_05"><param>$child_dir</param><param>6</param><param>6-$child_dir</param><param>$child_sp</param></fireRef>
		<wait>4</wait>

		<eval name="child_dir">($_self_cx+$_player_cy)%20</eval>
		<eval name="child_sp">1+(($_self_cx+$_player_cy)%10)/10</eval>
		<actionRef label="enemy_bullet_action3"><param>24</param></actionRef>
		<fireRef label="middle_boss_fire_05"><param>$child_dir</param><param>10-$child_dir</param><param>-1</param><param>$child_sp</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_05"><param>$child_dir*(-1)</param><param>5</param><param>5-$child_dir</param><param>$child_sp</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_05"><param>$child_dir</param><param>-3</param><param>7-$child_dir</param><param>$child_sp</param></fireRef>
		<wait>4</wait>

		<eval name="child_dir">($_self_cy+$_player_cx)%20</eval>
		<eval name="child_sp">1+($_self_cy%10)/10</eval>
		<actionRef label="enemy_bullet_action3"><param>24</param></actionRef>
		<fireRef label="middle_boss_fire_05"><param>$child_dir</param><param>3</param><param>0</param><param>$child_sp</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_05"><param>$child_dir*(-1)</param><param>-5</param><param>4-$child_dir</param><param>$child_sp</param></fireRef>
		<wait>4</wait>
		<fireRef label="middle_boss_fire_05"><param>$child_dir</param><param>10-$child_dir</param><param>7-$child_dir</param><param>$child_sp</param></fireRef>
		<wait>4</wait>
		</repeat>

	</action>

</bullet>

<bullet label="middle_boss_bullet_05">

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

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

</bullet>

<bullet label="middle_boss_bullet_06_laser">
	<collision type="sync"><left>-2</left><top>-7</top><right>2</right><bottom>7</bottom></collision>
	
	<img type="maskadd">
		<file type="dds">laser32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>4</width><height>4</height>
		<alpha>255</alpha><red>120</red><green>120</green><blue>255</blue>
	</img>	
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeImgSize>
			<width>4</width><height>16</height><term>3</term>
		</changeImgSize>
		<createRef label="middle_boss_bullet_06_laser_back"><param>$_self_cx</param><param>$_self_cy</param><param>7</param><param>220</param><param>100</param><param>100</param><param>255</param><param>2</param></createRef>
		<wait>1</wait>
		<createRef label="middle_boss_bullet_06_laser_back"><param>$_self_cx</param><param>$_self_cy</param><param>7</param><param>220</param><param>100</param><param>100</param><param>255</param><param>1</param></createRef>
		<wait>1</wait>
		<changeSpeed>
			<speed>2.4</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>

<bullet label="middle_boss_bullet_06_r_laser">
	<collision type="sync"><left>-2</left><top>-7</top><right>2</right><bottom>7</bottom></collision>
	
	<img type="maskadd">
		<file type="dds">laser32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>4</width><height>4</height>
		<alpha>255</alpha><red>255</red><green>120</green><blue>120</blue>
	</img>	
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeImgSize>
			<width>4</width><height>16</height><term>3</term>
		</changeImgSize>
		<createRef label="middle_boss_bullet_06_r_laser_back"><param>$_self_cx</param><param>$_self_cy</param><param>7</param><param>220</param><param>255</param><param>100</param><param>80</param><param>2</param></createRef>
		<wait>1</wait>
		<createRef label="middle_boss_bullet_06_r_laser_back"><param>$_self_cx</param><param>$_self_cy</param><param>7</param><param>220</param><param>255</param><param>100</param><param>80</param><param>1</param></createRef>
		<wait>1</wait>
		<changeSpeed>
			<speed>2.4</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>

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

</create>

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

</create>

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

<action  label="stage2A_middle_boss_02_action">

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

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

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

<!-- 2種類の7 way  -->
	<changeDirection>
		<direction type="absolute">45-90*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">0.3</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>

<repeat><times>12</times>
<!-- 1回目 -->
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_07"><param>-90</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>2</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>
	<wait>51</wait>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_07"><param>-90</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>2</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>
	<wait>42</wait>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_08"><param>-90</param><param>0.8</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>0.9</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>1.0</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>1.1</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>1.0</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>0.9</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>0.8</param></fireRef>
	<wait>7</wait>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<wait>1</wait>

<!-- 2回目 -->
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_07"><param>-90</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>2</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.5</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>
	<wait>51</wait>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_07"><param>-90</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>2</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>2-0.3</param></fireRef>
	<wait>1</wait>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.9</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.9-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.8</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.8-0.3</param></fireRef>

	<fireRef label="middle_boss_fire_07_s"><param>30</param><param>1.7</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.15</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>0</param><param>1.7-0.3</param></fireRef>
	<wait>42</wait>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_08"><param>-90</param><param>0.8</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>0.9</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>1.0</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>1.1</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>1.0</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>0.9</param></fireRef>
	<fireRef label="middle_boss_fire_08_s"><param>30</param><param>0.8</param></fireRef>
	<wait>7-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

	<changeDirection>
		<direction type="absolute">45-90*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<wait>1</wait>

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

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

</action>

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

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

<bullet label="middle_boss_bullet_07">

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

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

</bullet>

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

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

<bullet label="middle_boss_bullet_08">

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

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

</bullet>



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

<revenge label="stage2A_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>18/2</param><param>$counter_e</param><param>860</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>40</param></actionRef>
	</repeat>

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

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

<revenge label="stage2A_middle_boss_02_revenge">

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

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

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


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

	<wait>1</wait>

	<!-- 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>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss"><param>20/2</param><param>$counter_e</param><param>660</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>60</param></actionRef>
	</repeat>

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

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



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

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

	<sound label="bgm" type="bgm">
		<track>
			<file type="ogg">12_stage2boss</file>
		</track>
		<play>
			<flag>1</flag><loop>44100*2*2*8</loop>
		</play>
	</sound>
	<actionRef label="stage2_2_bgm_title_action"></actionRef>


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

	<!-- 出現用ボスを消去 -->
	<targetRevenge label="stage2A_boss_enemy_appear"></targetRevenge>
	
	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="stage2A_boss_01_create"></createRef>
	
	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<wait>1</wait>
	<createRef label="boss_life_create"></createRef>
	<!-- *** ボスの名称表示オブジェクト作成 *** -->
	<createRef label="boss_name_stage2"></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="stage2A_boss_01_create">
	<speed>0</speed>
	<direction type="absolute">180</direction>
	<cx>$__boss_cx</cx><cy>$__boss_cy</cy>
	<vital>$__vital_1</vital>
	<inv>40</inv>
	<score>140000</score>
	<prate>$__boss_prate</prate>
	<enemyRef label="stage2A_boss_enemy"></enemyRef>
</create>


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

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

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

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

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

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


	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage2A_boss_01_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2A_boss_01_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq2</times>
		<revengeRef label="stage2A_boss_02_revenge"></revengeRef>
		<global name="timer">13</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2A_boss_02_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq3</times>
		<revengeRef label="stage2A_boss_03_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2A_boss_03_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq4</times>
		<revengeRef label="stage2A_boss_04_revenge"></revengeRef>
		<global name="timer">14</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2A_boss_04_action"></actionRef>
	</repeat>
</enemy>


<!-- ********************************************************************* -->
<!-- *** ボスのアクション                                              *** -->
<!-- *** 第１形態                                                      *** -->
<action  label="stage2A_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>4</times>
<!-- 銃弾＋ばらまき　-->
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_01_blue"><param>25</param></fireRef>
	<fireRef label="stage2A_boss_fire_01_blue"><param>-25</param></fireRef>

	<wait>80</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_01_red"><param>40</param></fireRef>
	<fireRef label="stage2A_boss_fire_01_red"><param>-40</param></fireRef>

	<eval name="mv_dir">($_player_cx%2)*2-1</eval>
	<changeSpeed>
		<speed type="absolute">1.2</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">110*$mv_dir</direction><term>1</term>
	</changeDirection>

	<wait>40</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_01_blue"><param>80</param></fireRef>
	<fireRef label="stage2A_boss_fire_01_blue"><param>-80</param></fireRef>
	<wait>30</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_01_red"><param>140</param></fireRef>
	<fireRef label="stage2A_boss_fire_01_red"><param>-140</param></fireRef>

	<wait>10</wait>

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

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

	<changeSpeed>
		<speed type="absolute">1.2</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">0</direction><term>1</term>
	</changeDirection>

<!-- 銃弾円＋ねらい -->
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_03_blue"><param>0</param><param>0</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage2A_boss_fire_03_blue_s"><param>30</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage2A_boss_fire_03_blue_s"><param>30</param><param>1</param></fireRef>
	</repeat>
	<wait>9</wait>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_03_red"><param>0</param><param>0</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage2A_boss_fire_03_red_s"><param>30</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage2A_boss_fire_03_red_s"><param>30</param><param>1</param></fireRef>
	</repeat>

	<wait>9</wait>
	<wait>10</wait>

	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_03_red_s"><param>30-2*$mv_dir</param><param>0</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage2A_boss_fire_03_red_s"><param>30</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage2A_boss_fire_03_red_s"><param>30</param><param>1</param></fireRef>
	</repeat>

	<wait>9</wait>

	<changeDirection>
		<direction type="absolute">-88*$mv_dir</direction><term>80</term>
	</changeDirection>

	<repeat><times>6</times>
		<wait>10</wait>
	
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_03_red_s"><param>30-2*$mv_dir</param><param>0</param></fireRef>
		<repeat><times>5</times>
			<fireRef label="stage2A_boss_fire_03_red_s"><param>30</param><param>0</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>6</times>
			<fireRef label="stage2A_boss_fire_03_red_s"><param>30</param><param>1</param></fireRef>
		</repeat>

		<wait>9</wait>
	</repeat>
	<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
	<fireRef label="stage2A_boss_fire_03_blue"><param>0</param><param>0</param></fireRef>
	<repeat><times>5</times>
		<fireRef label="stage2A_boss_fire_03_blue_s"><param>30</param><param>0</param></fireRef>
	</repeat>
	<wait>1</wait>
	<repeat><times>6</times>
		<fireRef label="stage2A_boss_fire_03_blue_s"><param>30</param><param>1</param></fireRef>
	</repeat>
	<wait>9</wait>

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

	<wait>60</wait>

	<changeSpeed>
		<speed type="absolute">1.2</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">140*$mv_dir</direction><term>1</term>
	</changeDirection>

	<wait>60</wait>

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

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

<!-- 四角弾 -->
	<repeat><times>7</times>
		<eval name="bul_dir">175+$_player_cx%11</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_04_blue"><param>$bul_dir</param></fireRef>
		<fireRef label="stage2A_boss_fire_04_blue"><param>$bul_dir-20</param></fireRef>
		<fireRef label="stage2A_boss_fire_04_blue"><param>$bul_dir-40</param></fireRef>

		<repeat><times>5</times>
			<wait>1</wait>
			<evaladd name="bul_dir">60</evaladd>
			<fireRef label="stage2A_boss_fire_04_blue"><param>$bul_dir</param></fireRef>
			<fireRef label="stage2A_boss_fire_04_blue"><param>$bul_dir-20</param></fireRef>
			<fireRef label="stage2A_boss_fire_04_blue"><param>$bul_dir-40</param></fireRef>
		</repeat>

		<wait>25</wait>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<evaladd name="bul_dir">75</evaladd>
		<fireRef label="stage2A_boss_fire_04_red"><param>$bul_dir</param></fireRef>
		<fireRef label="stage2A_boss_fire_04_red"><param>$bul_dir-20</param></fireRef>
		<fireRef label="stage2A_boss_fire_04_red"><param>$bul_dir-40</param></fireRef>

		<repeat><times>5</times>
			<wait>1</wait>
			<evaladd name="bul_dir">60</evaladd>
			<fireRef label="stage2A_boss_fire_04_red"><param>$bul_dir</param></fireRef>
			<fireRef label="stage2A_boss_fire_04_red"><param>$bul_dir-20</param></fireRef>
			<fireRef label="stage2A_boss_fire_04_red"><param>$bul_dir-40</param></fireRef>
		</repeat>

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

</repeat>

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


</action>

<fire label="stage2A_boss_fire_01_blue">
	<speed>0.5</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage2A_boss_bullet_01_blue"><param>$2</param></bulletRef>
</fire>

<bullet label="stage2A_boss_bullet_01_blue">

	<collision type="sync"><left>-5</left><top>-7</top><right>5</right><bottom>7</bottom></collision>

	<img type="maskadd">
		<file type="dds">gun_bullet32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>24</width><height>24</height>
		<alpha>255</alpha><red>5</red><green>85</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">2.4</speed><term>80</term>
		</changeSpeed>
		<wait>1</wait>

		<repeat><times>-1</times>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage2A_boss_fire_02_blue"><param>40+$_self_cx%6</param><param>$_player_cy%30+30</param></fireRef>
			<fireRef label="stage2A_boss_fire_02_blue"><param>40+$_self_cx%6</param><param>$_player_cy%30+5</param></fireRef>
			<wait>28</wait>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage2A_boss_fire_02_blue"><param>-40-$_self_cy%6</param><param>$_player_cx%30+30</param></fireRef>
			<fireRef label="stage2A_boss_fire_02_blue"><param>-40-$_self_cy%6</param><param>$_player_cx%30+5</param></fireRef>
			<wait>28</wait>
		</repeat>

	</action>

</bullet>

<fire label="stage2A_boss_fire_01_red">
	<speed>0.5</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage2A_boss_bullet_01_red"><param>$2</param></bulletRef>
</fire>

<bullet label="stage2A_boss_bullet_01_red">

	<collision type="sync"><left>-5</left><top>-7</top><right>5</right><bottom>7</bottom></collision>

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

	<action>
		<changeSpeed>
			<speed type="absolute">2.4</speed><term>80</term>
		</changeSpeed>
		<wait>1</wait>

		<repeat><times>-1</times>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage2A_boss_fire_02_red"><param>40+$_self_cx%6</param><param>$_player_cx%30+30</param></fireRef>
			<fireRef label="stage2A_boss_fire_02_red"><param>40+$_self_cx%6</param><param>$_player_cx%30+5</param></fireRef>
			<wait>29</wait>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage2A_boss_fire_02_red"><param>-40-$_self_cy%6</param><param>$_player_cy%30+30</param></fireRef>
			<fireRef label="stage2A_boss_fire_02_red"><param>-40-$_self_cy%6</param><param>$_player_cy%30+5</param></fireRef>
			<wait>29</wait>
		</repeat>

	</action>

</bullet>

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

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

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

<fire label="stage2A_boss_fire_02_red">
	<speed>0</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="stage2A_boss_bullet_02_red"><param>$2</param></bulletRef>
</fire>
<bullet label="stage2A_boss_bullet_02_red">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>5</radius></collision>
	<img type="maskadd">
		<file type="dds">bullet32_1</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>12</width><height>12</height>
		<alpha>255</alpha><red>255</red><green>5</green><blue>2</blue>
	</img>

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

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

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

<bullet label="stage2A_boss_bullet_03_blue">

	<collision type="sync"><left>-3</left><top>-4</top><right>3</right><bottom>4</bottom></collision>

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

	<action>
		<wait>3+$1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>40</term>
		</changeSpeed>
		<wait>41</wait>
		<changeSpeed>
			<speed type="absolute">1.8</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="aim">0</direction><term>1</term>
		</changeDirection>
	</action>

</bullet>

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

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

<bullet label="stage2A_boss_bullet_03_red">

	<collision type="sync"><left>-3</left><top>-4</top><right>3</right><bottom>4</bottom></collision>

	<img type="maskadd">
		<file type="dds">gun_bullet32</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>95</green><blue>2</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>3+$1</wait>
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>50</term>
		</changeSpeed>
		<wait>45</wait>
		<changeSpeed>
			<speed type="absolute">1.6</speed><term>60</term>
		</changeSpeed>
	</action>

</bullet>

<fire label="stage2A_boss_fire_04_blue">
	<speed>3</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage2A_boss_bullet_04_blue"></bulletRef>
</fire>

<bullet label="stage2A_boss_bullet_04_blue">

	<collision type="sync"><left>-5</left><top>-8</top><right>5</right><bottom>8</bottom></collision>

	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*5</left><top>32*1</top><right>32*6</right><bottom>32*2</bottom>
		<width>16</width><height>20</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>12</direction><term>-1</term>
	</rotateImg>

	<action>
		<changeSpeed>
			<speed type="absolute">0</speed><term>50</term>
		</changeSpeed>
		<wait>55</wait>
		
		<changeDirection>
			<direction type="relative">180</direction><term>30</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.8</speed><term>80</term>
		</changeSpeed>

	</action>

</bullet>


<fire label="stage2A_boss_fire_04_red">
	<speed>3</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage2A_boss_bullet_04_red"></bulletRef>
</fire>

<bullet label="stage2A_boss_bullet_04_red">
	<collision type="sync"><left>-5</left><top>-8</top><right>5</right><bottom>8</bottom></collision>

	<img type="normal">
		<file type="dds">bullet</file>
		<left>32*7</left><top>32*1</top><right>32*8</right><bottom>32*2</bottom>
		<width>16</width><height>20</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>12</direction><term>-1</term>
	</rotateImg>

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

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

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

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

	<wait>2</wait>

	<eval name="bul_dir">175+$_player_cx%11</eval>

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

<repeat><times>13</times>
	<repeat><times>2</times>
		<eval name="bul_wait">7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_2_01"><param>$bul_dir</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<evaladd name="bul_wait">-1</evaladd>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>56</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>2</param><param>$bul_wait</param></fireRef>
		</repeat>

		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_2_02"><param>0</param><param>0</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120+3</param><param>-3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>-6</param><param>3</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120+3+3</param><param>-3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>-6</param><param>3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120+3+3</param><param>-3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>-6</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>3</param><param>0</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<wait>1</wait>
		<evaladd name="bul_dir">20+$_player_cx%11</evaladd>
		<wait>29</wait>

		<eval name="bul_wait">7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_2_01"><param>$bul_dir</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<evaladd name="bul_wait">-1</evaladd>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>48</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>4</param><param>$bul_wait</param></fireRef>
		</repeat>
		<wait>20</wait>
		<evaladd name="bul_dir">20+$_player_cx%11</evaladd>
		<wait>20</wait>

	</repeat>
		<eval name="bul_wait">7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_2_01"><param>$bul_dir</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<evaladd name="bul_wait">-1</evaladd>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>28</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>8</param><param>$bul_wait</param></fireRef>
		</repeat>
<!--
		<fireRef label="stage2A_boss_fire_2_02"><param>0</param><param>0</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120+3</param><param>-3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>-6</param><param>3</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120+3+3</param><param>-3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>-6</param><param>3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120+3+3</param><param>-3</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>-6</param><param>3</param></fireRef>
		<wait>4</wait>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>3</param><param>0</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_02_s"><param>120</param><param>0</param></fireRef>
		<wait>1</wait>
-->
		<wait>11</wait>
		<evaladd name="bul_dir">20+$_player_cx%11</evaladd>
		<wait>29</wait>

		<eval name="bul_wait">7</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_2_01"><param>$bul_dir</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
		<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
		<repeat><times>5</times>
			<wait>1</wait>
			<evaladd name="bul_wait">-1</evaladd>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>16</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
			<fireRef label="stage2A_boss_fire_2_01_s"><param>11</param><param>$bul_wait</param></fireRef>
		</repeat>
		<wait>20</wait>
		<wait>20-3</wait>
		<evaladd name="bul_dir">28+$_player_cx%11</evaladd>

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

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

</action>

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

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

<bullet label="stage2A_boss_bullet_2_01">

	<collision type="sync"><left>-3</left><top>-4</top><right>3</right><bottom>4</bottom></collision>

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

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

	</action>
</bullet>

<fire label="stage2A_boss_fire_2_02">
	<speed>1.5</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage2A_boss_bullet_2_02"><param>$2</param></bulletRef>
</fire>

<fire label="stage2A_boss_fire_2_02_s">
	<speed>1.5</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage2A_boss_bullet_2_02"><param>$2</param></bulletRef>
</fire>


<bullet label="stage2A_boss_bullet_2_02">

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

	<action>
		<wait>40</wait>

		<changeDirection>
			<direction type="relative">$1</direction><term>10</term>
		</changeDirection>

	</action>
</bullet>

<!-- ********************************************************************* -->
<!-- *** ボスのアクション                                              *** -->
<!-- *** 第３形態                                                      *** -->
<action  label="stage2A_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>
	<wait>40</wait>

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

<!-- 弾幕用見えないenemy -->

<createRef label="stage2A_boss_creat_3_01_red"><param>$_self_cx</param><param>$_self_cy</param></createRef>
<wait>23</wait>
<createRef label="stage2A_boss_creat_3_01_blue"><param>$_self_cx</param><param>$_self_cy</param></createRef>
<wait>1</wait>

<eval name="mv_dir">(1-(($_player_cx+$_self_cx)%2)*2)*(40+$_player_cx%20)</eval>

<repeat><times>12</times>

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

	<wait>30</wait>
	<eval name="mv_dir">(1-(($_player_cx+$_self_cx)%2)*2)*(40+$_player_cx%20)</eval>
	<wait>30</wait>

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

	<wait>60</wait>

	<changeSpeed>
		<speed type="absolute">0.8</speed><term>20</term>
	</changeSpeed>
	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>

	<wait>60</wait>

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

	<wait>70</wait>

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

</repeat>

<wait>120</wait>

<targetRevenge label="stage2A_boss_enemy"></targetRevenge>

</action>


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

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

	<action>
		<eval name="def_dir">-210</eval>
		<repeat><times>-1</times>
			<eval name="bul_sp">2.4</eval>
			<eval name="bul_dir">150</eval>
			<wait>1</wait>
			<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_3_03_red"><param>$def_dir</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
			<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.25</param></fireRef>
			<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.5</param></fireRef>

				<wait>1</wait>
				<evaladd name="bul_sp">-0.05</evaladd>
				<evaladd name="bul_dir">-15</evaladd>
				<wait>1</wait>
				<fireRef label="stage2A_boss_fire_3_03_red_s"><param>30</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
				<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.25</param></fireRef>
				<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.5</param></fireRef>

			<repeat><times>6</times>	
				<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
				<repeat><times>3</times>	
					<wait>1</wait>
					<evaladd name="bul_sp">-0.05</evaladd>
					<evaladd name="bul_dir">-15</evaladd>
					<wait>1</wait>
					<fireRef label="stage2A_boss_fire_3_03_red_s"><param>30</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
					<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.25</param></fireRef>
					<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.5</param></fireRef>
				</repeat>
			</repeat>
			<wait>50</wait>

			<eval name="def_dir">$def_dir*(-1)</eval>
			<eval name="bul_sp">2.4</eval>
			<eval name="bul_dir">-150</eval>
			<wait>1</wait>
			<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_3_03_red"><param>$def_dir</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
			<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.25</param></fireRef>
			<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.5</param></fireRef>

				<wait>1</wait>
				<evaladd name="bul_sp">-0.05</evaladd>
				<evaladd name="bul_dir">-15</evaladd>
				<wait>1</wait>
				<fireRef label="stage2A_boss_fire_3_03_red_s"><param>30</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
				<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.25</param></fireRef>
				<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.5</param></fireRef>

			<repeat><times>6</times>	
				<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
				<repeat><times>3</times>	
					<wait>1</wait>
					<evaladd name="bul_sp">-0.05</evaladd>
					<evaladd name="bul_dir">-15</evaladd>
					<wait>1</wait>
					<fireRef label="stage2A_boss_fire_3_03_red_s"><param>30</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
					<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.25</param></fireRef>
					<fireRef label="stage2A_boss_fire_3_03_red_s"><param>0</param><param>$bul_dir</param><param>$bul_sp-0.5</param></fireRef>
				</repeat>
			</repeat>
			<wait>50</wait>
			<eval name="def_dir">$def_dir*(-1)+87+$_player_cx%10</eval>

		</repeat>
	</action>
</enemy>

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

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

	<action>
		<eval name="def_dir">205</eval>
		<repeat><times>-1</times>
			<eval name="bul_sp">2.0</eval>
			<eval name="bul_dir">150</eval>
			<wait>1</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_3_03_blue"><param>$def_dir</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>

			<repeat><times>12</times>
				<wait>1</wait>
				<evaladd name="bul_sp">-0.05</evaladd>
				<evaladd name="bul_dir">-30</evaladd>
				<wait>2</wait>
				<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
				<fireRef label="stage2A_boss_fire_3_03_blue_s"><param>-30</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
			</repeat>
			<wait>100</wait>

			<eval name="def_dir">$def_dir*(-1)</eval>
			<eval name="bul_sp">2.0</eval>
			<eval name="bul_dir">-150</eval>
			<wait>1</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_3_03_blue"><param>$def_dir</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>

			<repeat><times>12</times>
				<wait>1</wait>
				<evaladd name="bul_sp">-0.05</evaladd>
				<evaladd name="bul_dir">30</evaladd>
				<wait>2</wait>
				<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
				<fireRef label="stage2A_boss_fire_3_03_blue_s"><param>30</param><param>$bul_dir</param><param>$bul_sp</param></fireRef>
			</repeat>
			<wait>100</wait>
			<eval name="def_dir">$def_dir*(-1)+90+$_player_cx%9</eval>
		</repeat>
	</action>
</enemy>



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

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

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

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


<bullet label="stage2A_boss_bullet_3_03_red">

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

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


	</action>
</bullet>

<bullet label="stage2A_boss_bullet_3_03_blue">

	<collision type="sync"><left>-3</left><top>-4</top><right>3</right><bottom>4</bottom></collision>

	<img type="maskadd">
		<file type="dds">gun_bullet32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>255</alpha><red>4</red><green>255</green><blue>98</blue>
	</img>

	<imgDirection type="sync">0</imgDirection>

	<action>
		<changeSpeed>
			<speed type="absolute">0</speed><term>40</term>
		</changeSpeed>
		<wait>38</wait>
		<changeDirection>
			<direction type="relative">$1</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">$2</speed><term>40</term>
		</changeSpeed>


	</action>
</bullet>




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

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

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

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

	<wait>2</wait>

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

<!-- 弾幕開始 -->
	<changeDirection>
		<direction type="absolute">90</direction><term>1</term>
	</changeDirection>
	<changeSpeed>
		<speed type="absolute">1.1</speed><term>30</term>
	</changeSpeed>

	<createRef label="stage2A_boss_creat_4_01_red"><param>$_self_cx</param><param>$_self_cy</param></createRef>
	<wait>1</wait>
	<createRef label="stage2A_boss_creat_4_01_blue"><param>$_self_cx</param><param>$_self_cy</param></createRef>


<repeat><times>14</times>

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

</repeat>
<wait>60</wait>
<targetRevenge label="stage2A_boss_enemy"></targetRevenge>

</action>

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

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

	<action>
		<wait>2</wait>

		<repeat><times>-1</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_4_01_red"><param>10</param><param>0</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>0</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>1</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>

		<repeat><times>4</times>
			<wait>25</wait>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_4_01_red_s"><param>25</param><param>0</param></fireRef>
			<repeat><times>4</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>0</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>1</param></fireRef>
			</repeat>
			<wait>1</wait>	
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>2</param></fireRef>
			</repeat>
			<wait>1</wait>
		</repeat>

		<repeat><times>11</times>
			<wait>25</wait>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_4_01_red_s"><param>27</param><param>0</param></fireRef>
			<repeat><times>4</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>0</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>1</param></fireRef>
			</repeat>
			<wait>1</wait>	
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>2</param></fireRef>
			</repeat>
			<wait>1</wait>
		</repeat>


		<repeat><times>11</times>
			<wait>25</wait>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_4_01_red_s"><param>20</param><param>0</param></fireRef>
			<repeat><times>4</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>0</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>1</param></fireRef>
			</repeat>
			<wait>1</wait>	
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_red_s"><param>24</param><param>2</param></fireRef>
			</repeat>
			<wait>1</wait>
		</repeat>
			<wait>25</wait>
		</repeat>
	</action>
</enemy>

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

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

	<action>

		<repeat><times>-1</times>
		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_4_01_blue"><param>0</param><param>0</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>0</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>1</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>

		<repeat><times>26</times>
			<wait>25</wait>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>25</param><param>0</param></fireRef>
			<repeat><times>4</times>
				<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>0</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>1</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>2</param></fireRef>
			</repeat>
			<wait>1</wait>
		</repeat>
			<wait>25</wait>

		<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
		<fireRef label="stage2A_boss_fire_4_01_blue"><param>0</param><param>0</param></fireRef>
		<repeat><times>4</times>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>0</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>1</param></fireRef>
		</repeat>
		<wait>1</wait>
		<repeat><times>5</times>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>2</param></fireRef>
		</repeat>
		<wait>1</wait>

		<repeat><times>26</times>
			<wait>25</wait>
			<actionRef label="enemy_bullet_action8"><param>64</param></actionRef>
			<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>23</param><param>0</param></fireRef>
			<repeat><times>4</times>
				<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>0</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>1</param></fireRef>
			</repeat>
			<wait>1</wait>
			<repeat><times>5</times>
				<fireRef label="stage2A_boss_fire_4_01_blue_s"><param>24</param><param>2</param></fireRef>
			</repeat>
			<wait>1</wait>
		</repeat>
			<wait>25</wait>

		</repeat>

	</action>
</enemy>

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

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


<bullet label="stage2A_boss_bullet_4_01_red">

	<collision type="sync"><left>-3</left><top>-4</top><right>3</right><bottom>4</bottom></collision>

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

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

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

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


<bullet label="stage2A_boss_bullet_4_01_blue">

	<collision type="sync"><left>-3</left><top>-4</top><right>3</right><bottom>4</bottom></collision>

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

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





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

<revenge label="stage2A_boss_01_revenge">
	<eval name="localcounter">$_counter</eval>

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

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

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

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

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

	<wait>1</wait>

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

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


<revenge label="stage2A_boss_02_revenge">

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

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

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

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

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

	<wait>1</wait>

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

<revenge label="stage2A_boss_03_revenge">

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

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

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

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

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

	<wait>1</wait>

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


<revenge label="stage2A_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_stage2"></targetRevenge>
	
	<wait>1</wait>

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

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

	<wait>1</wait>

	<!-- 01ばらまき -->
	<actionRef label="break_action"></actionRef>
	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
	</changeColor>
	<repeat><times>($_revenge_state-eq1)</times>
		<repeat><times>$etb_num</times>
			<actionRef label="etb_letter"><param>1</param><param>5</param></actionRef>
			<createRef label="item_create_01_etb"><param>-15000</param><param>400000</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>1080</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>
