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

<!-- *** ショットボタンを押した時に呼ばれるアクション ******************** -->

<action label="shot_1_top">
	<sound label="shot_se" type="se">
		<track><file type="ogg">shot_l</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>

	<!-- TTC 発動中 -->
	<repeat><times>$_ttc_frame-lt300</times>
		<actionRef label="shot_1_1_ttc_create_action"></actionRef>
	</repeat>
	
	<!-- 通常 -->
	<repeat><times>1-($_ttc_frame-lt300)</times>
		<actionRef label="shot_1_1_create_action"></actionRef>
	</repeat>
</action>

<action label="shot_1_1_create_action">
	<create>
		<speed>0</speed>
		<direction type="absolute">0</direction>
		<cx>$_player_cx</cx><cy>($_player_cy-32)/2</cy>
		<vital>0.5</vital>
		<shotRef label="shot_bullet_1_1"></shotRef>
	</create>
	<wait>4</wait>
	<exit></exit>
</action>

<action label="shot_1_1_ttc_create_action">
	<create>
		<speed>0</speed>
		<direction type="absolute">0</direction>
		<cx>$_player_cx</cx><cy>($_player_cy-32)/2</cy>
		<vital>0.8</vital><flag>1</flag>
		<shotRef label="shot_bullet_ttc_1_1"></shotRef>
	</create>
	<wait>4</wait>
	<exit></exit>
</action>


<!-- ****************************************************** -->
<action label="shot_2_top">
	<sound label="shot_se" type="se">
		<track><file type="ogg">shot</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>

	<!-- TTC 発動中 -->
	<repeat><times>$_ttc_frame-lt300</times>
		<actionRef label="shot_2_3_ttc_create_action"></actionRef>
	</repeat>
	
	<!-- 通常 -->
	<repeat><times>1-($_ttc_frame-lt300)</times>
		<actionRef label="shot_2_3_create_action"></actionRef>
	</repeat>
</action>

<!-- **************************************** -->
<action label="shot_2_3_create_action">		
		<create>
			<speed>8</speed>
			<direction type="absolute">30</direction>
			<cx>$_player_cx+16</cx><cy>$_player_cy</cy>
			<vital>2</vital>
			<shotRef label="shot_bullet_2"><param>0</param></shotRef>
		</create>
		<wait>1</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">330</direction>
			<cx>$_player_cx-16</cx><cy>$_player_cy</cy>
			<vital>2</vital>
			<shotRef label="shot_bullet_2"><param>1</param></shotRef>
		</create>
		<wait>1</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">0</direction>
			<cx>$_player_cx</cx><cy>$_player_cy-16</cy>
			<vital>1</vital>
			<shotRef label="shot_bullet_2w"><param>2</param></shotRef>
		</create>
		<wait>2</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">22</direction>
			<cx>$_player_cx+8</cx><cy>$_player_cy-16</cy>
			<vital>1</vital>
			<shotRef label="shot_bullet_2w"><param>3</param></shotRef>
		</create>
		<create>
			<speed>8</speed>
			<direction type="absolute">-22</direction>
			<cx>$_player_cx-8</cx><cy>$_player_cy-16</cy>
			<vital>1</vital>
			<shotRef label="shot_bullet_2w"><param>4</param></shotRef>
		</create>
		<wait>2</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">44</direction>
			<cx>$_player_cx+8</cx><cy>$_player_cy-16</cy>
			<vital>1</vital>
			<shotRef label="shot_bullet_2w"><param>2</param></shotRef>
		</create>
		<create>
			<speed>8</speed>
			<direction type="absolute">-44</direction>
			<cx>$_player_cx-8</cx><cy>$_player_cy-16</cy>
			<vital>1</vital>
			<shotRef label="shot_bullet_2w"><param>2</param></shotRef>
		</create>
		<wait>2</wait>
		<exit></exit>		
</action>

<!-- **************************************** -->	
<action label="shot_2_3_ttc_create_action">		
		<create>
			<speed>8</speed>
			<direction type="absolute">30</direction>
			<cx>$_player_cx+16</cx><cy>$_player_cy</cy>
			<vital>3</vital><flag>1</flag>
			<shotRef label="shot_bullet_ttc_2"><param>0</param></shotRef>
		</create>
		<wait>1</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">330</direction>
			<cx>$_player_cx-16</cx><cy>$_player_cy</cy>
			<vital>3</vital><flag>1</flag>
			<shotRef label="shot_bullet_ttc_2"><param>1</param></shotRef>
		</create>
		<wait>1</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">0</direction>
			<cx>$_player_cx</cx><cy>$_player_cy-16</cy>
			<vital>2</vital><flag>1</flag>
			<shotRef label="shot_bullet_ttc_2w"><param>2</param></shotRef>
		</create>
		<wait>2</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">22</direction>
			<cx>$_player_cx+8</cx><cy>$_player_cy-16</cy>
			<vital>2</vital><flag>1</flag>
			<shotRef label="shot_bullet_ttc_2w"><param>3</param></shotRef>
		</create>
		<create>
			<speed>8</speed>
			<direction type="absolute">-22</direction>
			<cx>$_player_cx-8</cx><cy>$_player_cy-16</cy>
			<vital>2</vital><flag>1</flag>
			<shotRef label="shot_bullet_ttc_2w"><param>4</param></shotRef>
		</create>		
		<wait>2</wait>
		<create>
			<speed>8</speed>
			<direction type="absolute">44</direction>
			<cx>$_player_cx+8</cx><cy>$_player_cy-16</cy>
			<vital>2</vital><flag>1</flag>
			<shotRef label="shot_bullet_ttc_2w"><param>3</param></shotRef>
		</create>
		<create>
			<speed>8</speed>
			<direction type="absolute">-44</direction>
			<cx>$_player_cx-8</cx><cy>$_player_cy-16</cy>
			<vital>2</vital><flag>1</flag>
			<shotRef label="shot_bullet_ttc_2w"><param>4</param></shotRef>
		</create>		
		<wait>2</wait>
		<exit></exit>		
</action>



<!-- original -->
<!--
<shot label="shot_bullet_1_1">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-4</left><top>-480</top><right>4</right><bottom>($_player_cy-32)/2</bottom></collision>	
	<img type="add">
		<file type="bmp">rectwhite</file>
		<left>0</left><top>0</top><right>8</right><bottom>4</bottom>
		<width>8</width><height>$_player_cy-16</height>
		<alpha>128</alpha><red>200</red><green>200</green><blue>250</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<setDrawLevel><num>21</num></setDrawLevel>
	<changeColor>
		<alpha>0</alpha><red>5</red><green>5</green><blue>80</blue><term>20</term>
	</changeColor>
	<wait>1</wait>
	
	<definedAction type="synctoplayerx"></definedAction>
	<definedAction type="synctoplayery"></definedAction>
	<wait>20</wait>
	<vanish></vanish>
</shot>

<shot label="shot_bullet_ttc_1_1">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-8</left><top>-480</top><right>8</right><bottom>($_player_cy-32)/2</bottom></collision>	
	<img type="add">
		<file type="bmp">rectwhite</file>
		<left>0</left><top>0</top><right>8</right><bottom>4</bottom>
		<width>16</width><height>$_player_cy-16</height>
		<alpha>128</alpha><red>200</red><green>200</green><blue>250</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<setDrawLevel><num>21</num></setDrawLevel>
	<changeColor>
		<alpha>0</alpha><red>5</red><green>5</green><blue>80</blue><term>20</term>
	</changeColor>
	<wait>1</wait>
	
	<definedAction type="synctoplayerx"></definedAction>
	<definedAction type="synctoplayery"></definedAction>
	<wait>20</wait>
	<vanish></vanish>
</shot>
-->

<shot label="shot_bullet_1_1">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<damageRef  label="shot_damage_1"></damageRef>
	<collision type="rect"><left>-4</left><top>-480</top><right>4</right><bottom>($_player_cy-12)/2</bottom></collision>	
	<img type="add">
		<file type="dds">shot2l</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>10</width><height>$_player_cy-12</height>
		<alpha>125</alpha><red>220</red><green>220</green><blue>250</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<setDrawLevel><num>16</num></setDrawLevel>
	<changeColor>
		<alpha>32</alpha><red>5</red><green>5</green><blue>80</blue><term>20</term>
	</changeColor>
	<wait>1</wait>
	
	<definedAction type="synctoplayerx"></definedAction>
	<definedAction type="synctoplayery"></definedAction>
	<wait>20</wait>
	<vanish></vanish>
</shot>

<shot label="shot_bullet_ttc_1_1">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<damageRef  label="shot_damage_2"></damageRef>
	<collision type="rect"><left>-8</left><top>-480</top><right>8</right><bottom>($_player_cy-12)/2</bottom></collision>	
	<img type="add">
		<file type="dds">shot2l2</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>20</width><height>$_player_cy-12</height>
		<alpha>125</alpha><red>250</red><green>250</green><blue>255</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<setDrawLevel><num>16</num></setDrawLevel>
	<changeColor>
		<alpha>32</alpha><red>5</red><green>5</green><blue>80</blue><term>20</term>
	</changeColor>
	<wait>1</wait>
	
	<definedAction type="synctoplayerx"></definedAction>
	<definedAction type="synctoplayery"></definedAction>
	<wait>20</wait>
	<vanish></vanish>
</shot>

<damage label="shot_damage_1">

	<sound label="shot_se" type="se">
		<track><file type="ogg">laser_effect</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>
	
	<create>
		<speed>0</speed><direction>0</direction>
		<cx>$_player_cx</cx><cy>($_player_cy-32)/2</cy>
		<object>
			<img type="maskadd">
				<file type="dds">shot2l</file>
				<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
				<width>10</width><height>$_player_cy-12</height>
				<alpha>18</alpha><red>255</red><green>1</green><blue>2</blue>
			</img>
			<setDrawLevel><num>17</num></setDrawLevel>
			<child>1</child>
			<definedAction type="synctoplayerx"></definedAction>
			<definedAction type="synctoplayery"></definedAction>
			<wait>15</wait>
			<vanish/>
		</object>

	</create>
	<wait>15</wait>

</damage>

<damage label="shot_damage_2">
	<sound label="shot_se" type="se">
		<track><file type="ogg">laser_effect</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>

	<create>
		<speed>0</speed><direction>0</direction>
		<cx>$_player_cx</cx><cy>($_player_cy-32)/2</cy>
		<object>
			<img type="maskadd">
				<file type="dds">shot2l</file>
				<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
				<width>20</width><height>$_player_cy-12</height>
				<alpha>15</alpha><red>2</red><green>120</green><blue>2</blue>
			</img>
			<setDrawLevel><num>20</num></setDrawLevel>
			<child>1</child>
			<definedAction type="synctoplayerx"></definedAction>
			<definedAction type="synctoplayery"></definedAction>
			<wait>15</wait>
			<vanish/>
		</object>

	</create>
	<wait>15</wait>

</damage>



<!--original -->
<!--
<shot label="shot_bullet_2">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision>	
	<img type="add">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>24</width><height>24</height>
		<alpha>200</alpha><red>255</red><green>10</green><blue>15</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<autoTarget><num>$1</num></autoTarget>
</shot>

<shot label="shot_bullet_2w">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision>	
	<img type="add">
		<file type="dds">bullet</file>
		<left>0</left><top>104</top><right>32</right><bottom>112</bottom>
		<width>24</width><height>24</height>
		<alpha>200</alpha><red>255</red><green>150</green><blue>150</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
</shot>
-->

<shot label="shot_bullet_2">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-12</left><top>-12</top><right>12</right><bottom>12</bottom></collision>	
	<img type="normal">
		<file type="dds">shot2y</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>150</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<autoTarget><num>$1</num></autoTarget>

</shot>

<shot label="shot_bullet_2w">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision>	
	<img type="normal">
		<file type="dds">shot2m</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>24</width><height>24</height>
		<alpha>150</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
</shot>


<shot label="shot_bullet_ttc_2">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-24</left><top>-24</top><right>24</right><bottom>24</bottom></collision>	
	<img type="maskadd">
		<file type="dds">shot2y</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>32</width><height>32</height>
		<alpha>170</alpha><red>64</red><green>64</green><blue>64</blue>
	</img>
	<autoTarget><num>$1</num></autoTarget>
</shot>

<shot label="shot_bullet_ttc_2w">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-32</left><top>-32</top><right>32</right><bottom>32</bottom></collision>	
	<img type="maskadd">
		<file type="dds">shot2m</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>48</width><height>48</height>
		<alpha>150</alpha><red>164</red><green>100</green><blue>164</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
</shot>

<!--
<revenge label="shot_revenge_1">
	<vanish></vanish>
</revenge>
-->

<!--
<revenge label="shot_revenge_1">
	<img type="add">
		<file type="dds">ring</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>8</width><height>8</height>
		<alpha>200</alpha><red>255</red><green>128</green><blue>128</blue>
	</img>

	<changeImgSize>
		<width>64</width><height>64</height><term>18</term>
	</changeImgSize>
	<wait>2</wait>

	<changeColor>
		<alpha>200</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>2</wait>
	<changeColor>
		<alpha>180</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>2</wait>
	<changeColor>
		<alpha>160</alpha><red>128</red><green>255</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>2</wait>
	<changeColor>
		<alpha>140</alpha><red>128</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>2</wait>
	<changeColor>
		<alpha>120</alpha><red>255</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>2</wait>

	<changeColor>
		<alpha>80</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>2</wait>
	<changeColor>
		<alpha>40</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>2</wait>
	
	

	<vanish></vanish>
</revenge>
-->

<revenge label="shot_revenge_1">

	<img type="add">
		<file type="dds">ring</file>
		<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
		<width>8</width><height>8</height>
		<alpha>200</alpha><red>255</red><green>128</green><blue>128</blue>
	</img>
<!--
	<img type="add">
		<file type="dds">break_particle</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>8</width><height>8</height>
		<alpha>200</alpha><red>255</red><green>128</green><blue>128</blue>
	</img>
-->
	<changeSpeed>
		<speed type="absolute">0.5</speed><term>3</term>
	</changeSpeed>
	<changeDirection>
		<direction type="relative">0</direction><term>3</term>
	</changeDirection>

	<changeImgSize>
		<width>96</width><height>96</height><term>36</term>
	</changeImgSize>
	<wait>2</wait>

	<soundRef label="shot_break"></soundRef>

	<changeColor>
		<alpha>230</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>210</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>190</alpha><red>128</red><green>255</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>170</alpha><red>128</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>150</alpha><red>255</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>

	<changeColor>
		<alpha>130</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>40</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	

	<vanish></vanish>
</revenge>


</exbulletml>
