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

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

<a l="player_top">
	
	<!-- *** 移動速度の設定 ** -->
	<aref l="player_speed_setting_action"></aref>

	<!-- *** プレイヤー移動可能領域の設定 (maingame_setting.xml 参照) *** -->
	<aref l="movable_area_setting_action"></aref>

	<!-- *** アイテム自動回収半径の設定 (collision の cx, cy を中心とする) ** -->
	<sysvar name="autoitemradius">57</sysvar>


	<!-- *** プレイヤーオブジェクトの生成 *** -->
	<c>
		<player>
			<speed>0</speed><dir type="abs">0</dir>
			<cx>400</cx><cy>600-64</cy>	
			<collision type="circle"><cx>-1</cx><cy>6</cy><radius>1</radius></collision>
			
			<w>5</w>
			<presentRef l="player_present"/>
			<revengeRef l="player_revenge"/>

			<!-- *** 演出用オブジェクトの生成 *** -->
			<aref l="option_create_action"></aref>			

			<!-- *** 低速移動時衝突領域オブジェクトの生成 *** -->
			<aref l="option_collision_create_action"></aref>

		</player>
	</c>
</a>


<!-- *** 移動速度の初期化設定 ************************************************** -->
<a l="player_speed_setting_action">
<!--	BlueBell
	<sysvar name="playerspeed">5.2</sysvar>
	<sysvar name="playerslowspeed">2.5</sysvar>
-->
<!--	絆奈
	<sysvar name="playerspeed">4.7</sysvar>
	<sysvar name="playerslowspeed">2.3</sysvar>
-->
<!--	灯
	<sysvar name="playerspeed">4.2</sysvar>
	<sysvar name="playerslowspeed">2.0</sysvar>
-->
<!--	顕
	<sysvar name="playerspeed">3.7</sysvar>
	<sysvar name="playerslowspeed">1.8</sysvar>
-->
<!--	ホシミ姉妹
	<sysvar name="playerspeed">3.2</sysvar>
	<sysvar name="playerslowspeed">1.6</sysvar>
-->

	<sysvar name="playerspeed">5.0</sysvar>
	<sysvar name="playerslowspeed">2.2</sysvar>
</a>


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

<revenge l="player_revenge">

	<!-- *** Tension が残っていなかった場合 *** -->
	<rep><ts>$_revenge_state-eq1</ts>
		<aref l="player_revenge_death_action"></aref>
	</rep>

	<!-- *** Tension が残っていた場合 *** -->
	<rep><ts>1-($_revenge_state-eq1)</ts>
		<aref l="player_revenge_miss_action"></aref>
	</rep>

	
</revenge>


<!-- *** Spirit が残っていなかった場合 ******************************************* -->

<a l="player_revenge_death_action">

		<sound l="miss_se" type="se">
			<track><file type="ogg">miss</file></track>
			<play><flag>0</flag><loop>0</loop></play>
		</sound>

		<create>
			<speed>0</speed><direction>0</direction>
			<cx>400</cx><cy>300</cy><vital>0</vital>
			<bombRef l="bomb_clearbomb"></bombRef>
		</create>
		
		<changeColor>
			<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
			<term>10</term>
		</changeColor>
		<targetRevenge l="tension_explode"></targetRevenge>

		<w>65</w>	

		<create>
			<player>
				<speed>0</speed>
				<dir type="abs">0</dir>
				<cx>$_self_cx</cx><cy>$_self_cy</cy>
				<inv>180</inv>
				<collision type="circle"><cx>-1</cx><cy>6</cy><radius>1</radius></collision>
				<presentRef l="player_present_trans"/>
				<revengeRef l="player_revenge"/>
								
				<aref l="option_create_action"></aref>
				<aref l="option_collision_create_action"></aref>
				<w>180</w>
				<presentRef l="player_present"/>				
			</player>
		</create>
		<vanish></vanish>
		<exit></exit>
</a>


<!-- *** Spirit が残っていた場合 ************************************************* -->
<a l="player_revenge_miss_action">

		<create>
			<player>
				<speed>0</speed>
				<dir type="abs">0</dir>
				<cx>$_self_cx</cx><cy>$_self_cy</cy>
				<inv>180</inv>
			<collision type="circle"><cx>-1</cx><cy>6</cy><radius>1</radius></collision>
				<presentRef l="player_present_trans"/>
				<revengeRef l="player_revenge"/>

				<aref l="option_create_action"></aref>
				<aref l="option_collision_create_action"></aref>
				<w>60</w>
				<presentRef l="player_present"/>				
			</player>
		</create>
		<vanish></vanish>	
		<exit></exit>
</a>

<!--  **************************************************************************  -->
<a l="player_present_common_action">
	<aref l="player_speed_setting_action"></aref>

	<eval name="subanime_count">0</eval>
	<eval name="anime_count">0</eval>
	<eval name="change_count">0</eval>		
	<rep><ts>-1</ts>

		<evaladd name="change_count">$_pldx</evaladd>
		<rep><ts>$change_count-lt-11</ts><eval name="change_count">-11</eval></rep>
		<rep><ts>$change_count-gt11</ts><eval name="change_count">11</eval></rep>

		<rep><ts>$subanime_count-gt3</ts>
			<eval n="anime_count">($anime_count+1)%16</eval>
			<eval n="subanime_count">0</eval>
		</rep>

		<rep><ts>$_slowmode-eq0</ts>
			<evaladd n="subanime_count">1</evaladd>
		</rep>


		<!-- *** ニュートラル状態 *** -->
		<rep><ts>$_pldx-eq0</ts>

			<!-- * 中央 * -->							
			<rep><ts>$change_count-eq0</ts>
				<eval n="m">$anime_count*64</eval>
				<eval n="n">0</eval>
				<setImgUV><left>$m</left><top>$n</top><right>$m+64</right><bottom>$n+64</bottom></setImgUV>
			</rep>

			<!-- * 左移動から復帰 * -->
			<rep><ts>$change_count-lt0</ts>
				<eval n="m">$anime_count*64</eval>
				<rep><ts>($change_count-lt0)*($change_count-gt-6)</ts>
					<setImgUV><left>$m</left><top>64*4</top><right>$m+64</right><bottom>64*5</bottom></setImgUV>
				</rep>
				<rep><ts>($change_count-lt-5)*($change_count-gt-11)</ts>
					<setImgUV><left>$m</left><top>64*5</top><right>$m+64</right><bottom>64*6</bottom></setImgUV>
				</rep>
				<rep><ts>$change_count-lt-10</ts>
					<setImgUV><left>$m</left><top>64*6</top><right>$m+64</right><bottom>64*7</bottom></setImgUV>
				</rep>
				<evaladd name="change_count">1</evaladd>
			</rep>

			<!-- * 右移動から復帰 * -->
			<rep><ts>$change_count-gt0</ts>
				<eval n="m">$anime_count*64</eval>
				<rep><ts>($change_count-gt0)*($change_count-lt6)</ts>
					<setImgUV><left>$m</left><top>64*1</top><right>$m+64</right><bottom>64*2</bottom></setImgUV>
				</rep>
				<rep><ts>($change_count-gt5)*($change_count-lt11)</ts>
					<setImgUV><left>$m</left><top>64*2</top><right>$m+64</right><bottom>64*3</bottom></setImgUV>
				</rep>
				<rep><ts>$change_count-gt10</ts>
					<setImgUV><left>$m</left><top>64*3</top><right>$m+64</right><bottom>64*4</bottom></setImgUV>
				</rep>				
				<evaladd name="change_count">-1</evaladd>
			</rep>
		</rep>

		<!-- *** 左右移動 *** -->
		<rep><ts>1-($_pldx-eq0)</ts>

				<eval n="m">$anime_count*64</eval>

				<!-- * 中央 * -->
				<rep><ts>$change_count-eq0</ts>
					<eval n="m">$anime_count*64</eval>
					<setImgUV><left>$m</left><top>0</top><right>$m+64</right><bottom>64</bottom></setImgUV>
				</rep>

				<!-- * 左 * -->
				<rep><ts>($change_count-lt0)*($change_count-gt-6)</ts>
					<setImgUV><left>$m</left><top>64*4</top><right>$m+64</right><bottom>64*5</bottom></setImgUV>
				</rep>
				<rep><ts>($change_count-lt-5)*($change_count-gt-11)</ts>
					<setImgUV><left>$m</left><top>64*5</top><right>$m+64</right><bottom>64*6</bottom></setImgUV>
				</rep>
				<rep><ts>$change_count-lt-10</ts>
					<setImgUV><left>$m</left><top>64*6</top><right>$m+64</right><bottom>64*7</bottom></setImgUV>
				</rep>

				<!-- * 右 * -->
				<rep><ts>($change_count-gt0)*($change_count-lt6)</ts>
					<setImgUV><left>$m</left><top>64*1</top><right>$m+64</right><bottom>64*2</bottom></setImgUV>
				</rep>
				<rep><ts>($change_count-gt5)*($change_count-lt11)</ts>
					<setImgUV><left>$m</left><top>64*2</top><right>$m+64</right><bottom>64*3</bottom></setImgUV>
				</rep>
				<rep><ts>$change_count-gt10</ts>
					<setImgUV><left>$m</left><top>64*3</top><right>$m+64</right><bottom>64*4</bottom></setImgUV>
				</rep>
		</rep>

		<w>1</w>


	</rep>


</a>

<present l="player_present">
	<imgRef l="player_img"></imgRef>
<!--
	<imgRef l="player_back_img"></imgRef>
	<setDrawLevel><num>11</num><flag>16</flag></setDrawLevel>
-->
	<aref l="player_present_common_action"></aref>

</present>

<present l="player_present_trans">
	<imgRef l="player_img"></imgRef>
	<changeColor>
		<alpha>128</alpha><red>255</red><green>255</green><blue>255</blue><term>0</term>						
	</changeColor>	
	<aref l="player_present_common_action"></aref>
</present>

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


<!-- *** 演出用オブジェクトの生成 *** -->
<a l="option_create_action">

	<create>
		<speed>0</speed><dir type="abs">0</dir>
		<cx>$_player_cx</cx><cy>$_player_cy</cy><child>1</child>
		<object>
			<definedAction type="fullsynctoplayer"></definedAction>
			<circleImgRef l="option_circle_img"></circleImgRef>
			<setDrawLevel><num>3</num></setDrawLevel>
						
			<rep><ts>-1</ts>
				<setColor>
		      <alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
				</setColor>

				<rep><ts>$_spframe-eq$_maxspframe</ts>
					<setImgUV>
						<left>0</left><top>128</top><right>128</right><bottom>256</bottom>
					</setImgUV>
				</rep>

				<rep><ts>$_spframe-lt$_maxspframe</ts>
					<setColor>
			      <alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><flag>2</flag><num>180-($_spframe*180)/$_maxspframe</num>
					</setColor>
					<setImgUV>
						<left>128</left><top>128</top><right>256</right><bottom>256</bottom>
					</setImgUV>
				</rep>
				<w>1</w>
			</rep>
		</object>
	</create>

	<create>
		<speed>0</speed><dir type="abs">0</dir>
		<cx>$_player_cx</cx><cy>$_player_cy</cy><child>1</child>
		<object>
			<definedAction type="fullsynctoplayer"></definedAction>
			<circleimgRef l="option_circle2_img"></circleimgRef>
			<setDrawLevel><num>3</num></setDrawLevel>
						
			<rep><ts>-1</ts>
				<rep><ts>$_spframe-eq$_maxspframe</ts>
					<setImgUV>
						<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
					</setImgUV>
				</rep>

				<rep><ts>$_spframe-lt$_maxspframe</ts>
					<setImgUV>
						<left>128</left><top>0</top><right>256</right><bottom>128</bottom>
					</setImgUV>
				</rep>
				<w>1</w>
			</rep>
		</object>
	</create>


	<create>
		<cx>400</cx><cy>300</cy><child>1</child>
		<object>

			<eval n="localflag">0</eval>
			<rep><ts>-1</ts>

				<rep><ts>1-($_spframe-eq$_maxspframe)</ts>
					<eval n="localflag">0</eval>
				</rep>

				<rep><ts>($localflag-eq0)*($_spframe-eq$_maxspframe)</ts>
					<eval n="localflag">1</eval>
					<create>
						<cx>$_player_cx</cx><cy>$_player_cy</cy><child>1</child>
						<object>
							<definedAction type="fullsynctoplayer"></definedAction>
							<imgRef l="option_ok_img"></imgRef>
							<setDrawLevel><num>12</num></setDrawLevel>
							<changeImgSize>
									<width>400</width><height>400</height><term>30</term>
							</changeImgSize>
							<changeColor>
						    <alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
							</changeColor>
							<w>30</w>
							<vanish></vanish>
						</object>
					</create>
				</rep>

			<w>1</w>
			</rep>
		</object>

	</create>

	<create>
		<speed>0</speed><dir type="abs">0</dir>
		<cx>$_player_cx</cx><cy>$_player_cy+52</cy><child>1</child>
		<object>
			<definedAction type="synctoplayerx"></definedAction>
			<definedAction type="synctoplayery"></definedAction>
			<imgRef l="option_str_img"></imgRef>
			<setDrawLevel><num>3</num></setDrawLevel>
			<edge type="normal"></edge>

			<rep><ts>-1</ts>
				<rep><ts>$_spframe-eq$_maxspframe</ts>
					<setImgUV>
						<left>0</left><top>0</top><right>128</right><bottom>32</bottom>
					</setImgUV>
				</rep>

				<rep><ts>$_spframe-lt$_maxspframe</ts>
					<setImgUV>
						<left>0</left><top>32</top><right>128</right><bottom>64</bottom>
					</setImgUV>
				</rep>
				<w>1</w>
			</rep>
		</object>
	</create>


</a>

<!-- *** 低速移動時衝突領域オブジェクトの生成 *** -->
<a l="option_collision_create_action">
	<create>
		<speed>0</speed><dir type="abs">0</dir>
		<cx>$_self_cx</cx><cy>$_self_cy+6</cy><child>1</child>
		<object>
			<imgRef l="option_collision_img"></imgRef>
			<setDrawLevel><num>14</num></setDrawLevel>
			<w>1</w>
			
			<definedAction type="synctoplayerx"></definedAction>
			<definedAction type="synctoplayery"></definedAction>
			

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

			<v n="tmp_speed">0</v>
			<rep><ts>-1</ts>
				<rep><ts>$_slowmode-gt$tmp_speed</ts>
					<changeColor>
						<alpha>200</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
					</changeColor>
					<v n="tmp_speed">$_slowmode</v>
					<w>15</w>
				</rep>
				<rep><ts>$_slowmode-lt$tmp_speed</ts>
					<changeColor>
						<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>15</term>
					</changeColor>
					<v n="tmp_speed">$_slowmode</v>
					<w>15</w>
				</rep>
				<w>1</w>
			</rep>
		</object>
	</create>
</a>



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

<img type="normal" l="player_img">
	<file type="dds">hanna_tip</file>
	<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
	<width>64</width><height>64</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<img type="add" l="player_back_img">
	<file type="dds">hanna_back_tip</file>
	<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
	<width>80</width><height>80</height>
	<alpha>200</alpha><red>255</red><green>255</green><blue>255</blue>
	<flag>16</flag>
</img>

<img type="add" l="option_img">
	<file type="dds">player_ring_2</file>
	<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
	<width>256</width><height>256</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<circleimg type="add" l="option_circle_img">
	<file type="dds">player_ring_2</file>
	<left>0</left><top>128</top><right>128</right><bottom>256</bottom>
	<width>64</width><height>64</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	<num>180</num>
</circleimg>

<circleimg type="add" l="option_circle2_img">
	<file type="dds">player_ring_2</file>
	<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
	<width>64</width><height>64</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
	<num>4</num>
</circleimg>


<img type="add" l="option_ok_img">
	<file type="dds">player_ring_2</file>
	<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
	<width>64</width><height>64</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<img type="add" l="option_str_img">
	<file type="dds">supporter_ring_str_1</file>
	<left>0</left><top>0</top><right>128</right><bottom>32</bottom>
	<width>128</width><height>32</height>
	<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
</img>



<img type="add" l="option2_img">
	<file type="dds">player_tip_1</file>
	<left>512-128</left><top>512-128-64</top><right>512</right><bottom>512-64</bottom>
	<width>100</width><height>100</height>
	<alpha>190</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

<img type="normal" l="option_collision_img">
	<file type="dds">collisioncircle</file>
	<left>0</left><top>0</top><right>16</right><bottom>16</bottom>
	<width>16</width><height>16</height>
	<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue>
</img>

</exbulletml>