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

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

<action label="stage2B_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>1000</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="stage2B_middle_boss_01_revenge"></revengeRef>
		<global name="timer">9</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2B_middle_boss_01_action"></actionRef>

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

		<revengeRef label="stage2B_middle_boss_02_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2B_middle_boss_02_action"></actionRef>
	</repeat>
</enemy>


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


<action  label="stage2B_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>3</times>
<!-- 狙いウィルス -->
	<repeat><times>2</times>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>0</param><param>1.5</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>255</param><param>8</param><param>4</param></fireRef>
		<wait>3</wait>
		<fireRef label="middle_boss_fire_03_s"><param>-30</param><param>1.5</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>60</param><param>1.5</param></fireRef>
		<wait>2</wait>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>0</param><param>1.5</param></fireRef>
		<wait>10</wait>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03_s"><param>-35</param><param>1.5</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>70</param><param>1.5</param></fireRef>
		<wait>2</wait>

		<wait>5</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>0</param><param>1.5</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_03_s"><param>-20</param><param>1.5</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>40</param><param>1.5</param></fireRef>
		<wait>10</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>100</param><param>8</param><param>128</param></fireRef>

		<wait>2</wait>
		<fireRef label="middle_boss_fire_03"><param>0</param><param>1.5</param></fireRef>
		<wait>10</wait>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03_s"><param>-30</param><param>1.5</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>60</param><param>1.5</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_03"><param>0</param><param>1.5</param></fireRef>
		<wait>10</wait>
		<wait>3</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03_s"><param>-35</param><param>1.5</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>70</param><param>1.5</param></fireRef>
		<wait>2</wait>

		<fireRef label="middle_boss_fire_01"><param>0</param><param>255</param><param>255</param><param>4</param></fireRef>
		<wait>10</wait>
		<wait>10</wait>

		<wait>2</wait>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>0</param><param>1.5</param></fireRef>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_01"><param>0</param><param>8</param><param>255</param><param>255</param></fireRef>
		<wait>3</wait>
		<wait>2</wait>
		<fireRef label="middle_boss_fire_03_s"><param>-30</param><param>1.5</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>-60</param><param>2</param></fireRef>
		<wait>2</wait>
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<fireRef label="middle_boss_fire_03"><param>-35</param><param>1.5</param></fireRef>
		<fireRef label="middle_boss_fire_03_s"><param>70</param><param>1.5</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>10-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>

	<wait>30</wait>

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

	<wait>30</wait>
<!-- 弾丸＋ばらまき -->

	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_04"><param>0</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_04"><param>-45</param></fireRef>

	<wait>60</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>90</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_04"><param>45</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_04"><param>0</param></fireRef>

	<changeSpeed>
		<speed type="absolute">2</speed><term>30</term>
	</changeSpeed>
	<changePosition type="center">
		<x>320</x><y>135</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>
	
	<wait>130-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->

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

	<createRef label="middle_boss_lazer_org"><param>$_self_cx</param><param>$_self_cy</param><param>65</param></createRef>
	<wait>1</wait>
	<createRef label="middle_boss_lazer_org2"><param>$_self_cx</param><param>$_self_cy</param><param>-65</param></createRef>
	<wait>120</wait>
	<createRef label="middle_boss_lazer_org"><param>$_self_cx</param><param>$_self_cy</param><param>-65</param></createRef>
	<wait>1</wait>
	<createRef label="middle_boss_lazer_org2"><param>$_self_cx</param><param>$_self_cy</param><param>65</param></createRef>
	<wait>420-3</wait>

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

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

</action>

<!-- レーザーaction -->
<create label="middle_boss_lazer_org">
	<speed>0.5</speed>
	<direction type="absolute">$3</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">s_mahoujin5</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>240</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<revengeRef label="middle_boss_mahoujin"></revengeRef>
	<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>-1</times>
			<wait>4</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="middle_boss_fire_06_s_laser"><param>33</param></fireRef>
			<wait>1</wait>		
			<wait>3</wait>
		</repeat>
		<vanish/>
	</action>
</enemy>

<create label="middle_boss_lazer_org2">
	<speed>0.5</speed>
	<direction type="absolute">$3</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">s_mahoujin</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>32</width><height>32</height>
		<alpha>240</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<revengeRef label="middle_boss_mahoujin"></revengeRef>
	<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>-1</times>
			<wait>4</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>

<revenge label="middle_boss_mahoujin">
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>
	<changeColor>
		<alpha>32</alpha><red>0</red><green>0</green><blue>0</blue><term>5</term>
	</changeColor>
	<wait>5</wait>

	<repeat><times>$_revenge_state-eq3</times>
		<createRef label="item_create_01_small"></createRef>
	</repeat>
	<vanish></vanish>
</revenge>


<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">$1</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>60</wait>
		<changeSpeed>
			<speed type="absolute">2.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.4</speed><term>80</term>
		</changeSpeed>
		<wait>1</wait>

		<repeat><times>-1</times>
		<eval name="child_dir">$_player_cx%18</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>9-$child_dir</param><param>-2</param><param>$child_sp</param></fireRef>
		<wait>3</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>3</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>3</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>9-$child_dir</param><param>-1</param><param>$child_sp</param></fireRef>
		<wait>3</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>3</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>3</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>3</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>3</wait>
		<fireRef label="middle_boss_fire_05"><param>$child_dir</param><param>9-$child_dir</param><param>7-$child_dir</param><param>$child_sp</param></fireRef>
		<wait>3</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.0</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.0</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.0</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.0</speed><term>1</term>
			</changeSpeed>
		</action>
	</enemy>

</create>

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

<action  label="stage2B_middle_boss_02_action">

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

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

	<wait>2</wait>

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

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

	<eval name="base_dir">0</eval>
<!-- 置いていく大きい丸弾　-->
<repeat><times>12</times>
	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_07"><param>$base_dir</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>60</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>60</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_07_s"><param>60</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>60</param></fireRef>
	<fireRef label="middle_boss_fire_07_s"><param>60</param></fireRef>

	<changeDirection>
		<direction type="relative">180</direction><term>1</term>
	</changeDirection>
	<wait>1</wait>
	<evaladd name="base_dir">11</evaladd>
	<wait>80</wait>

	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="middle_boss_fire_09"><param>$base_dir</param></fireRef>
	<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
	<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
	<wait>1</wait>
	<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
	<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>
	<fireRef label="middle_boss_fire_09_s"><param>60</param></fireRef>

	<changeDirection>
		<direction type="absolute">45-90*($_player_cx%2)</direction><term>1</term>
	</changeDirection>
	<wait>1</wait>
	<evaladd name="base_dir">10</evaladd>
	<wait>80-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
</repeat>

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

</action>


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

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

<fire label="middle_boss_fire_08">
	<speed>0</speed>
	<direction type="relative">10</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_08"></bulletRef>
</fire>

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

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

<fire label="middle_boss_fire_10">
	<speed>0</speed>
	<direction type="relative">10</direction>
	<cx>0</cx><cy>1</cy>
	<bulletRef label="middle_boss_bullet_10"></bulletRef>
</fire>


<bullet label="middle_boss_bullet_07">

	<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>5</red><green>255</green><blue>64</blue>
	</img>


	<action>
		<wait>20</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_08"></fireRef>

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

		<repeat><times>-1</times>
		<wait>45</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_08"></fireRef>
		</repeat>
	</action>
</bullet>

<bullet label="middle_boss_bullet_08">

	<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>0</red><green>255</green><blue>200</blue>
	</img>

	<action>
		<wait>60</wait>
		<changeSpeed>
			<speed type="absolute">1.2</speed><term>100</term>
		</changeSpeed>
	</action>

</bullet>

<bullet label="middle_boss_bullet_09">

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


	<action>
		<wait>20</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_10"></fireRef>

		<changeDirection>
			<direction type="relative">-30</direction><term>180</term>
		</changeDirection>

		<repeat><times>-1</times>
		<wait>45</wait>
		<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
		<fireRef label="middle_boss_fire_10"></fireRef>
		</repeat>
	</action>
</bullet>

<bullet label="middle_boss_bullet_10">

	<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>200</blue>
	</img>

	<action>
		<wait>60</wait>
		<changeSpeed>
			<speed type="absolute">1.2</speed><term>100</term>
		</changeSpeed>
	</action>

</bullet>




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

<revenge label="stage2B_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>960</param><param>24</param><param>$localcounter</param></actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>40</param></actionRef>
	</repeat>

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

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

<revenge label="stage2B_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>850</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="stage2B_boss_top_action">

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

	<sound type="bgm" label="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="stage2B_boss_enemy_appear"></targetRevenge>
	
	<!-- *** 最初のボスオブジェクト作成 *** -->
	<createRef label="stage2B_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="stage2B_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>150000</score>
	<prate>$__boss_prate</prate>
	<enemyRef label="stage2B_boss_enemy"></enemyRef>
</create>


<!-- *** 第 2 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stage2B_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>150000</score>
	<prate>$__boss_prate2</prate>
	<enemyRef label="stage2B_boss_enemy"></enemyRef>
</create>

<!-- *** 第 3 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stage2B_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>160000</score>
	<prate>$__boss_prate2</prate>
	<enemyRef label="stage2B_boss_enemy"></enemyRef>
</create>

<!-- *** 第 4 形態のボスオブジェクト作成                               *** -->
<!-- ***                                                               *** -->
<!-- *** 初期位置は前の形態のボスと同じ位置になる                      *** -->
<create label="stage2B_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>220000</score>
	<prate>$__boss_prate3</prate>
	<enemyRef label="stage2B_boss_enemy"></enemyRef>
</create>

<!-- ********************************************************************* -->
<!-- *** ボスオブジェクト                                              *** -->
<enemy label="stage2B_boss_enemy">
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<presentRef label="stage2B_boss_present"></presentRef>
<!-- buzzテスト用 -->
<!--	<imgDirection type="sync">0</imgDirection> -->
<!--	<buzz type="sync"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></buzz> -->
<!--	<collision type="sync"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision> -->

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

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


	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<revengeRef label="stage2B_boss_01_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2B_boss_01_action"></actionRef>
<!-- buzzテスト用 -->
<!--		<actionRef  label="stage2B_boss_01_action_test"></actionRef> -->
	</repeat>
	<repeat><times>$__boss_state-eq2</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage2B_boss_02_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2B_boss_02_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq3</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage2B_boss_03_revenge"></revengeRef>
		<global name="timer">12</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2B_boss_03_action"></actionRef>
	</repeat>
	<repeat><times>$__boss_state-eq4</times>
		<global name="prate_average">$__prate_average+$_prate</global>
		<global name="prate_average_num">$__prate_average_num+1</global>
		<revengeRef label="stage2B_boss_04_revenge"></revengeRef>
		<global name="timer">14</global>
		<actionRef  label="create_timer"></actionRef>
		<actionRef  label="stage2B_boss_04_action"></actionRef>
	</repeat>
</enemy>

<!-- ********************************************************************* -->
<!-- *** 雑魚のアクション                                              *** -->
<!-- *** 共通                                                          *** -->

<create label="stage2B_enemy_create_01_org">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>320</cx><cy>240</cy>
	<vital>1</vital>
	<enemyRef label="stage2B_enemy_01_org"><param>$1</param></enemyRef>
</create>

<create label="stage2B_enemy_create_02_org">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>320</cx><cy>240</cy>
	<vital>1</vital>
	<enemyRef label="stage2B_enemy_02_org"><param>$1</param></enemyRef>
</create>


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

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

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

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

<enemy label="stage2B_enemy_01_org">
	<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="normal">
		<file type="dds">s_mahoujin</file>
		<left>0</left><top>0</top><right>4</right><bottom>4</bottom>
		<width>4</width><height>4</height>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<action>
		<wait>$1</wait>
<!-- 雑魚敵 -->

		<createRef label="stage2B_enemy_create_01_n"><param>180</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_score"><param>200</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>220</param><param>-8</param><param>180</param><param>31</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>240</param><param>-8</param><param>180</param><param>31</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>260</param><param>-8</param><param>180</param><param>27</param></createRef>
		<wait>120</wait>

		<createRef label="stage2B_enemy_create_01_n"><param>460</param><param>-8</param><param>180</param><param>27</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>440</param><param>-8</param><param>180</param><param>23</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_score"><param>420</param><param>-8</param><param>180</param><param>23</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>400</param><param>-8</param><param>180</param><param>10</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>380</param><param>-8</param><param>180</param><param>10</param></createRef>
		<wait>120</wait>

		<createRef label="stage2B_enemy_create_01_n"><param>300</param><param>-8</param><param>180</param><param>27</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01"><param>280</param><param>-8</param><param>180</param><param>23</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_score_n"><param>260</param><param>-8</param><param>180</param><param>23</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>240</param><param>-8</param><param>180</param><param>10</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>220</param><param>-8</param><param>180</param><param>10</param></createRef>
		<wait>120</wait>

		<createRef label="stage2B_enemy_create_01_n"><param>350</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_score"><param>370</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>390</param><param>-8</param><param>180</param><param>31</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>410</param><param>-8</param><param>180</param><param>31</param></createRef>
		<wait>5</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>430</param><param>-8</param><param>180</param><param>27</param></createRef>
		<wait>120</wait>
	</action>

</enemy>

<enemy label="stage2B_enemy_02_org">
	<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="normal">
		<file type="dds">s_mahoujin</file>
		<left>0</left><top>0</top><right>4</right><bottom>4</bottom>
		<width>4</width><height>4</height>
		<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>

	<action>
		<wait>$1</wait>
<!-- 雑魚敵 -->
		<createRef label="stage2B_enemy_create_01_n"><param>180</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score_n"><param>205</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>230</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>255</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score_n"><param>280</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>305</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>330</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score"><param>355</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>380</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>405</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score"><param>430</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>455</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>

		<createRef label="stage2B_enemy_create_01_n"><param>180</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score_n"><param>205</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>230</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>255</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score_n"><param>280</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>305</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>330</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score"><param>355</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>380</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>405</param><param>-8</param><param>180</param><param>35</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_score_n"><param>430</param><param>-8</param><param>180</param><param>30</param></createRef>
		<wait>30</wait>
		<createRef label="stage2B_enemy_create_01_n"><param>455</param><param>-8</param><param>180</param><param>25</param></createRef>
		<wait>60</wait>

	</action>
</enemy>

<enemy label="stage2B_enemy_01">
	<score>100</score>
	<inv>20</inv>
	<prate>$__small_enemy_prate_b</prate>
	<child>1</child>
	<presentRef label="enemy_present_99"></presentRef>
	<revengeRef label="stage2B_enemy_revenge_01"><param>1</param><param>20</param><param>20</param></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>11</radius></collision>

	<action>

		<wait>10</wait>
		<wait>$1</wait>

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

		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage2B_enemy_fire_01"><param>180</param></fireRef>

		<wait>60</wait>

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

<enemy label="stage2B_enemy_01_score">
	<score>100</score>
	<inv>20</inv>
	<prate>$__small_enemy_prate_b</prate>
	<child>1</child>
	<presentRef label="enemy_present_99"></presentRef>
	<revengeRef label="stage2B_enemy_revenge_01_s"><param>1</param><param>20</param><param>20</param></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>11</radius></collision>

	<action>

		<wait>10</wait>

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

		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage2B_enemy_fire_01"><param>180</param></fireRef>

		<wait>60</wait>

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

<enemy label="stage2B_enemy_01_n">
	<score>100</score>
	<inv>20</inv>
	<prate>$__small_enemy_prate_b</prate>
	<child>1</child>
	<presentRef label="enemy_present_99"></presentRef>
	<revengeRef label="stage2B_enemy_revenge_01"><param>1</param><param>20</param><param>20</param></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>11</radius></collision>

	<action>

		<wait>10</wait>

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

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

<enemy label="stage2B_enemy_01_score_n">
	<score>100</score>
	<inv>20</inv>
	<prate>$__small_enemy_prate_b</prate>
	<child>1</child>
	<presentRef label="enemy_present_99"></presentRef>
	<revengeRef label="stage2B_enemy_revenge_01_s"><param>1</param><param>20</param><param>20</param></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>11</radius></collision>

	<action>

		<wait>10</wait>

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

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


<fire label="stage2B_enemy_fire_01">
	<speed>3</speed>
	<direction type="absolute">$1</direction>
	<bulletRef label="stage2B_enemy_bullet_01"></bulletRef>
</fire>

<bullet label="stage2B_enemy_bullet_01">

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

	<action>
		<changeSpeed>
			<speed type="absolute">1.6</speed><term>20</term>
		</changeSpeed>
	</action>

</bullet>


<revenge label="stage2B_enemy_revenge_01">
	<presentRef label="enemy_revenge_present_01"></presentRef>
	<repeat><times>$_revenge_state-eq1</times>	
		<soundRef label="enemy_break1"></soundRef>
	</repeat>	
	
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>
	<eval name="localcounter">$_counter</eval>

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

<revenge label="stage2B_enemy_revenge_01_s">
	<presentRef label="enemy_revenge_present_01"></presentRef>
	<repeat><times>$_revenge_state-eq1</times>	
		<soundRef label="enemy_break1"></soundRef>
	</repeat>	
	
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>

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

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


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


<action  label="stage2B_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>$__twins_set-eq2</times>
	<createRef label="stage2B_enemy_create_01_org"><param>100</param></createRef>
</repeat>

<!-- ４周で自爆 -->
<repeat><times>4</times>
<!-- 銃弾＋ばらまき　-->
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_01_blue"><param>0</param></fireRef>
	<fireRef label="stage2B_boss_fire_01_blue"><param>35</param></fireRef>
	<fireRef label="stage2B_boss_fire_01_blue"><param>-35</param></fireRef>

	<wait>100</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_01_red"><param>40</param></fireRef>
	<fireRef label="stage2B_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="stage2B_boss_fire_01_blue"><param>80</param></fireRef>
	<fireRef label="stage2B_boss_fire_01_blue"><param>-80</param></fireRef>
	<fireRef label="stage2B_boss_fire_01_blue"><param>180</param></fireRef>
	<wait>30</wait>
	<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_01_red"><param>140</param></fireRef>
	<fireRef label="stage2B_boss_fire_01_red"><param>-140</param></fireRef>

	<wait>10</wait>

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

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

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

<!-- ねらい -->
	<repeat><times>3</times>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_03_blue"><param>40</param><param>0</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_blue"><param>-110</param><param>-80</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_red"><param>-80</param><param>40</param></fireRef>
		<wait>2</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_03_blue"><param>-40</param><param>0</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_red"><param>80</param><param>-40</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_blue"><param>110</param><param>80</param></fireRef>
		<wait>3</wait>
	</repeat>
	<wait>1</wait>
	<changeDirection>
		<direction type="absolute">-88*$mv_dir</direction><term>80</term>
	</changeDirection>
	<repeat><times>10</times>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_03_blue"><param>40</param><param>0</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_blue"><param>-110</param><param>-80</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_red"><param>-80</param><param>40</param></fireRef>
		<wait>2</wait>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_03_blue"><param>-40</param><param>0</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_red"><param>80</param><param>-40</param></fireRef>
		<wait>2</wait>
		<fireRef label="stage2B_boss_fire_03_blue"><param>110</param><param>80</param></fireRef>
		<wait>3</wait>
	</repeat>

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

<!-- 四角弾 -->
	<eval name="count">2</eval>
	<eval name="bul_dir">10+($_player_x%11)*6</eval>
	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_04_blue"><param>$bul_dir</param><param>$count</param></fireRef>
	<wait>4</wait>
	<eval name="bul_dir">-10-($_player_y%11)*6</eval>
	<fireRef label="stage2B_boss_fire_04_red"><param>$bul_dir</param><param>$count</param></fireRef>
	<wait>4</wait>

	<repeat><times>7</times>
		<eval name="bul_dir">10+($_player_x%$count)*6</eval>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_04_blue_s"><param>$bul_dir</param><param>$count</param></fireRef>
		<wait>4</wait>
		<eval name="bul_dir">120+($_player_cx+$count)%15</eval>
		<fireRef label="stage2B_boss_fire_04_red_s"><param>$bul_dir</param><param>$count</param></fireRef>
		<wait>4</wait>
		<evaladd name="count">1</evaladd>
	</repeat>

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

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

	<eval name="count">2</eval>
	<eval name="bul_dir">10+($_player_x%11)*6</eval>
	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_04_blue"><param>$bul_dir</param><param>$count</param></fireRef>
	<wait>4</wait>
	<eval name="bul_dir">-10-($_player_y%11)*6</eval>
	<fireRef label="stage2B_boss_fire_04_red"><param>$bul_dir</param><param>$count</param></fireRef>
	<wait>4</wait>

	<repeat><times>7</times>
		<eval name="bul_dir">10+($_player_x%$count)*6</eval>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_04_blue_s"><param>$bul_dir</param><param>$count</param></fireRef>
		<wait>4</wait>
		<eval name="bul_dir">160+($_player_cx+$count)%15</eval>
		<fireRef label="stage2B_boss_fire_04_red_s"><param>$bul_dir</param><param>$count</param></fireRef>
		<wait>4</wait>
		<evaladd name="count">1</evaladd>
	</repeat>

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

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

	<eval name="count">2</eval>
	<eval name="bul_dir">10+($_player_x%11)*6</eval>
	<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_04_blue"><param>$bul_dir</param><param>$count</param></fireRef>
	<wait>4</wait>
	<eval name="bul_dir">-10-($_player_y%11)*6</eval>
	<fireRef label="stage2B_boss_fire_04_red"><param>$bul_dir</param><param>$count</param></fireRef>
	<wait>4</wait>

	<repeat><times>7</times>
		<eval name="bul_dir">10+($_player_x%$count)*6</eval>
		<actionRef label="enemy_bullet_action3"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_04_blue_s"><param>$bul_dir</param><param>$count</param></fireRef>
		<wait>4</wait>
		<eval name="bul_dir">-80-($_player_cx+$count)%28</eval>
		<fireRef label="stage2B_boss_fire_04_red_s"><param>$bul_dir</param><param>$count</param></fireRef>
		<wait>4</wait>
		<evaladd name="count">1</evaladd>
	</repeat>
	<wait>140-3</wait>
	<!-- タイマーを１つ消す -->
	<global name="timer">$__timer-1</global>
	<actionRef label="vanish_timer"></actionRef>
	<!-- <wait>3</wait> -->
</repeat>

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

</action>

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

<bullet label="stage2B_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="stage2B_boss_fire_02_blue"><param>40+$_self_cx%6</param><param>$_player_cy%30+30</param></fireRef>
			<fireRef label="stage2B_boss_fire_02_blue"><param>40+$_self_cx%6</param><param>$_player_cy%30+5</param></fireRef>
			<wait>52</wait>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage2B_boss_fire_02_blue"><param>-40-$_self_cy%6</param><param>$_player_cx%30+30</param></fireRef>
			<fireRef label="stage2B_boss_fire_02_blue"><param>-40-$_self_cy%6</param><param>$_player_cx%30+5</param></fireRef>
			<wait>52</wait>
		</repeat>

	</action>

</bullet>

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

<bullet label="stage2B_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="stage2B_boss_fire_02_red"><param>40+$_self_cx%6</param><param>$_player_cx%30+30</param></fireRef>
			<fireRef label="stage2B_boss_fire_02_red"><param>40+$_self_cx%6</param><param>$_player_cx%30+5</param></fireRef>
			<wait>55</wait>
			<actionRef label="enemy_bullet_action"><param>32</param></actionRef>
			<fireRef label="stage2B_boss_fire_02_red"><param>-40-$_self_cy%6</param><param>$_player_cy%30+30</param></fireRef>
			<fireRef label="stage2B_boss_fire_02_red"><param>-40-$_self_cy%6</param><param>$_player_cy%30+5</param></fireRef>
			<wait>55</wait>
		</repeat>

	</action>

</bullet>

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

<bullet label="stage2B_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="stage2B_boss_fire_02_red">
	<speed>0</speed>
	<direction type="relative">$1</direction>
	<bulletRef label="stage2B_boss_bullet_02_red"><param>$2</param></bulletRef>
</fire>
<bullet label="stage2B_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="stage2B_boss_fire_03_blue">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage2B_boss_bullet_03_blue"><param>$2</param></bulletRef>
</fire>


<bullet label="stage2B_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>10</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>45</term>
		</changeSpeed>
		<wait>20</wait>
		<changeDirection>
			<direction type="aim">$1</direction><term>20</term>
		</changeDirection>
		<wait>20</wait>
		<changeSpeed>
			<speed type="absolute">2</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="aim">$1</direction><term>1</term>
		</changeDirection>
	</action>

</bullet>


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


<bullet label="stage2B_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>65</green><blue>2</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

	<action>
		<wait>10</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>45</term>
		</changeSpeed>
		<wait>20</wait>
		<changeDirection>
			<direction type="aim">$1</direction><term>20</term>
		</changeDirection>
		<wait>20</wait>
		<changeSpeed>
			<speed type="absolute">2</speed><term>60</term>
		</changeSpeed>
		<changeDirection>
			<direction type="aim">$1</direction><term>1</term>
		</changeDirection>
	</action>

</bullet>

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

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

<bullet label="stage2B_boss_bullet_04_blue">

	<collision type="sync"><left>-4</left><top>-7</top><right>4</right><bottom>7</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>14</width><height>18</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>12</direction><term>-1</term>
	</rotateImg>

	<action>
		<wait>($1+$_self_cx+$_player_cx)%31</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>50</term>
		</changeSpeed>
		<wait>45</wait>
		
		<changeDirection>
			<direction type="absolute">180</direction><term>60</term>
		</changeDirection>
		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">1.4+($1%3)/10</speed><term>80</term>
		</changeSpeed>

	</action>

</bullet>

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

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


<bullet label="stage2B_boss_bullet_04_red">
	<collision type="sync"><left>-4</left><top>-7</top><right>4</right><bottom>7</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>14</width><height>18</height>
		<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<rotateImg>
		<direction>12</direction><term>-1</term>
	</rotateImg>

	<action>
		<wait>($1*2+$_self_cy)%29</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>50</term>
		</changeSpeed>
		<wait>45</wait>
		
		<changeDirection>
			<direction type="absolute">180</direction><term>60</term>
		</changeDirection>
		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">1.3+($1%3)/10</speed><term>80</term>
		</changeSpeed>
	</action>
</bullet>




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

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

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

	<wait>2</wait>
<global name="counter_tmp">$_counter</global>
<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
<!-- 大レーザー魔法陣 -->
<createRef label="stage2B_boss_mahoujin_2_01"><param>$_self_cx</param><param>$_self_cy</param><param>58</param></createRef>
<wait>1</wait>

<!-- 小弾魔法陣 -->

<createRef label="stage2B_boss_mahoujin_2_01_red"><param>$_self_cx</param><param>$_self_cy</param><param>-58</param></createRef>

<wait>100</wait>

<!-- 小レーザー -->

<createRef label="stage2B_boss_creat_2_00_red"><param>$_self_cx</param><param>$_self_cy</param></createRef>

<!-- 双子で戦っている場合には、雑魚を出現させる -->
<repeat><times>$__twins_set-eq2</times>
	<createRef label="stage2B_enemy_create_02_org"><param>120</param></createRef>
</repeat>

<repeat><times>12</times>

	<changeSpeed>
		<speed type="absolute">0.5</speed><term>30</term>
	</changeSpeed>
	<changeDirection>
		<direction type="absolute">76*(1-($_player_cx-lt320)*2)</direction><term>1</term>
	</changeDirection>

	<wait>45</wait>

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

	<wait>90</wait>

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

	<wait>45</wait>

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

	<wait>90</wait>

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

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

</action>


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

<enemy label="stage2A_boss_enemy_2_00_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>
		<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_2_01_laser"><param>0</param></fireRef>

		<repeat><times>-1</times>
		<eval name="laser_dir">10</eval>
		<repeat><times>20</times>
			<wait>7</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_2_01_s_laser"><param>$laser_dir</param></fireRef>
			<evaladd name="laser_dir">$_player_cx%11</evaladd>
			<wait>7</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_2_01_s_laser"><param>$laser_dir</param></fireRef>
			<evaladd name="laser_dir">($_player_cy%22)*(-1)</evaladd>
			<wait>7</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_2_01_s_laser"><param>$laser_dir</param></fireRef>
			<evaladd name="laser_dir">$_player_cx%17</evaladd>
			<wait>7</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_2_01_s_laser"><param>$laser_dir</param></fireRef>
			<evaladd name="laser_dir">($_player_cy%31)*(-1)</evaladd>
		</repeat>
		</repeat>
	</action>
</enemy>

<create label="stage2B_boss_mahoujin_2_01">
	<speed>2</speed>
	<direction type="absolute">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>340</vital>
	<enemyRef label="stage2B_boss_mahoujin_2_01"></enemyRef>
</create>

<enemy label="stage2B_boss_mahoujin_2_01">
	<score>0</score>
	<inv>40</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<revengeRef label="stage2B_boss_mahoujin_2_01"><param>4</param><param>20</param><param>350</param></revengeRef>

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

	<changeImgSize>
		<width>24</width><height>24</height><term>60</term>
	</changeImgSize>
	<action>
		<wait>1</wait>
		<create>
			<speed>0</speed>
			<direction type="aim">0</direction>
			<cx>$_self_cx-2</cx><cy>$_self_cy+2</cy>
			<vital>1</vital>
			<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>
				<definedAction type="synctoparentx"></definedAction>
				<definedAction type="synctoparenty"></definedAction>
				<img type="normal">
					<file type="dds">s_mahoujin5</file>
					<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
					<width>4</width><height>4</height>
					<alpha>125</alpha><red>255</red><green>255</green><blue>255</blue>
				</img>
				<rotateImg>
					<direction>3</direction><term>-1</term>
				</rotateImg>
				<changeImgSize>
					<width>48</width><height>48</height><term>60</term>
				</changeImgSize>
			</enemy>
		</create>

		<wait>40</wait>

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

		<repeat><times>-1</times>
			<createRef label="stage2B_boss_laser_create_2_02"></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<createRef label="stage2B_boss_laesr_org_2_02"><param>0</param></createRef>
			<wait>320</wait>
		</repeat>

	</action>
</enemy>

<revenge label="stage2B_boss_mahoujin_2_01">
	<presentRef label="enemy_revenge_present_01"></presentRef>
	<soundRef label="enemy_break2"></soundRef>

	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>

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

<!-- ここから -->
<!-- レーザーがchangeBulletToItemした時にitem化されるためのダミーbullet -->
<create label="stage2B_boss_laesr_org_2_02">
	<speed>270-$1</speed>
	<direction type="aim">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage2B_boss_laesr_org_bul_2_02"></enemyRef>
</create>

<enemy label="stage2B_boss_laesr_org_bul_2_02">
	<inv>85</inv>
	<revengeRef label="stage2B_boss_laser_revenge_2_02"></revengeRef>
	<collision type="sync"><left>-6</left><top>-280</top><right>6</right><bottom>280</bottom></collision>	
	<child>1</child>
	<flag>3</flag>
	<img type="add">
		<file type="dds">shot_la</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>580</height>
		<alpha>0</alpha><red>255</red><green>0</green><blue>5</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<wait>31</wait>

		<changeImgSize>
			<width>14</width><height>560</height><term>54</term>
		</changeImgSize>
		<wait>53</wait>

		<wait>100</wait>
		<wait>55</wait>
		<vanish/>
	</action>	

</enemy>


<!-- 実際の見えているレーザー -->
<!-- 体験版では、キャラがある程度の位置にいると発射されない。仕様。 -->
<create label="stage2B_boss_laser_create_2_02">
	<speed>270</speed>
	<direction type="aim">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage2B_boss_laser_create_2_02"></enemyRef>
</create>

<enemy label="stage2B_boss_laser_create_2_02">
	<inv>85</inv>
	<revengeRef label="stage2B_boss_laser_revenge_2_02"></revengeRef>
	<collision type="sync"><left>-6</left><top>-280</top><right>6</right><bottom>280</bottom></collision>	
	<buzz type="sync"><left>-6</left><top>-280</top><right>6</right><bottom>280</bottom></buzz>	
	<child>1</child>
	<flag>3</flag>
	<img type="add">
		<file type="dds">shot_la</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>2</width><height>580</height>
		<alpha>0</alpha><red>64</red><green>250</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<wait>1</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>1</term>
		</changeSpeed>
		<wait>1</wait>
		<changeColor>
			<alpha>225</alpha><red>64</red><green>250</green><blue>255</blue><term>75</term>
		</changeColor>
		<wait>1</wait>
		<actionRef label="enemy_laser_action"></actionRef>
		<wait>1</wait>
		<wait>28</wait>

		<changeImgSize>
			<width>14</width><height>560</height><term>54</term>
		</changeImgSize>
		<wait>53</wait>

		<repeat><times>10</times>
			<wait>10</wait>
			<incBuzzCount></incBuzzCount>
		</repeat>

		<changeColor>
			<alpha>84</alpha><red>64</red><green>250</green><blue>255</blue><term>55</term>
		</changeColor>

		<repeat><times>4</times>
			<wait>10</wait>
			<incBuzzCount></incBuzzCount>
		</repeat>

		<wait>15</wait>
		<vanish/>
	</action>	


</enemy>

<revenge label="stage2B_boss_laser_revenge_2_02">
	<changeSpeed>
		<speed>0</speed><term>1</term>
	</changeSpeed>
	<wait>1</wait>

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

	<vanish></vanish>
</revenge>

<!-- 小弾用ビット -->
<create label="stage2B_boss_mahoujin_2_01_red">
	<speed>2</speed>
	<direction type="absolute">$3</direction>
	<cx>$1</cx><cy>$2</cy>
	<vital>340</vital>
	<enemyRef label="stage2B_boss_mahoujin_2_01_red"></enemyRef>
</create>

<enemy label="stage2B_boss_mahoujin_2_01_red">
	<score>0</score>
	<inv>40</inv>
	<prate>0</prate>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<revengeRef label="stage2B_boss_mahoujin_2_01"><param>4</param><param>20</param><param>350</param></revengeRef>
	<child>1</child>
	<img type="maskadd">
		<file type="dds">circle_enemy</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>4</width><height>4</height>
		<alpha>255</alpha><red>2</red><green>255</green><blue>2</blue>
	</img>

	<changeImgSize>
		<width>24</width><height>24</height><term>60</term>
	</changeImgSize>
	<action>
		<wait>1</wait>
		<create>
			<speed>0</speed>
			<direction type="aim">0</direction>
			<cx>$_self_cx+2</cx><cy>$_self_cy+2</cy>
			<vital>1</vital>
			<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>
				<definedAction type="synctoparentx"></definedAction>
				<definedAction type="synctoparenty"></definedAction>
				<img type="normal">
					<file type="dds">s_mahoujin3</file>
					<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
					<width>4</width><height>4</height>
					<alpha>125</alpha><red>255</red><green>255</green><blue>255</blue>
				</img>
				<rotateImg>
					<direction>3</direction><term>-1</term>
				</rotateImg>
				<changeImgSize>
					<width>48</width><height>48</height><term>60</term>
				</changeImgSize>
			</enemy>
		</create>

		<wait>40</wait>

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

		<repeat><times>-1</times>
			<wait>30</wait>
			<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_2_02_blue"><param>0</param></fireRef>
			<repeat><times>2</times>
				<wait>5</wait>
				<actionRef label="enemy_bullet_action"><param>64</param></actionRef>
				<fireRef label="stage2B_boss_fire_2_02_s_blue"><param>0</param></fireRef>
			</repeat>
			<wait>160</wait>
		</repeat>

	</action>
</enemy>

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

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

<bullet label="stage2B_boss_fire_2_01_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="stage2B_boss_fire_2_01_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>
		<createRef label="stage2B_boss_fire_2_01_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>
		<changeSpeed>
			<speed>2.1</speed><term>1</term>
		</changeSpeed>
	</action>
</bullet>

<create label="stage2B_boss_fire_2_01_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>16</height><term>3</term>
			</changeImgSize>
			<wait>$8</wait>
			<changeSpeed>
				<speed>2.1</speed><term>1</term>
			</changeSpeed>
		</action>
	</enemy>

</create>

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

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


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

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

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

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

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

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

<!-- 双子で戦っている場合には、雑魚を出現させる -->
<repeat><times>$__twins_set-eq2</times>
	<createRef label="stage2B_enemy_create_01_org"><param>120</param></createRef>
</repeat>

<!-- 弾幕開始 -->

	<repeat><times>3</times>
		<actionRef label="bullet_pod"></actionRef>

		<eval name="move_sp">(($_self_cy+$_player_cy)%2)+1</eval>
		<changeDirection>
			<direction type="absolute">(75+($_self_cx+$_plyaer_cx)%31)*(1-($_player_cx-lt320)*2)</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">0.7*$move_sp</speed><term>30</term>
		</changeSpeed>
		<wait>60</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>30</term>
		</changeSpeed>
		<wait>27-3</wait>
		<!-- タイマーを１つ消す -->
		<global name="timer">$__timer-1</global>
		<actionRef label="vanish_timer"></actionRef>
		<!-- <wait>3</wait> -->

		<actionRef label="bullet_pod"></actionRef>

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

<wait>60</wait>

<targetRevenge label="stage2B_boss_enemy"></targetRevenge>

</action>

<action label="bullet_pod">
	<eval name="random1">($_self_cx+$_self_cy+$_player_cx+$_player_cy)%31</eval>
	<eval name="move_dir">(75+$random1)</eval>
	<createRef label="stage2B_boss_create_3_01"><param>(0-$move_dir)</param><param>1</param></createRef>

	<wait>12</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_3_02"><param>-105</param><param>2</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
	</repeat>
	<wait>6</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<repeat><times>3</times>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
	</repeat>
	<wait>12</wait>
	<repeat><times>10</times>
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>-207</param><param>2</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>6</wait>
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>12</wait>
	</repeat>

		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>-207</param><param>2</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>6</wait>
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>12-3</wait>

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


	<eval name="random1">($_self_cx+$_self_cy+$_player_cx+$_player_cy)%31</eval>
	<eval name="move_dir">(75+$random1)</eval>
	<createRef label="stage2B_boss_create_3_01"><param>$move_dir</param><param>-1</param></createRef>

	<wait>12</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_3_02"><param>-105</param><param>2</param></fireRef>
	<repeat><times>3</times>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
	</repeat>
	<wait>6</wait>
	<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
	<repeat><times>3</times>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
	</repeat>
	<wait>12</wait>
	<repeat><times>10</times>
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>-213</param><param>2</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>6</wait>
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>12</wait>
	</repeat>

		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_3_02_s"><param>-213</param><param>2</param></fireRef>
		<repeat><times>3</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>6</wait>
		<actionRef label="enemy_bullet_action2"><param>64</param></actionRef>
		<repeat><times>4</times>
			<fireRef label="stage2B_boss_fire_3_02_s"><param>30</param><param>2</param></fireRef>
		</repeat>
		<wait>12-3</wait>

</action>

<create label="stage2B_boss_create_3_01">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>9999</vital>
	<enemyRef label="stage2B_boss_enemy_3_01"><param>$2</param></enemyRef>
</create>

<enemy label="stage2B_boss_enemy_3_01">
	<score>0</score>
	<inv>10</inv>
	<prate>0</prate>
	<child>1</child>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>7</radius></collision>

	<img type="maskadd">
		<file type="dds">circle_enemy</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>164</green><blue>2</blue>
	</img>

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

	<changeSpeed>
		<speed type="absolute">-3</speed><term>120</term>
	</changeSpeed>

	<wait>4</wait>
	<actionRef label="enemy_bullet_action_x2"><param>64</param></actionRef>
	<fireRef label="stage2B_boss_fire_3_01"><param>120*$1</param><param>1.6</param></fireRef>
	<repeat><times>6</times>
		<wait>20</wait>
		<actionRef label="enemy_bullet_action_x2"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_3_01_s"><param>-20*$1</param><param>1.6</param></fireRef>
	</repeat>
	<repeat><times>-1</times>
		<wait>20</wait>
		<actionRef label="enemy_bullet_action_x2"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_3_01_s"><param>-10*$1</param><param>1.6</param></fireRef>
	</repeat>

</enemy>

<fire label="stage2B_boss_fire_3_01">
	<speed>6</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage2B_boss_bullet_3_01"><param>$2</param></bulletRef>
</fire>

<fire label="stage2B_boss_fire_3_01_s">
	<speed>6</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage2B_boss_bullet_3_01"><param>$2</param></bulletRef>
</fire>

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

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

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

</bullet>

<!-- 本体用 -->
<fire label="stage2B_boss_fire_3_02">
	<speed>4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage2B_boss_bullet_3_02"><param>$2</param></bulletRef>
</fire>

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

<bullet label="stage2B_boss_bullet_3_02">
	<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>20</red><green>10</green><blue>125</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

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

</bullet>



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

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

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

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

	<wait>2</wait>

	<wait>20</wait>

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



	<createRef label="bullet_red"></createRef>
	<createRef label="bullet_blue"></createRef>

	<repeat><times>7</times>

		<wait>110</wait>
		<fireRef label="stage2B_boss_fire_4_02"><param>0</param></fireRef>
		<wait>55</wait>

		<changeDirection>
			<direction type="absolute">-60+120*($_player_cx%2)</direction><term>1</term>
		</changeDirection>
		<changeSpeed>
			<speed type="absolute">1.5</speed><term>10</term>
		</changeSpeed>
		<wait>30</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>25</wait>
		<fireRef label="stage2B_boss_fire_4_02"><param>0</param></fireRef>

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

		<wait>110</wait>
		<fireRef label="stage2B_boss_fire_4_02"><param>0</param></fireRef>
		<wait>55</wait>

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

		<changeSpeed>
			<speed type="absolute">0</speed><term>10</term>
		</changeSpeed>
		<wait>25</wait>
		<fireRef label="stage2B_boss_fire_4_02"><param>0</param></fireRef>

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


<wait>70</wait>
<targetRevenge label="stage2B_boss_enemy"></targetRevenge>

</action>


<create label="bullet_red">
	<speed>1</speed>
	<direction type="absolute">135</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage2B_boss_enemy_4_01_red"></enemyRef>
</create>


<create label="bullet_blue">
	<speed>1</speed>
	<direction type="absolute">-135</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<enemyRef label="stage2B_boss_enemy_4_01_blue"></enemyRef>
</create>


<enemy label="stage2B_boss_enemy_4_01_red">
	<score>0</score>
	<inv>10</inv>
	<prate>0</prate>
	<child>1</child>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>

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

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

		<eval name="bul_dir">0</eval>
		<eval name="bul_sp">2</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_4_01"><param>0</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
		<wait>12</wait>

	<repeat><times>3</times>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">7</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">-8</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">6</eval>
		<repeat><times>4</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">0</eval>
		<repeat><times>4</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">($_player_cx%5)+5</eval>
		<repeat><times>4</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">($_player_cy%5)*(-1)-5</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">7</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">0</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">-8</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">8</eval>
		<repeat><times>8</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">($_player_cx%6)+5</eval>
		<repeat><times>4</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">0</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>


		<eval name="bul_dir">7</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>110</param><param>$bul_sp</param><param>255</param><param>2</param><param>2</param></fireRef>
			<wait>12</wait>
		</repeat>
	</repeat>
	</action>
</enemy>


<enemy label="stage2B_boss_enemy_4_01_blue">
	<score>0</score>
	<inv>10</inv>
	<prate>0</prate>
	<child>1</child>
	<collision type="circle"><cx>0</cx><cy>0</cy><radius>0</radius></collision>

	<img type="maskadd">
		<file type="dds">circle_enemy</file>
		<left>0</left><top>0</top><right>2</right><bottom>2</bottom>
		<width>2</width><height>2</height>
		<alpha>0</alpha><red>255</red><green>164</green><blue>2</blue>
	</img>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>
	<action>
		<changeSpeed>
			<speed type="absolute">0</speed><term>30</term>
		</changeSpeed>
		<wait>35</wait>

		<eval name="bul_dir">135+(($_player_cx+$_player_cy)%9)*10</eval>
		<eval name="bul_sp">2</eval>
		<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
		<fireRef label="stage2B_boss_fire_4_01_ab"><param>$bul_dir</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
		<wait>1</wait>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
		<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
		<wait>12</wait>

	<eval name="bul_dir">0</eval>
	<repeat><times>3</times>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">-8</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">9</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">-7</eval>
		<repeat><times>8</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">($_player_cx%5)*(-1)-5</eval>
		<repeat><times>4</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">0</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">-8</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">7</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">0</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">9</eval>
		<repeat><times>8</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">($_player_cx%6)*(-1)-5</eval>
		<repeat><times>4</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">($_player_cy%6)+5</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>

		<eval name="bul_dir">0</eval>
		<repeat><times>6</times>
			<actionRef label="enemy_bullet_action4"><param>64</param></actionRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>$bul_dir+20</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>50</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>1</wait>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>60</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>70</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<fireRef label="stage2B_boss_fire_4_01_s"><param>90</param><param>$bul_sp</param><param>2</param><param>200</param><param>200</param></fireRef>
			<wait>12</wait>
		</repeat>
	</repeat>


	</action>
</enemy>


<fire label="stage2B_boss_fire_4_01">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>0</cy>
	<bulletRef label="stage2B_boss_bullet_4_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></bulletRef>
</fire>

<fire label="stage2B_boss_fire_4_01_ab">
	<speed>3</speed>
	<direction type="absolute">$1</direction>
	<cx>0</cx><cy>0</cy>
	<bulletRef label="stage2B_boss_bullet_4_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></bulletRef>
</fire>

<fire label="stage2B_boss_fire_4_01_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>0</cy>
	<bulletRef label="stage2B_boss_bullet_4_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></bulletRef>
</fire>

<bullet label="stage2B_boss_bullet_4_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>$2</red><green>$3</green><blue>$4</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>

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

	</action>


</bullet>

<fire label="stage2B_boss_fire_4_02">
	<speed>1.4</speed>
	<direction type="aim">$1</direction>
	<bulletRef label="stage2B_boss_bullet_4_02"></bulletRef>
</fire>

<fire label="stage2B_boss_fire_4_02_s">
	<speed>1.4</speed>
	<direction type="sequence">$1</direction>
	<bulletRef label="stage2B_boss_bullet_4_02"></bulletRef>
</fire>

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

	<action>

	</action>


</bullet>


<create label="stage2B_boss_create_4_01">
	<speed>3</speed>
	<direction type="aim">$1</direction>
	<cx>0</cx><cy>0</cy>
	<vital>4</vital>
	<enemyRef label="stage2B_boss_enemy_4_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></enemyRef>
</create>

<create label="stage2B_boss_create_4_01_s">
	<speed>3</speed>
	<direction type="sequence">$1</direction>
	<cx>0</cx><cy>0</cy>
	<vital>4</vital>
	<enemyRef label="stage2B_boss_enemy_4_01"><param>$2</param><param>$3</param><param>$4</param><param>$5</param><param>$6</param><param>$7</param></enemyRef>
</create>

<enemy label="stage2B_boss_enemy_4_01">
	<score>0</score>
	<inv>10</inv>
	<prate>0.1</prate>
	<flag>7</flag>
	<collision type="sync"><left>-4</left><top>-4</top><right>4</right><bottom>4</bottom></collision>
	<revengeRef label="stage2B_boss_revenge_4_01"></revengeRef>

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

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


	</action>

</enemy>

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

	<vanish></vanish>
</revenge>






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

<revenge label="stage2B_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>1000</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="stage2B_boss_02_create"></createRef>

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


<revenge label="stage2B_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>
		<changeBulletToItem/>
		<wait>1</wait>
	</repeat>
	<targetRevenge label="stage2B_boss_mahoujin_2_01"></targetRevenge>

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

	<wait>1</wait>

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

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

<revenge label="stage2B_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>1000</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="stage2B_boss_04_create"></createRef>
	
	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>


<revenge label="stage2B_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>2</param></actionRef>
			<createRef label="item_create_01_etb"><param>-12000</param><param>200000</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>1200</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>
