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

<exbulletml>

<!-- ******************************************************************************* -->
<!-- ***** STAGE C1（線路）背景                        ***** -->
<!-- ******************************************************************************* -->

<action label="bg_bossbegin_action">
	<changeLight type="ambient"><alpha>0</alpha><red>5</red><green>5</green><blue>5</blue><flag>0</flag><tm>30</tm></changeLight>
	<changeLight type="directional"><alpha>0</alpha><red>50</red><green>50</green><blue>50</blue><tm>30</tm><x>-1</x><y>-4</y><z>-1</z><num>0</num></changeLight>

	<changeFog>
		<alpha>0</alpha><red>110</red><green>90</green><blue>70</blue>
		<worldminz>60</worldminz><worldmaxz>110</worldmaxz>
		<term>10</term>
	</changeFog>		

</action>

<action label="bg_bossend_action">
	<changeLight type="ambient"><alpha>0</alpha><red>20</red><green>20</green><blue>20</blue><flag>0</flag><tm>30</tm></changeLight>
	<changeLight type="directional"><alpha>0</alpha><red>100</red><green>100</green><blue>100</blue><tm>30</tm><x>-1</x><y>-4</y><z>-1</z><num>0</num></changeLight>

	<changeFog>
		<alpha>0</alpha><red>220</red><green>180</green><blue>140</blue>
		<worldminz>60</worldminz><worldmaxz>110</worldmaxz>
		<term>10</term>
	</changeFog>		

</action>

<action l="bg_midbossend_action">
	<create>
		<cx>320</cx><cy>240</cy>
		<speed>0</speed><dir type="abs">0</dir>
		<object>
			<wait>15</wait>
			<changeEyeSpeed><worldx>0</worldx><worldy>-0.15</worldy><worldz>0.15</worldz><term>100</term></changeEyeSpeed>

			<wait>100</wait>
			<changeEyeSpeed><worldx>0</worldx><worldy>0</worldy><worldz>0</worldz><term>60</term></changeEyeSpeed>
			
			<wait>60</wait>
			<vanish></vanish>
		</object>
	</create>

</action>

<action l="bg_bossbossend_action">
	<changeLight type="ambient"><alpha>0</alpha><red>20</red><green>20</green><blue>20</blue><flag>0</flag><tm>30</tm></changeLight>
	<changeLight type="directional"><alpha>0</alpha><red>100</red><green>100</green><blue>100</blue><tm>30</tm><x>-1</x><y>-4</y><z>-1</z><num>0</num></changeLight>
</action>

<action label="bg_stop_action">
	<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.005</worldvz>
				</setMeshAccel>
				<wait>1</wait>
			</repeat>
			<vanish></vanish>
		</object>
	</create>

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


<action label="bg_create_action">
	<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>20</red><green>20</green><blue>20</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.01</worldy><worldz>0</worldz></plainShadowPoint>

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

</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>
		
			<!-- *** DXT1 サポートチェック *** -->
			<sysvar n="_arg0">2</sysvar>
			<v n="dxt1">$_isd3dsupported</v>

			<rep><ts>$dxt1</ts><aRef l="bg_action_1c"></aRef></rep>
			<rep><ts>1-$dxt1</ts><aRef l="bg_action_1"></aRef></rep>

		</object>
	</create>
	<create>
		<cx>320</cx><cy>240</cy>
		<speed>0</speed><dir type="abs">0</dir>
		<object>
		
			<!-- *** DXT1 サポートチェック *** -->
			<sysvar n="_arg0">2</sysvar>
			<v n="dxt1">$_isd3dsupported</v>

			<rep><ts>$dxt1</ts><aRef l="bg_action_2c"></aRef></rep>
			<rep><ts>1-$dxt1</ts><aRef l="bg_action_2"></aRef></rep>

		</object>
	</create>
	<create>
		<cx>320</cx><cy>240</cy>
		<speed>0</speed><dir type="abs">0</dir>
		<object>
		
			<!-- *** DXT1 サポートチェック *** -->
			<sysvar n="_arg0">2</sysvar>
			<v n="dxt1">$_isd3dsupported</v>

			<rep><ts>$dxt1</ts><aRef l="bg_action_3c"></aRef></rep>
			<rep><ts>1-$dxt1</ts><aRef l="bg_action_3"></aRef></rep>

		</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">stageCbgfilter</file>
				<left>0</left><top>0</top><right>64</right><bottom>256</bottom>
				<width>362</width><height>480</height>
				<alpha>120</alpha><red>255</red><green>255</green><blue>255</blue>
			</img>
			<setDrawLevel><num>1</num></setDrawLevel>
		</object>
	</create>

</action>


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

	<v n="mywait">100</v>

	<v n="i">0</v>

	<repeat><ts>30</ts>
		<add n="i">-2</add>
		<aRef l="bg_action_1c_brck"><p>$i</p></aRef>

		<repeat><ts>4</ts>
			<add n="i">-2</add>
			<meshRef label="mesh1c"><p>-1</p><p>$worldy</p><p>$worldz+$i</p><p>$vz</p></meshRef>
			<meshRef label="mesh1c"><p>6</p><p>$worldy</p><p>$worldz+$i</p><p>$vz</p></meshRef>
		</repeat>

	</repeat>


	<repeat><ts>-1</ts>
		<aRef l="bg_action_1c_brck"><p>0</p></aRef>

		<meshRef label="mesh1c"><p>-1</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<meshRef label="mesh1c"><p>6</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>

		<meshRef label="mesh1c"><p>-1</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<meshRef label="mesh1c"><p>6</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>

		<meshRef label="mesh1c"><p>-1</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<meshRef label="mesh1c"><p>6</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>

		<meshRef label="mesh1c"><p>-1</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<meshRef label="mesh1c"><p>6</p><p>$worldy</p><p>$worldz</p><p>$vz</p></meshRef>
		<actionRef l="bg_stop_wait_check_action"><p>20</p></actionRef>

	</repeat>

</a>

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

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

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

</a>

<a l="bg_action_2c">
	<v n="worldx">-15</v>
	<v n="worldy">-26</v>
	<v n="worldz">110</v>
	<v n="vz">-0.2</v>

	<v n="i">0</v>

	<repeat><ts>4</ts>
		<add n="i">-30</add>
		<meshRef label="rock1c"><p>$worldx</p><p>$worldy</p><p>$worldz+$i</p><p>$vz</p></meshRef>
		<meshRef label="rock2c"><p>22</p><p>-27</p><p>$worldz+$i</p><p>$vz</p></meshRef>
	</repeat>

	<repeat><ts>-1</ts>
		<meshRef label="rock1c"><p>$worldx</p><p>$worldy</p><p>$worldz+0</p><p>$vz</p></meshRef>
		<meshRef label="rock2c"><p>22</p><p>-27</p><p>$worldz+0</p><p>$vz</p></meshRef>
		<actionRef l="bg_stop_wait_check_action"><p>150</p></actionRef>
	</repeat>
</a>

<a l="bg_action_3c">
	<v n="vz">-0.2</v>

	<v n="i">0</v>
	<repeat><ts>10</ts>
		<add n="i">-12</add>
		<meshRef label="dec2c"><p>9</p><p>-25</p><p>110+$i</p><p>$vz</p></meshRef>
		<meshRef label="dec2c"><p>-5</p><p>-25</p><p>110+6+$i</p><p>$vz</p></meshRef>
	</repeat>

	<repeat><ts>-1</ts>
		<meshRef label="dec2c"><p>9</p><p>-25</p><p>110</p><p>$vz</p></meshRef>
		<meshRef label="dec2c"><p>-5</p><p>-25</p><p>110+6</p><p>$vz</p></meshRef>
		<actionRef l="bg_stop_wait_check_action"><p>60</p></actionRef>
	</repeat>
</a>



<a l="bg_action_1">
</a>

<a l="bg_action_2">
</a>

<a l="bg_action_3">
</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>

<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="mesh1c">
	<file>railwood</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="brck1c">
	<file>brck1</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="grnd1c">
	<file>ground1</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="dec1c">
	<file>tree1</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="rock1c">
	<file>stagecbox1</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>-40.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<flag>0</flag>
</mesh>

<mesh label="rock2c">
	<file>stagecbox2</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>-40.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>1000.0</worldmaxz>
	<flag>0</flag>
</mesh>

<mesh label="dec2c">
	<file>miniobj2</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>

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

</exbulletml>
