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

<exbulletml>

<!-- ******************************************************************************* -->
<!-- ***** STAGE F1（遺跡）背景                        ***** -->
<!-- ******************************************************************************* -->

<action label="bg_bossbegin_action">
	<rep><ts>$__bg_stop_flag2-eq1</ts>
			<changeLight type="ambient"><alpha>0</alpha><red>15</red><green>2</green><blue>2</blue><flag>0</flag><tm>30</tm></changeLight>
			<changeLight type="directional"><alpha>0</alpha><red>50</red><green>50</green><blue>50</blue><x>-1</x><y>-4</y><z>-1</z><tm>30</tm></changeLight>
			<changeFog><alpha>0</alpha><red>5</red><green>0</green><blue>0</blue><worldminz>60</worldminz><worldmaxz>110</worldmaxz><term>30</term></changeFog>	
	</rep>

</action>

<action label="bg_bossend_action">
</action>

<action l="bg_midbossend_action">
</action>

<action l="bg_bossbossend_action">
			<changeLight type="ambient"><alpha>0</alpha><red>30</red><green>5</green><blue>5</blue><flag>0</flag><tm>30</tm></changeLight>
			<changeLight type="directional"><alpha>0</alpha><red>100</red><green>100</green><blue>100</blue><x>-1</x><y>-4</y><z>-1</z><tm>30</tm></changeLight>
			<changeFog><alpha>0</alpha><red>10</red><green>0</green><blue>0</blue><worldminz>60</worldminz><worldmaxz>110</worldmaxz><term>30</term></changeFog>	
</action>

<action label="bg_stop_action">
	<global name="bg_stop_flag">1</global>
	<create>
		<cx>320</cx><cy>240</cy>
		<speed>0</speed><dir type="abs">0</dir>
		<object>
			<aRef l="bg_action_3"></aRef>
		</object>
	</create>

	<create>
		<cx>320</cx><cy>240</cy>
		<speed>0</speed><dir type="abs">0</dir>
		<object>
			<w>120</w>
			<aRef l="bg_stop_action_4"></aRef>
		</object>
	</create>

</action>

<action label="bg_stop_action_4">
	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<repeat><times>60</times>
				<setMeshAccel>
					<worldvx>0</worldvx><worldvy>0</worldvy><worldvz>0.01</worldvz>
				</setMeshAccel>
				<wait>1</wait>
			</repeat>
			<w>1</w>
			<setMeshAccel>
				<worldvx>0</worldvx><worldvy>0</worldvy><worldvz>0</worldvz>
			</setMeshAccel>
			<setMeshVelocity>
				<worldvx>0</worldvx><worldvy>0</worldvy><worldvz>0</worldvz>
			</setMeshVelocity>
			<vanish></vanish>
		</object>
	</create>

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



<action label="bg_stop_action2">
</action>


<action label="bg_create_action">
	<global name="bg_stop_flag">0</global>
	<global name="bg_stop_flag2">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>30</red><green>5</green><blue>5</blue><flag>0</flag></setLight>
	<setLight type="directional"><alpha>0</alpha><red>100</red><green>100</green><blue>100</blue><x>-1</x><y>-4</y><z>-1</z></setLight>

	<setEye><worldx>0</worldx><worldy>30</worldy><worldz>-30</worldz></setEye>
	<setLookAt><worldx>0</worldx><worldy>-2</worldy><worldz>0</worldz></setLookAt>
	<setUpVec><worldx>0</worldx><worldy>0</worldy><worldz>1</worldz></setUpVec>
	<setBgColor><alpha>255</alpha><red>0</red><green>0</green><blue>0</blue></setBgColor>

	<plainShadowPoint><worldx>0</worldx><worldy>-25+0.02</worldy><worldz>0</worldz></plainShadowPoint>

	<setFog>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
		<worldminz>60</worldminz><worldmaxz>110</worldmaxz>
	</setFog>		


	<meshRef label="magic1"><p>-200</p><p>-250</p><p>100</p><p>0</p></meshRef>
	<meshRef label="blackmaterial"><p>-200</p><p>-250</p><p>100</p><p>0</p></meshRef>
	<meshRef label="blackmaterial2"><p>-200</p><p>-250</p><p>100</p><p>0</p></meshRef>
	<meshRef label="blackmaterial3"><p>-200</p><p>-250</p><p>100</p><p>0</p></meshRef>

</action>

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


	<create>
		<cx>320</cx><cy>240</cy>
		<speed>0</speed><dir type="abs">0</dir>
		<object>
			<aRef l="bg_action_1"></aRef>
		</object>
	</create>

	<targetRevenge label="stagestart_blackbg_object"></targetRevenge>
	<create>
		<direction type="absolute">0</direction><speed type="absolute">0</speed>
		<cx>320</cx><cy>240</cy>
		<object>
			<img type="add">
				<file type="dds">stageAbgfilter</file>
				<left>0</left><top>0</top><right>64</right><bottom>256</bottom>
				<width>362</width><height>480</height>
				<alpha>160</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>1</num></setDrawLevel>
		</object>
	</create>

</action>


<a l="bg_action_1">
	<v n="worldx">0</v>
	<v n="worldy">-25</v>
	<v n="worldz">110</v>
	<v n="vz">-0.2*4</v>

	<v n="i">0</v>
	<repeat><ts>8</ts>
		<add n="i">-16</add>
		<aRef l="bg_action_1_brck"><p>$i</p></aRef>
		<aRef l="bg_action_1_wall"><p>$i</p></aRef>
		<aRef l="bg_action_1_pole"><p>$i</p></aRef>
	</repeat>

	<aRef l="bg_action_1_2"></aRef>
	
	<create>
		<cx>320</cx><cy>240</cy>
		<speed>0</speed><dir type="abs">0</dir>
		<object>
			<aRef l="bg_action_2"></aRef>
		</object>
	</create>
	<w>1</w>

	<repeat><ts>-1</ts>
		<aRef l="bg_action_1_wall"><p>0</p></aRef>
		<aRef l="bg_action_1_pole"><p>0</p></aRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>
	</repeat>

</a>



<a l="bg_action_1_2">
	<repeat><ts>3*26-1</ts> <!-- 3*26 - 1 -->
		<aRef l="bg_action_1_brck"><p>0</p></aRef>
		<aRef l="bg_action_1_wall"><p>0</p></aRef>
		<aRef l="bg_action_1_pole"><p>0</p></aRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>
	</repeat>

	<repeat><ts>1</ts>
		<aRef l="bg_action_1_brck"><p>0</p></aRef>
		<meshRef label="wall1r"><p>-20</p><p>-25</p><p>118</p><p>-0.2*4</p></meshRef>
		<meshRef label="pole1"><p>-10</p><p>-25</p><p>118</p><p>-0.2*4</p></meshRef>
		<meshRef label="wall1r"><p>0</p><p>-25</p><p>118</p><p>-0.2*4</p></meshRef>
		<meshRef label="pole1"><p>10</p><p>-25</p><p>118</p><p>-0.2*4</p></meshRef>
		<meshRef label="wall1r"><p>20</p><p>-25</p><p>118</p><p>-0.2*4</p></meshRef>

		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>
	</repeat>

	<wait>80</wait>
	<aRef l="bg_action_1_wall2"><p>-40</p></aRef>
	<aRef l="bg_action_1_wall2"><p>-80</p></aRef>
	<aRef l="bg_action_1_wall2"><p>-120</p></aRef>
	<aRef l="bg_action_1_wall2"><p>-160</p></aRef>
	<wait>45</wait>

	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<repeat><times>10</times>
				<setMeshAccel>
					<worldvx>0</worldvx><worldvy>0</worldvy><worldvz>0.01</worldvz>
				</setMeshAccel>
				<wait>1</wait>
			</repeat>
			<vanish></vanish>
		</object>
	</create>

	<w>40</w>
	<changeLight type="ambient"><alpha>0</alpha><red>255</red><green>240</green><blue>220</blue><flag>0</flag><tm>90</tm></changeLight>
	<changeFog><alpha>0</alpha><red>10</red><green>0</green><blue>0</blue><worldminz>60</worldminz><worldmaxz>210</worldmaxz><term>90</term></changeFog>		
	<setMeshVelocity>
		<worldvx>0</worldvx><worldvy>0.4</worldvy><worldvz>0</worldvz>
	</setMeshVelocity>

	<aRef l="bg_action_1_wall3"><p>-40</p></aRef>
	<aRef l="bg_action_1_wall3"><p>-80</p></aRef>
	<aRef l="bg_action_1_wall3"><p>-120</p></aRef>
	<aRef l="bg_action_1_wall3"><p>-160</p></aRef>
	<aRef l="bg_action_1_wall3"><p>-200</p></aRef>
	<w>60</w>

	<rep><ts>54</ts> 
		<aRef l="bg_action_1_wall3"><p>-200</p></aRef>
		<w>60</w>
	</rep>

	<changeLight type="ambient"><alpha>0</alpha><red>0</red><green>0</green><blue>0</blue><flag>0</flag><tm>30</tm></changeLight>
	<changeLight type="directional"><alpha>0</alpha><red>0</red><green>0</green><blue>0</blue><x>-1</x><y>-4</y><z>-1</z><tm>30</tm></changeLight>
	<changeFog><alpha>0</alpha><red>0</red><green>0</green><blue>0</blue><worldminz>30</worldminz><worldmaxz>90</worldmaxz><term>30</term></changeFog>		

	<aRef l="bg_action_1_wall3"><p>-240</p></aRef>
	<aRef l="bg_action_1_wall3"><p>-280</p></aRef>
	<aRef l="bg_action_1_wall3"><p>-320</p></aRef>
	<aRef l="bg_action_1_wall3"><p>-360</p></aRef>

	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<repeat><times>10</times>
				<setMeshAccel>
					<worldvx>0</worldvx><worldvy>-0.01</worldvy><worldvz>0</worldvz>
				</setMeshAccel>
				<wait>1</wait>
			</repeat>
			<vanish></vanish>
		</object>
	</create>


	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<w>240</w>
			<changeLight type="ambient"><alpha>0</alpha><red>30</red><green>5</green><blue>5</blue><flag>0</flag><tm>120</tm></changeLight>
			<changeLight type="directional"><alpha>0</alpha><red>100</red><green>100</green><blue>100</blue><x>-1</x><y>-4</y><z>-1</z><tm>120</tm></changeLight>
			<changeFog><alpha>0</alpha><red>10</red><green>0</green><blue>0</blue><worldminz>60</worldminz><worldmaxz>110</worldmaxz><term>120</term></changeFog>	
			<w>120</w>
			<vanish></vanish>
		</object>
	</create>

</a>




<a l="bg_action_2">

	<repeat><ts>-1</ts>
		<aRef l="bg_action_1_brck"><p>0</p></aRef>
		<actionRef l="bg_stop_wait_check_action2"><p>20</p></actionRef>
	</repeat>

</a>




<a l="bg_action_1_brck">
	<v n="worldx">0</v>
	<v n="worldy">-25</v>
	<v n="worldz">110</v>
	<v n="vz">-0.2*4</v>

	<meshRef label="floor1"><p>8</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
	<meshRef label="floor1"><p>24</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
	<meshRef label="floor1"><p>40</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>

	<meshRef label="floor1"><p>-8</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
	<meshRef label="floor1"><p>-24</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
	<meshRef label="floor1"><p>-40</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
</a>

<a l="bg_action_1_wall">
	<v n="worldx">0</v>
	<v n="worldy">-25</v>
	<v n="worldz">110</v>
	<v n="vz">-0.2*4</v>

	<meshRef label="wall1"><p>26</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
	<meshRef label="wall1"><p>-26</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>

	<meshRef label="wall1"><p>18</p><p>$worldy</p><p>$worldz+$1+8</p><p>$vz</p></meshRef>
	<meshRef label="wall1"><p>-18</p><p>$worldy</p><p>$worldz+$1+8</p><p>$vz</p></meshRef>
</a>

<a l="bg_action_1_pole">
	<v n="worldx">0</v>
	<v n="worldy">-25</v>
	<v n="worldz">110</v>
	<v n="vz">-0.2*4</v>

	<meshRef label="pole1"><p>14</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>-14</p><p>$worldy</p><p>$worldz+$1</p><p>$vz</p></meshRef>
</a>


<a l="bg_action_1_wall2">
	<v n="worldx">0</v>
	<v n="worldy">0</v>
	<v n="worldz">80</v>
	<v n="vz">-0.2*4</v>

	<meshRef label="wall2"><p>0</p><p>$worldy+$1</p><p>$worldz</p><p>$vz</p><p>0</p></meshRef>
</a>

<a l="bg_action_1_wall3">
	<v n="worldx">0</v>
	<v n="worldy">0</v>
	<v n="worldz">10</v>

	<meshRef label="wall2"><p>0</p><p>$worldy+$1</p><p>$worldz</p><p>0</p><p>0.4</p></meshRef>

</a>

<a l="bg_action_3">
	<v n="worldx">0</v>
	<v n="worldy">-25</v>
	<v n="worldz">155</v>
	<v n="vz">-0.2*4</v>

	<system><command>effectmeshenable</command></system>

	<meshRef label="magic1"><p>0</p><p>$worldy+0.02</p><p>$worldz</p><p>$vz</p></meshRef>
	<meshRef label="blackmaterial"><p>0</p><p>$worldy+5</p><p>$worldz</p><p>$vz</p></meshRef>
	<meshRef label="blackmaterial2"><p>0</p><p>$worldy+5-0.5</p><p>$worldz+0.5</p><p>$vz</p></meshRef>
	<meshRef label="blackmaterial3"><p>0</p><p>$worldy+5-0.5</p><p>$worldz+0.5</p><p>$vz</p></meshRef>
	<w>1</w>

	<meshRef label="pole1"><p>8</p><p>$worldy</p><p>$worldz-30</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>-8</p><p>$worldy</p><p>$worldz-30</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>8</p><p>$worldy</p><p>$worldz+30</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>-8</p><p>$worldy</p><p>$worldz+30</p><p>$vz</p></meshRef>

	<w>1</w>
	<meshRef label="pole1"><p>22</p><p>$worldy</p><p>$worldz-20</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>-22</p><p>$worldy</p><p>$worldz-20</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>22</p><p>$worldy</p><p>$worldz+20</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>-22</p><p>$worldy</p><p>$worldz+20</p><p>$vz</p></meshRef>

	<w>1</w>
	<meshRef label="pole1"><p>28</p><p>$worldy</p><p>$worldz-8</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>-28</p><p>$worldy</p><p>$worldz-8</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>28</p><p>$worldy</p><p>$worldz+8</p><p>$vz</p></meshRef>
	<meshRef label="pole1"><p>-28</p><p>$worldy</p><p>$worldz+8</p><p>$vz</p></meshRef>

</a>



<action label="stagestart_blackbg_create_action">
	<create>
		<direction type="absolute">0</direction>
		<speed type="absolute">0</speed>
		<cx>320</cx><cy>240</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>360</width><height>482</height>
				<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue>
			</img>
			<setDrawLevel><num>24</num></setDrawLevel>
		</object>
	</create>
</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 l="bg_stop_wait_check_action2">
	<rep><ts>$1</ts>
		<wait>1</wait>
		<rep><ts>$__bg_stop_flag2-eq1</ts><exit></exit></rep>
	</rep>
</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>

<!-- *********************************************************************** -->
<!-- ***** DXT1 フォーマット                                           ***** -->
<!-- ***********************************************************************
 -->

<mesh label="floor1">
	<file>floor1</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-100.0</worldminy><worldminz>-20.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<flag>0</flag>
</mesh>

<mesh label="magic1">
	<file>magic1</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-100.0</worldminy><worldminz>-20.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<flag>16</flag>
</mesh>

<mesh label="wall1">
	<file>st5wall1</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-400.0</worldminy><worldminz>-10.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<flag>32</flag>
</mesh>

<mesh label="wall1r">
	<file>st5wall1</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-400.0</worldminy><worldminz>-10.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<rotatex>0.0</rotatex><rotatey>90.0</rotatey><rotatez>0.0</rotatez>
	<flag>32</flag>
</mesh>

<mesh label="wall2">
	<file>st5wall2</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>$5</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-400.0</worldminy><worldminz>-100.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>20.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<flag>0</flag>
</mesh>

<mesh label="pole1">
	<file>pole1</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-100.0</worldminy><worldminz>-20.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<flag>32</flag>
</mesh>

<mesh label="blackmaterial">
	<file>blackmaterial</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-200.0</worldminy><worldminz>-10.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>100.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<rotatex>0.0</rotatex><rotatey>0.0</rotatey><rotatez>0.0</rotatez>
	<rotatevx>0.0</rotatevx><rotatevy>0.5</rotatevy><rotatevz>0.0</rotatevz>
	<flag>17</flag>
</mesh>

<mesh label="blackmaterial2">
	<file>blackmaterial</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-200.0</worldminy><worldminz>-10.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>100.0</worldmaxy><worldmaxz>1000.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>
	<flag>17</flag>
</mesh>

<mesh label="blackmaterial3">
	<file>blackmaterial</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>$4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-200.0</worldminy><worldminz>-10.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>100.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<rotatex>0.0</rotatex><rotatey>0.0</rotatey><rotatez>0.0</rotatez>
	<rotatevx>0.0</rotatevx><rotatevy>0.3</rotatevy><rotatevz>0.0</rotatevz>
	<flag>32</flag>
</mesh>

<!-- *********************************************************************** -->
<!-- ***** A8R8G8B8 フォーマット                                       ***** -->
<!-- *********************************************************************** -->

</exbulletml>
