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

<exbulletml>

<!-- ******************************************************************************* -->
<!-- ***** STAGE 6 背景                                                        ***** -->
<!-- ******************************************************************************* -->

<action l="bg_midboss_begin_action">
</action>

<action l="bg_midboss_end_action">
</action>

<action label="bg_stop_action">
	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<repeat><times>110</times>
				<setMeshAccel>
					<worldvx>0</worldvx><worldvy>0</worldvy><worldvz>0.004</worldvz>
				</setMeshAccel>
				<wait>1</wait>
			</repeat>
			<vanish></vanish>
		</object>
	</create>

	<global name="bg_stop_flag">1</global>
</action>

<action l="bg_stop_wait_check_action">
	<rep><ts>$1</ts>
		<wait>1</wait>
		<rep><ts>$__bg_stop_flag-eq1</ts><exit></exit></rep>
	</rep>
</action>

<action label="bg_create_action">
  <global n="blur_alpha">0</global>
	<global n="hdr_bloom">0.70</global>
	<global n="hdr_star">0.70</global>
	<global n="hdr_dark">0.40</global>

	<global name="bg_stop_flag">0</global>
	<actionRef label="stagestart_blackbg_create_action"></actionRef>
	<system><command>effectmeshdisable</command></system>
	<system><command>fulldrawoff</command></system>

	<setLight type="ambient"><alpha>0</alpha><red>140</red><green>140</green><blue>140</blue><flag>0</flag></setLight>
	<setLight type="directional"><alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><x>-0.1</x><y>-1</y><z>-0.5</z><num>0</num></setLight>


	<setBumpVector><worldx>1</worldx><worldy>1</worldy><worldz>1</worldz></setBumpVector>

	<setEye><worldx>0</worldx><worldy>40</worldy><worldz>-30</worldz></setEye>
	<setLookAt><worldx>0</worldx><worldy>0</worldy><worldz>5</worldz></setLookAt>
	<setUpVec><worldx>0</worldx><worldy>0</worldy><worldz>1</worldz></setUpVec>

	<plainShadowPoint><worldx>0</worldx><worldy>-160+0.01</worldy><worldz>0</worldz></plainShadowPoint>

	<setFog>
		<alpha>0</alpha><red>16</red><green>0</green><blue>0</blue>
		<worldminz>80</worldminz><worldmaxz>280</worldmaxz>
	</setFog>		

	<system><command>enablefog</command></system>
	
</action>

<action label="bg_start_action">
	<setBgColor><alpha>255</alpha><red>0</red><green>0</green><blue>0</blue></setBgColor>

	<targetRevenge label="stagestart_blackbg_object"></targetRevenge>

 	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400</cx><cy>300</cy>
		<object>
			<aRef l="bg_action_1"></aRef>
		</object>
	</create>

 	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400</cx><cy>300</cy>
		<object>
			<aRef l="bg_action_2"></aRef>
		</object>
	</create>



</action>

<!-- ************************************************************************************* -->
<a l="bg_action_1">

	<eval n="i">1</eval>
	<rep><ts>5</ts>

		<createRef l="bg_action_1_1_create"><p>-100</p><p>-160</p><p>400-$i*100</p></createRef>
		<createRef l="bg_action_1_1_create"><p>0</p><p>-160</p><p>400-$i*100</p></createRef>
		<createRef l="bg_action_1_1_create"><p>100</p><p>-160</p><p>400-$i*100</p></createRef>

		<evaladd n="i">1</evaladd>
	</rep>

	<rep><ts>-1</ts>

		<createRef l="bg_action_1_1_create"><p>-100</p><p>-160</p><p>400</p></createRef>
		<createRef l="bg_action_1_1_create"><p>0</p><p>-160</p><p>400</p></createRef>
		<createRef l="bg_action_1_1_create"><p>100</p><p>-160</p><p>400</p></createRef>

		<actionRef l="bg_stop_wait_check_action"><p>100</p></actionRef>
	</rep>

</a>

<create l="bg_action_1_1_create">
	<dir type="abs">0</dir><speed type="abs">0</speed><cx>400</cx><cy>300</cy>
	<objectRef l="bg_action_1_1_obj"><p>$1</p><p>$2</p><p>$3</p></objectRef>
</create>

<object l="bg_action_1_1_obj">
	<objShapeMeshRef l="floormesh1"><p>$1</p><p>$2</p><p>$3</p><p>-1.0</p></objShapeMeshRef>

	<setMeshTexture><file type="dds">stage6A_cube_tex2_r</file><num>0</num><stage>0</stage></setMeshTexture>
	<definedAction type="synctomesh"></definedAction>
	<setZ><z>0.95</z></setZ>
</object>

<objShapeMesh label="floormesh1" type="board">
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-2000.0</worldminx><worldminy>-2000.0</worldminy><worldminz>-40.0</worldminz>
	<worldmaxx>2000.0</worldmaxx><worldmaxy>2000.0</worldmaxy><worldmaxz>2000.0</worldmaxz>
	<rotatex>0.0</rotatex><rotatey>0.0</rotatey><rotatez>0.0</rotatez>
	<rotatevx>0.0</rotatevx><rotatevy>0.0</rotatevy><rotatevz>0.0</rotatevz>
	<width>100.0</width><height>100.0</height><x>1</x><y>1</y>
	<flag>0</flag>
</objShapeMesh>

<!-- ************************************************************************************* -->
<a l="bg_action_2">

	<eval n="i">1</eval>
	<rep><ts>10</ts>
		<createRef l="bg_action_2_1_create"><p>-40</p><p>-110</p><p>300-$i*20</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_create"><p>40</p><p>-110</p><p>300-$i*20</p><p>-30</p></createRef>
		<evaladd n="i">1</evaladd>

		<createRef l="bg_action_2_1_create"><p>-50</p><p>-60</p><p>300-$i*20</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_create"><p>50</p><p>-60</p><p>300-$i*20</p><p>-30</p></createRef>
		<evaladd n="i">1</evaladd>
	</rep>

	<rep><ts>-1</ts>
		<createRef l="bg_action_2_1_create"><p>-40</p><p>-110</p><p>300</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_create"><p>40</p><p>-110</p><p>300</p><p>-30</p></createRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>

		<createRef l="bg_action_2_1_create"><p>-50</p><p>-60</p><p>300</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_create"><p>50</p><p>-60</p><p>300</p><p>-30</p></createRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>
	</rep>

</a>

<create l="bg_action_2_1_create">
	<dir type="abs">0</dir><speed type="abs">0</speed><cx>400</cx><cy>300</cy>
	<objectRef l="bg_action_2_1_obj"><p>$1</p><p>$2</p><p>$3</p><p>$4</p></objectRef>
</create>

<object l="bg_action_2_1_obj">
	<objMeshRef l="objmesh_2_1"><p>$1</p><p>$2</p><p>$3</p><p>-1.0</p><p>$4</p></objMeshRef>

	<setMeshTexture><file type="dds">stage6A_cube_tex_r</file><num>0</num><stage>0</stage></setMeshTexture>
	<plainShadowPoint><worldx>0</worldx><worldy>-100+0.01</worldy><worldz>0</worldz></plainShadowPoint>
	<definedAction type="synctomesh"></definedAction>
	<setZ><z>0.95</z></setZ>
</object>

<objMesh label="objmesh_2_1">
	<file>stage6A_cube_mesh_r</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-200.0</worldminx><worldminy>-200.0</worldminy><worldminz>$5</worldminz>
	<worldmaxx>200.0</worldmaxx><worldmaxy>200.0</worldmaxy><worldmaxz>1200.0</worldmaxz>
	<rotatex>0</rotatex><rotatey>0</rotatey><rotatez>0</rotatez>
	<rotatevx>0</rotatevx><rotatevy>0</rotatevy><rotatevz>0</rotatevz>
	<flag>0</flag>
</objMesh>



<!-- *********** ラスト演出 ここから***************************************************************** -->
<action label="bg_last_action">
	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<global name="bg_last_stop_flag">0</global>

			<setMeshAccel>
				<worldvx>0</worldvx><worldvy>-0.01</worldvy><worldvz>0</worldvz>
			</setMeshAccel>
			<w>10</w>

			<rep><ts>-1</ts>
				<createRef l="bg_action_2_2_create"><p>-40</p><p>50</p><p>80</p><p>-30</p></createRef>	
				<createRef l="bg_action_2_2_create"><p>40</p><p>50</p><p>80</p><p>-30</p></createRef>
				<actionRef l="bg_last_stop_wait_check_action"><p>15</p></actionRef>
				<createRef l="bg_action_2_2_create"><p>-40</p><p>50</p><p>120</p><p>-30</p></createRef>	
				<createRef l="bg_action_2_2_create"><p>40</p><p>50</p><p>120</p><p>-30</p></createRef>
				<actionRef l="bg_last_stop_wait_check_action"><p>15</p></actionRef>

				<createRef l="bg_action_2_2_create"><p>-50</p><p>50</p><p>40</p><p>-30</p></createRef>
				<createRef l="bg_action_2_2_create"><p>50</p><p>50</p><p>40</p><p>-30</p></createRef>
				<actionRef l="bg_last_stop_wait_check_action"><p>15</p></actionRef>
				<createRef l="bg_action_2_2_create"><p>-50</p><p>50</p><p>160</p><p>-30</p></createRef>
				<createRef l="bg_action_2_2_create"><p>50</p><p>50</p><p>160</p><p>-30</p></createRef>
				<actionRef l="bg_last_stop_wait_check_action"><p>15</p></actionRef>
			</rep>

		</object>
	</create>

</action>

<create l="bg_action_2_2_create">
	<dir type="abs">0</dir><speed type="abs">0</speed><cx>400</cx><cy>300</cy>
	<objectRef l="bg_action_2_2_obj"><p>$1</p><p>$2</p><p>$3</p><p>$4</p></objectRef>
</create>

<object l="bg_action_2_2_obj">
	<objMeshRef l="objmesh_2_2"><p>$1</p><p>$2</p><p>$3</p><p>-1.0</p><p>$4</p></objMeshRef>

	<setMeshTexture><file type="dds">stage6A_cube_tex_r</file><num>0</num><stage>0</stage></setMeshTexture>

	<plainShadowPoint><worldx>0</worldx><worldy>-100+0.01</worldy><worldz>0</worldz></plainShadowPoint>
	<definedAction type="synctomesh"></definedAction>
	<setZ><z>0.95</z></setZ>
</object>

<objMesh label="objmesh_2_2">
	<file>stage6A_cube_mesh_r</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>$4</worldvy><worldvz>0.0</worldvz>
	<worldminx>-200.0</worldminx><worldminy>-400.0</worldminy><worldminz>$5</worldminz>
	<worldmaxx>200.0</worldmaxx><worldmaxy>0.0</worldmaxy><worldmaxz>400.0</worldmaxz>
	<rotatex>0</rotatex><rotatey>0</rotatey><rotatez>0</rotatez>
	<rotatevx>0</rotatevx><rotatevy>0</rotatevy><rotatevz>0</rotatevz>
	<flag>0</flag>
</objMesh>


<action label="bg_last_stop_action">
	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<repeat><times>110</times>
				<setMeshAccel>
					<worldvx>0</worldvx><worldvy>0.002</worldvy><worldvz>0</worldvz>
				</setMeshAccel>
				<wait>1</wait>
			</repeat>	
			<vanish></vanish>
		</object>
	</create>

	<global name="bg_last_stop_flag">1</global>
</action>

<action l="bg_last_stop_wait_check_action">
	<rep><ts>$1/5</ts>
		<wait>5</wait>
		<rep><ts>$__bg_last_stop_flag-eq1</ts><exit></exit></rep>
	</rep>
</action>
<!-- *********** ラスト演出 ここまで***************************************************************** -->

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

<action label="bg_start_A_action">
	<system><command>vanishallmesh</command></system>

	<global n="hdr_bloom">0.70</global>
	<global n="hdr_star">0.70</global>
	<global n="hdr_dark">0.40</global>

	<setFog>
		<alpha>0</alpha><red>0</red><green>16</green><blue>16</blue>
		<worldminz>100</worldminz><worldmaxz>280</worldmaxz>
	</setFog>		

 	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400</cx><cy>300</cy>
		<object>
			<aRef l="bg_action_1_A"></aRef>
		</object>
	</create>

 	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400</cx><cy>300</cy>
		<object>
			<aRef l="bg_action_2_A"></aRef>
		</object>
	</create>

</action>


<a l="bg_action_1_A">

	<eval n="i">1</eval>
	<rep><ts>5</ts>

		<createRef l="bg_action_1_1_A_create"><p>-100</p><p>-160</p><p>400-$i*100</p></createRef>
		<createRef l="bg_action_1_1_A_create"><p>0</p><p>-160</p><p>400-$i*100</p></createRef>
		<createRef l="bg_action_1_1_A_create"><p>100</p><p>-160</p><p>400-$i*100</p></createRef>

		<evaladd n="i">1</evaladd>
	</rep>
</a>

<create l="bg_action_1_1_A_create">
	<dir type="abs">0</dir><speed type="abs">0</speed><cx>400</cx><cy>300</cy>
	<objectRef l="bg_action_1_1_A_obj"><p>$1</p><p>$2</p><p>$3</p></objectRef>
</create>

<object l="bg_action_1_1_A_obj">
	<objShapeMeshRef l="floormesh1"><p>$1</p><p>$2</p><p>$3</p><p>0.0</p></objShapeMeshRef>

	<setMeshTexture><file type="dds">stage6A_cube_tex2</file><num>0</num><stage>0</stage></setMeshTexture>
	<definedAction type="synctomesh"></definedAction>
	<setZ><z>0.95</z></setZ>
</object>


<!-- ************************************************************************************* -->
<a l="bg_action_2_A">
	<eval n="i">1</eval>
	<rep><ts>10</ts>
		<createRef l="bg_action_2_1_A_create"><p>-40</p><p>-110</p><p>300-$i*20</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_A_create"><p>40</p><p>-110</p><p>300-$i*20</p><p>-30</p></createRef>
		<evaladd n="i">1</evaladd>

		<createRef l="bg_action_2_1_A_create"><p>-50</p><p>-60</p><p>300-$i*20</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_A_create"><p>50</p><p>-60</p><p>300-$i*20</p><p>-30</p></createRef>
		<evaladd n="i">1</evaladd>
	</rep>
</a>

<create l="bg_action_2_1_A_create">
	<dir type="abs">0</dir><speed type="abs">0</speed><cx>400</cx><cy>300</cy>
	<objectRef l="bg_action_2_1_A_obj"><p>$1</p><p>$2</p><p>$3</p><p>$4</p></objectRef>
</create>

<object l="bg_action_2_1_A_obj">
	<objMeshRef l="objmesh_2_1_A"><p>$1</p><p>$2</p><p>$3</p><p>0.0</p><p>$4</p></objMeshRef>

	<setMeshTexture><file type="dds">stage6A_cube_tex</file><num>0</num><stage>0</stage></setMeshTexture>
	<plainShadowPoint><worldx>0</worldx><worldy>-100+0.01</worldy><worldz>0</worldz></plainShadowPoint>
	<definedAction type="synctomesh"></definedAction>
	<setZ><z>0.95</z></setZ>
</object>

<objMesh label="objmesh_2_1_A">
	<file>stage6A_cube_mesh</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-200.0</worldminx><worldminy>-200.0</worldminy><worldminz>$5</worldminz>
	<worldmaxx>200.0</worldmaxx><worldmaxy>200.0</worldmaxy><worldmaxz>1200.0</worldmaxz>
	<rotatex>0</rotatex><rotatey>0</rotatey><rotatez>0</rotatez>
	<rotatevx>0</rotatevx><rotatevy>0</rotatevy><rotatevz>0</rotatevz>
	<flag>0</flag>
</objMesh>



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

<action label="bg_start_B_action">
	<system><command>vanishallmesh</command></system>

	<global n="hdr_bloom">0.70</global>
	<global n="hdr_star">0.70</global>
	<global n="hdr_dark">0.40</global>

	<setFog>
		<alpha>0</alpha><red>16</red><green>0</green><blue>0</blue>
		<worldminz>100</worldminz><worldmaxz>280</worldmaxz>
	</setFog>		

 	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400</cx><cy>300</cy>
		<object>
			<aRef l="bg_action_1_B"></aRef>
		</object>
	</create>

 	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>400</cx><cy>300</cy>
		<object>
			<aRef l="bg_action_2_B"></aRef>
		</object>
	</create>

</action>


<a l="bg_action_1_B">

	<eval n="i">1</eval>
	<rep><ts>5</ts>

		<createRef l="bg_action_1_1_B_create"><p>-100</p><p>-160</p><p>400-$i*100</p></createRef>
		<createRef l="bg_action_1_1_B_create"><p>0</p><p>-160</p><p>400-$i*100</p></createRef>
		<createRef l="bg_action_1_1_B_create"><p>100</p><p>-160</p><p>400-$i*100</p></createRef>

		<evaladd n="i">1</evaladd>
	</rep>
</a>

<create l="bg_action_1_1_B_create">
	<dir type="abs">0</dir><speed type="abs">0</speed><cx>400</cx><cy>300</cy>
	<objectRef l="bg_action_1_1_B_obj"><p>$1</p><p>$2</p><p>$3</p></objectRef>
</create>

<object l="bg_action_1_1_B_obj">
	<objShapeMeshRef l="floormesh1"><p>$1</p><p>$2</p><p>$3</p><p>0.0</p></objShapeMeshRef>

	<setMeshTexture><file type="dds">stage6A_cube_tex2_r</file><num>0</num><stage>0</stage></setMeshTexture>
	<definedAction type="synctomesh"></definedAction>
	<setZ><z>0.95</z></setZ>
</object>


<!-- ************************************************************************************* -->
<a l="bg_action_2_B">
	<eval n="i">1</eval>
	<rep><ts>10</ts>
		<createRef l="bg_action_2_1_B_create"><p>-40</p><p>-110</p><p>300-$i*20</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_B_create"><p>40</p><p>-110</p><p>300-$i*20</p><p>-30</p></createRef>
		<evaladd n="i">1</evaladd>

		<createRef l="bg_action_2_1_B_create"><p>-50</p><p>-60</p><p>300-$i*20</p><p>-30</p></createRef>
		<createRef l="bg_action_2_1_B_create"><p>50</p><p>-60</p><p>300-$i*20</p><p>-30</p></createRef>
		<evaladd n="i">1</evaladd>
	</rep>
</a>

<create l="bg_action_2_1_B_create">
	<dir type="abs">0</dir><speed type="abs">0</speed><cx>400</cx><cy>300</cy>
	<objectRef l="bg_action_2_1_B_obj"><p>$1</p><p>$2</p><p>$3</p><p>$4</p></objectRef>
</create>

<object l="bg_action_2_1_B_obj">
	<objMeshRef l="objmesh_2_1_B"><p>$1</p><p>$2</p><p>$3</p><p>0.0</p><p>$4</p></objMeshRef>

	<setMeshTexture><file type="dds">stage6A_cube_tex_r</file><num>0</num><stage>0</stage></setMeshTexture>
	<plainShadowPoint><worldx>0</worldx><worldy>-100+0.01</worldy><worldz>0</worldz></plainShadowPoint>
	<definedAction type="synctomesh"></definedAction>
	<setZ><z>0.95</z></setZ>
</object>

<objMesh label="objmesh_2_1_B">
	<file>stage6A_cube_mesh_r</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-200.0</worldminx><worldminy>-200.0</worldminy><worldminz>$5</worldminz>
	<worldmaxx>200.0</worldmaxx><worldmaxy>200.0</worldmaxy><worldmaxz>1200.0</worldmaxz>
	<rotatex>0</rotatex><rotatey>0</rotatey><rotatez>0</rotatez>
	<rotatevx>0</rotatevx><rotatevy>0</rotatevy><rotatevz>0</rotatevz>
	<flag>0</flag>
</objMesh>


<!-- ************************************************************************************* -->
<action l="bg_stop_wait_check_action">
	<rep><ts>$1/5</ts>
		<wait>5</wait>
		<rep><ts>$__bg_stop_flag-eq1</ts><exit></exit></rep>
	</rep>
</action>


<action label="stagestart_blackbg_create_action">
	<create>
		<direction type="absolute">0</direction>
		<speed type="absolute">0</speed>
		<cx>400</cx><cy>300</cy>
		<object label="stagestart_blackbg_object">
			<revengeRef label="stagestart_blackbg_revenge"></revengeRef>
			<img type="normal">
				<file type="dds">rectwhite</file>
				<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
				<width>500</width><height>600</height>
				<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue>
			</img>
			<setDrawLevel><num>24</num></setDrawLevel>
		</object>
	</create>
</action>

<revenge label="stagestart_blackbg_revenge">
	<wait>2</wait>
	<changeColor>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue><term>120</term>			
	</changeColor>
	<wait>120</wait>
	<vanish></vanish>
</revenge>




</exbulletml>
