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

<exbulletml>


<action label="bg_fadeout_action">
	<changeLight type="ambient">
		<alpha>255</alpha><red>32</red><green>32</green><blue>32</blue><flag>0</flag><term>60</term>
	</changeLight>
	<changeLight type="ambient">
		<alpha>255</alpha><red>32</red><green>32</green><blue>32</blue><flag>1</flag><term>60</term>
	</changeLight>
</action>

<action label="bg_fadein_action">
	<changeLight type="ambient">
		<alpha>0</alpha><red>32</red><green>32</green><blue>32</blue><flag>1</flag><term>60</term>
	</changeLight>
	<changeLight type="ambient">
		<alpha>0</alpha><red>32</red><green>32</green><blue>32</blue><flag>0</flag><term>60</term>
	</changeLight>
</action>

<action label="bg_stop_action">
	<setMeshAccel>
		<worldvx>0</worldvx><worldvy>0</worldvy><worldvz>0.0005</worldvz>
	</setMeshAccel>

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

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


	<changeLight type="ambient">
		<alpha>0</alpha><red>32</red><green>32</green><blue>32</blue><flag>0</flag><term>120</term>
	</changeLight>
	<changeLight type="ambient">
		<alpha>0</alpha><red>32</red><green>32</green><blue>32</blue><flag>1</flag><term>120</term>
	</changeLight>
	
	<create>
		<speed>0</speed>
		<direction type="absolute">0</direction>
		<cx>0</cx><cy>0</cy>
		<object>
			<actionRef label="bg_particle_action"></actionRef>
		</object>
	</create>
	
</action>

<action label="bg_create_action">
	<actionRef label="stagestart_blackbg_create_action"></actionRef>

	<system><command>effectmeshenable</command></system>
	<global name="bg_stop_flag">0</global>

	<setLight type="ambient">
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue><flag>0</flag>
	</setLight>
	<setLight type="ambient">
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue><flag>1</flag>
	</setLight>

	<!--	
	<setEye>
		<worldx>0</worldx><worldy>-1</worldy><worldz>-10</worldz>
	</setEye>
	<setLookAt>
		<worldx>0</worldx><worldy>0</worldy><worldz>0</worldz>	
	</setLookAt>
	<setUpVec>
		<worldx>0</worldx><worldy>1</worldy><worldz>0</worldz>		
	</setUpVec>

	<setBgColor>
		<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue>
	</setBgColor>
	<setFog>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
		<worldminz>0</worldminz><worldmaxz>90</worldmaxz>
	</setFog>


	
	<changeEye>
		<worldx>0</worldx><worldy>10</worldy><worldz>-10</worldz><term>600</term>	
	</changeEye>
	<changeUpVec>
		<worldx>0</worldx><worldy>0</worldy><worldz>1</worldz><term>600</term>		
	</changeUpVec>
	-->
	
	<setEye>
		<worldx>0</worldx><worldy>10</worldy><worldz>-10</worldz>
	</setEye>
	<setLookAt>
		<worldx>0</worldx><worldy>0</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>
	<setFog>
		<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
		<worldminz>0</worldminz><worldmaxz>90</worldmaxz>
	</setFog>
		
	
	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<actionRef label="bg_action1"></actionRef>
		</object>
	</create>
	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<actionRef label="bg_action2"></actionRef>
		</object>
	</create>
	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<actionRef label="bg_action3"></actionRef>
		</object>
	</create>

	<create>
		<speed>0</speed><direction type="absolute">0</direction><cx>0</cx><cy>0</cy>
		<object>
			<actionRef label="bg_board_action"></actionRef>
		</object>
	</create>

	<create>
		<speed>0</speed>
		<direction type="absolute">0</direction>
		<cx>0</cx><cy>0</cy>
		<object>
			<actionRef label="bg_light_action"></actionRef>
		</object>
	</create>
</action>

<action label="bg_action1">

	<eval name="i">0</eval>
	<repeat><times>7</times>
		<meshRef label="ring_mesh"><param>0.0</param><param>-10.0</param><param>$i*10</param></meshRef>
		<meshRef label="ring_hdr_mesh"><param>0.0</param><param>-10.0</param><param>$i*10</param></meshRef>
		<evaladd name="i">1</evaladd>
	</repeat>
	
	<repeat><times>-1</times>
		<meshRef label="ring_mesh"><param>0.0</param><param>-10.0</param><param>70.0</param></meshRef>
		<meshRef label="ring_hdr_mesh"><param>0.0</param><param>-10.0</param><param>70.0</param></meshRef>
		
		<repeat><times>12</times>
			<wait>1</wait>
			<repeat><times>$__bg_stop_flag</times>
				<exit></exit>
			</repeat>	
		</repeat>
	</repeat>
</action>

<action label="bg_action2">
</action>

<action label="bg_action3">
</action>

<action label="bg_board_action">

	<eval name="i">0</eval>
	<repeat><times>20</times>
		<meshRef label="board_mesh"><param>-8.0</param><param>-10.0</param><param>70.0-$i*24</param><param>-45</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>-0.0</param><param>-15.0</param><param>80.0-$i*24</param><param>0</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>8.0</param><param>-10.0</param><param>70.0-$i*24</param><param>45</param><param>0</param></meshRef>

		<meshRef label="board_mesh"><param>-8.0</param><param>5.0</param><param>70.0-$i*24</param><param>225</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>-0.0</param><param>10.0</param><param>80.0-$i*24</param><param>180</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>8.0</param><param>5.0</param><param>70.0-$i*24</param><param>135</param><param>0</param></meshRef>
		
		<meshRef label="board_hdr_mesh"><param>-7.5</param><param>-11.0</param><param>72.0-$i*24</param><param>-45</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>-0.5</param><param>-16.0</param><param>82.0-$i*24</param><param>0</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>7.5</param><param>-11.0</param><param>72.0-$i*24</param><param>45</param><param>0</param></meshRef>

		<meshRef label="board_hdr_mesh"><param>-7.5</param><param>6.0</param><param>72.0-$i*24</param><param>225</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>-0.5</param><param>11.0</param><param>82.0-$i*24</param><param>180</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>7.5</param><param>6.0</param><param>72.0-$i*24</param><param>135</param><param>0</param></meshRef>
		<evaladd name="i">1</evaladd>
	</repeat>

	<repeat><times>-1</times>
		<meshRef label="board_mesh"><param>-8.0</param><param>-10.0</param><param>70.0</param><param>-45</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>-0.0</param><param>-15.0</param><param>80.0</param><param>0</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>8.0</param><param>-10.0</param><param>70.0</param><param>45</param><param>0</param></meshRef>

		<meshRef label="board_mesh"><param>-8.0</param><param>5.0</param><param>70.0</param><param>225</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>-0.0</param><param>10.0</param><param>80.0</param><param>180</param><param>0</param></meshRef>
		<meshRef label="board_mesh"><param>8.0</param><param>5.0</param><param>70.0</param><param>135</param><param>0</param></meshRef>
		
		<meshRef label="board_hdr_mesh"><param>-7.5</param><param>-11.0</param><param>72.0</param><param>-45</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>-0.5</param><param>-16.0</param><param>82.0</param><param>0</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>7.5</param><param>-11.0</param><param>72.0</param><param>45</param><param>0</param></meshRef>

		<meshRef label="board_hdr_mesh"><param>-7.5</param><param>6.0</param><param>72.0</param><param>225</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>-0.5</param><param>11.0</param><param>82.0</param><param>180</param><param>0</param></meshRef>
		<meshRef label="board_hdr_mesh"><param>7.5</param><param>6.0</param><param>72.0</param><param>135</param><param>0</param></meshRef>

		<repeat><times>60</times>
			<wait>1</wait>
			<repeat><times>$__bg_stop_flag</times>
				<exit></exit>
			</repeat>	
		</repeat>
	</repeat>
</action>

<action label="bg_particle_action">
	<setupParticle>
		<file type="dds">stage1_particle1</file>
		<width>0.4</width><height>0.4</height>
		<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>-0.80</worldvz>
		<worldmaxx>100.0</worldmaxx><worldmaxy>10.0</worldmaxy><worldmaxz>100.0</worldmaxz>	
		<worldminx>-100.0</worldminx><worldminy>-100.0</worldminy><worldminz>-10.0</worldminz>
		<flag>1</flag>
	</setupParticle>

	<repeat><times>100</times>
		<repeat><times>1</times>
			<createParticle>
				<worldx>-10-5*$_rand</worldx><worldy>-5.0-$_rand</worldy><worldz>30.0-50*$_rand</worldz>
			</createParticle>
			<createParticle>
				<worldx>-10*$_rand</worldx><worldy>-6.0-2*$_rand</worldy><worldz>30.0-50*$_rand</worldz>
			</createParticle>
			<createParticle>
				<worldx>10*$_rand</worldx><worldy>-6.0-2*$_rand</worldy><worldz>30.0-50*$_rand</worldz>
			</createParticle>
			<createParticle>
				<worldx>10+5*$_rand</worldx><worldy>-5.0-$_rand</worldy><worldz>30.0-50*$_rand</worldz>
			</createParticle>
		</repeat>
	</repeat>


	<repeat><times>-1</times>
		<repeat><times>1</times>
			<createParticle>
				<worldx>-10-5*$_rand</worldx><worldy>-5.0-$_rand</worldy><worldz>30.0</worldz>
			</createParticle>
			<wait>1</wait>
			<createParticle>
				<worldx>-10*$_rand</worldx><worldy>-6.0-2*$_rand</worldy><worldz>30.0</worldz>
			</createParticle>
			<wait>1</wait>
			<createParticle>
				<worldx>10*$_rand</worldx><worldy>-6.0-2*$_rand</worldy><worldz>30.0</worldz>
			</createParticle>
			<wait>1</wait>
			<createParticle>
				<worldx>10+5*$_rand</worldx><worldy>-5.0-$_rand</worldy><worldz>30.0</worldz>
			</createParticle>
			<wait>1</wait>
		</repeat>
	</repeat>
</action>



<action label="bg_light_action">
	<!--
	<repeat><times>-1</times>
		<changeLight type="ambient">
			<alpha>0</alpha><red>128</red><green>128</green><blue>128</blue><flag>1</flag><term>60</term>
		</changeLight>
		<wait>60</wait>
		
		<changeLight type="ambient">
			<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><flag>1</flag><term>60</term>
		</changeLight>
		<wait>60</wait>
	</repeat>
	-->
</action>


<mesh label="board_mesh">
	<file>stage7_board</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>-0.1*4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-100.0</worldminy><worldminz>-30.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>100.0</worldmaxy><worldmaxz>100.0</worldmaxz>
	<rotatex>0</rotatex><rotatey>0</rotatey><rotatez>$4</rotatez>
	<rotatevx>0</rotatevx><rotatevy>0</rotatevy><rotatevz>$5</rotatevz>

	<flag>0</flag>
</mesh>

<mesh label="board_hdr_mesh">
	<file>stage7_board</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>-0.1*4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-100.0</worldminy><worldminz>-30.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>100.0</worldmaxy><worldmaxz>100.0</worldmaxz>
	<rotatex>0</rotatex><rotatey>0</rotatey><rotatez>$4</rotatez>
	<rotatevx>0</rotatevx><rotatevy>0</rotatevy><rotatevz>$5</rotatevz>

	<flag>1</flag>
</mesh>

<mesh label="ring_mesh">
	<file>stage7_ring</file>
	<worldx>$1</worldx><worldy>$2</worldy><worldz>$3</worldz>
	<worldvx>0.0</worldvx><worldvy>0.0</worldvy><worldvz>-0.125*4</worldvz>
	<worldminx>-100.0</worldminx><worldminy>-100.0</worldminy><worldminz>-10.0</worldminz>
	<worldmaxx>100.0</worldmaxx><worldmaxy>100.0</worldmaxy><worldmaxz>100.0</worldmaxz>
	<rotatex>0</rotatex><rotatey>0</rotatey><rotatez>0</rotatez>
	<rotatevx>0</rotatevx><rotatevy>0</rotatevy><rotatevz>0</rotatevz>
	<flag>16</flag>
</mesh>

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


<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="bmp">rect</file>
				<left>0</left><top>0</top><right>64</right><bottom>64</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>

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

</exbulletml>
