

	
begin_resource

sprite "spcrashbow"

	default		"normal"
	file		"boss_crashbow.ses"

end_sprite

sprite "spcrashbow_bullet"

	default		"normal"
	file		"boss_bl_crashbow.ses"

end_sprite

sprite "event_ch"
	default		"normal"
	file		"stage_event.ses"
end_sprite

end_resource


begin_character_setup

character "crashbow"

	default			"boss"
	set_sprite		"spcrashbow"
	set_pivot		"113,115"
	set_speed		1
	set_energy		80000
	set_damage		20
	set_score		0		
	add_collision	"56,61,177,204"
	add_collision	"0,183,214,205"
	add_collision	"96,21,166,68"
	
end_character

character "crashbow_ball"

	default			"en_bullet"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		80
	set_damage		10
	set_score		150		
	add_collision	"1,1,31,31"
	
end_character

character "crashbow_small_ball"

	default			"en_bullet"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"8,8"
	set_speed		1
	set_energy		80
	set_damage		10
	set_score		150		
	add_collision	"1,1,15,15"
	
end_character

character "crashbow_bullet_slow"

	default			"en_bullet"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		80
	set_damage		10
	set_score		150		
	add_collision	"5,5,17,17"
	
end_character

character "crashbow_bullet_mid"

	default			"en_bullet"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		80
	set_damage		10
	set_score		150		
	add_collision	"8,8,40,40"
	
end_character

character "crashbow_bullet_fast"

	default			"en_bullet"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		80
	set_damage		10
	set_score		150		
	add_collision	"7,7,41,41"
	
end_character

character "crashbow_bullet_uts"

	 default		"en_bullet"
	 set_sprite		"spcrashbow_bullet"
	 set_speed		1
	 set_energy		5
	 set_damage		10
	 add_collision	"5,5,25,25"
	
end_character

character "crashbow_bullet_uts_jet"

	 default		"explo"
	 set_sprite		"spcrashbow_bullet"
	 set_speed		1
	 set_energy		0
	 set_damage		0

end_character

character "crashbow_tri_bullet_uts"

	default			"enemy"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		200
	set_damage		10
	set_score		150		
	add_collision	"2,2,30,30"
	
end_character

character "crashbow_tri_bullet_wheel"

	default			"enemy"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		200
	set_damage		10
	set_score		150		
	add_collision	"2,2,30,30"
	
end_character

character "crashbow_rect_bullet_uts"

	default			"enemy"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		200
	set_damage		10
	set_score		150		
	add_collision	"2,2,30,30"
	
end_character

character "crashbow_rect_bullet_wheel"

	default			"enemy"
	set_sprite		"spcrashbow_bullet"
	set_pivot		"16,16"
	set_speed		1
	set_energy		200
	set_damage		10
	set_score		150		
	add_collision	"2,2,30,30"
	
end_character


end_character_setup



begin_character_action

action /"crashbow_ball",				"create"/

	playwave "laser0002"
	
	move	/0,0,	0,0,	"normal",2/

	move	/0,0,	"vector",8,	"normal",4/
	move	/0,1,	"vector",7,	"normal",3/
	move	/0,2,	"vector",5,	"normal",2/

	rand_goto	/"fire",	5,1/

:loop

	move	/0,0,	"vector",3,	"normal",1/		0,1,	"vector",3,		"normal",1/
			/0,2,	"vector",3,	"normal",1/		0,3,	"vector",3,		"normal",1/



	move	/0,4,	"vector",3,	"normal",1/		0,5,	"vector",3,		"normal",1/
			/0,6,	"vector",3,	"normal",1/

	rand_goto	/"fire",	5,3/
	goto_loop	/"loop",	2/

	playwave "miss0001"

:fire
	create_angle	/"crashbow_small_ball",	4,4,	0,1/
	create_angle	/"crashbow_small_ball",	4,4,	20,1/
	create_angle	/"crashbow_small_ball",	4,4,	40,1/
	create_angle	/"crashbow_small_ball",	4,4,	60,1/
	create_angle	/"crashbow_small_ball",	4,4,	80,1/
	create_angle	/"crashbow_small_ball",	4,4,	100,1/
	create_angle	/"crashbow_small_ball",	4,4,	120,1/
	create_angle	/"crashbow_small_ball",	4,4,	140,1/
	create_angle	/"crashbow_small_ball",	4,4,	160,1/
	create_angle	/"crashbow_small_ball",	4,4,	180,1/
	create_angle	/"crashbow_small_ball",	4,4,	200,1/
	create_angle	/"crashbow_small_ball",	4,4,	220,1/
	create_angle	/"crashbow_small_ball",	4,4,	240,1/
	create_angle	/"crashbow_small_ball",	4,4,	260,1/
	create_angle	/"crashbow_small_ball",	4,4,	280,1/
	create_angle	/"crashbow_small_ball",	4,4,	300,1/
	create_angle	/"crashbow_small_ball",	4,4,	320,1/
	create_angle	/"crashbow_small_ball",	4,4,	340,1/


	kill_oneself

end_action

action /"crashbow_small_ball",		"create"/

	move	/1,0,	0,0,	"normal",2/

	move	/1,0,	"vector",1,	"normal",1/
	move	/1,1,	"vector",2,	"normal",2/
	move	/1,2,	"vector",3,	"normal",3/

:loop

	move	/1,0,	"vector",5,	"normal",2/		1,1,	"vector",5,		"normal",2/
			/1,2,	"vector",5,	"normal",2/		1,3,	"vector",5,		"normal",2/

	goto_loop	/"loop",	20/

	kill_oneself
	
end_action

action /"crashbow_bullet_slow",		"create"/
	
	playwave "gun0001"
	
	induce 		/2,0,   32,1,0,		0, "normal",0/ 
	move		/2,0, 0,0, "normal",1/		

	move	/2,1, "vector",6, "normal",2/	2,2, "vector",5, "normal",1/		
			/2,3, "vector",4, "normal",1/

:loop
	
	move	/2,1, "vector",3, "normal",1/	2,2, "vector",3, "normal",1/		
			/2,3, "vector",3, "normal",1/	2,4, "vector",3, "normal",1/		
			/2,5, "vector",3, "normal",1/	2,6, "vector",3, "normal",1/		
			/2,7, "vector",3, "normal",1/	2,8, "vector",3, "normal",1/		
			/2,9, "vector",3, "normal",1/

	goto_loop	/"loop",	30/

	kill_oneself
	
end_action

action /"crashbow_bullet_mid",		"create"/

	playwave "gun0005"	
	induce 		/3,0,   32,1,0,		0, "normal",0/ 
	kara		/"vector",1, "normal",1/

	kara		/"vector",8, "normal",1/	"vector",7, "normal",1/

:loop
	
	kara		/"vector",6, "normal",60/
	kill_oneself
		
	goto "loop"

	kill_oneself
	
end_action

action /"crashbow_bullet_fast",		"create"/
	
	playwave "gun0009"
	
	induce 		/4,0,   32,1,0,		0, "normal",0/ 
	kara		/"vector",1, "normal",1/

	kara		/"vector",11, "normal",1/	"vector",10, "normal",1/

:loop
	
	kara		/"vector",9, "normal",60/
	kill_oneself
		
	goto "loop"
	
end_action

action /"crashbow_bullet_uts",		"create"/

		set_pivot		"16,16"
		set_sp_pivot	"1,16"






:up0
		induce 			/8,0,   32,1,0,		4, "normal",1/ 
		create_r_pv 	/"attractlx_bullet_jet", -17,-17/ 
		goto_loop 		/"up0",3/

:up1
		induce 			/8,0,   32,1,0,		3, "normal",1/ 
		create_r_pv 	/"attractlx_bullet_jet", -17,-17/ 
		goto_loop 		/"up1",5/

:up2
		induce 			/8,0,   32,1,0,		2, "normal",1/ 
		create_r_pv 	/"attractlx_bullet_jet", -17,-17/ 
		goto_loop 		/"up2",8/

:loop0	

		induce 			/8,0,   32,1,0,		2, "normal",5/
		create_r_pv 	/"attractlx_bullet_jet", -17,-17/ 
		vector_induce 	/"main", 2/
		goto_loop 		/"loop0",10/

:loop	

		induce 			/8,0,   32,1,0,		2, "normal",3/
		create_r_pv 	/"attractlx_bullet_jet", -17,-17/ 
		vector_induce 	/"main", 2/
		goto_loop 		/"loop",30/

:loop2
		 induce 		/8,0,   32,1,0,		2, "normal",2/ 
		 goto 			"loop2"

	
end_action


action /"crashbow_bullet_uts_jet",		"create"/

		set_vector /"mod", "x", "div", 2/
		set_vector /"mod", "y", "div", 2/
		set_vector /"mod", "x", "mul", -1/
		set_vector /"mod", "y", "mul", -1/

:loop
		move	/9,0, "vector",1, "normal",1/	9,2, "vector",1, "normal",1/
				/9,4, "vector",1, "normal",1/	9,6, "vector",1, "normal",1/
				/9,8, "vector",1, "normal",1/	9,10, "vector",1, "normal",1/
				/9,12, "vector",1, "normal",1/	9,14, "vector",1, "normal",1/
				/9,16, "vector",1, "normal",1/	9,18, "vector",1, "normal",1/
				/9,20, "vector",1, "normal",1/

		kill_oneself

end_action

action /"crashbow_tri_bullet_wheel",	"create"/

	set_vector	"-5,0"

:loop

	move	/5,0,	"vector",1,	"normal",1/		5,1,	"vector",1,		"normal",1/
			/5,2,	"vector",1,	"normal",1/		5,3,	"vector",1,		"normal",1/
	move	/5,4,	"vector",1,	"normal",1/		5,5,	"vector",1,		"normal",1/
			/5,6,	"vector",1,	"normal",1/
	move	/5,7,	"vector",1,	"normal",1/		5,8,	"vector",1,		"normal",1/
			/5,9,	"vector",1,	"normal",1/
	move	/5,10,	"vector",1,	"normal",1/		5,11,	"vector",1,		"normal",1/
			/5,12,	"vector",1,	"normal",1/
	move	/5,13,	"vector",1,	"normal",1/		5,14,	"vector",1,		"normal",1/
			/5,15,	"vector",1,	"normal",1/

	goto_loop		/"loop",	40/

	kill_oneself

end_action		

action 	/"crashbow_tri_bullet_wheel",		"struck"/

	add_flag	/"white_flash", 4/
	kara		/5,0, 	"normal",3/	3,0, 	"normal",2/		2,0, 	"normal",2/

end_action

action /"crashbow_tri_bullet_wheel",		"destroy"/
	
		create_angle /"bomb_air_s", -35,-38, 0,1/ 		
		kill_oneself	

end_action


action /"crashbow_rect_bullet_wheel",	"create"/

	set_vector	"-5,0"

:loop

	move	/6,0,	"vector",1,	"normal",1/		6,1,	"vector",1,		"normal",1/
			/6,2,	"vector",1,	"normal",1/		6,3,	"vector",1,		"normal",1/
	move	/6,4,	"vector",1,	"normal",1/		6,5,	"vector",1,		"normal",1/
			/6,6,	"vector",1,	"normal",1/
	move	/6,7,	"vector",1,	"normal",1/		6,8,	"vector",1,		"normal",1/
			/6,9,	"vector",1,	"normal",1/
	move	/6,10,	"vector",1,	"normal",1/		6,11,	"vector",1,		"normal",1/
			/6,12,	"vector",1,	"normal",1/
	move	/6,13,	"vector",1,	"normal",1/		6,14,	"vector",1,		"normal",1/
			/6,15,	"vector",1,	"normal",1/

	goto_loop		/"loop",	40/

	kill_oneself

end_action		

action 	/"crashbow_rect_bullet_wheel",		"struck"/

	add_flag	/"white_flash", 4/
	kara		/5,0, 	"normal",3/	3,0, 	"normal",2/		2,0, 	"normal",2/

end_action

action /"crashbow_rect_bullet_wheel",		"destroy"/
	
		create_angle /"bomb_air_s", -35,-38, 0,1/ 		
		kill_oneself	

end_action


action /"crashbow_tri_bullet_uts",	"create"/

		move			/5,0, "vector",0, "normal",1/

:up1
		move			/5,0, "vector",6, "normal",2/
		goto_loop 		/"up1",2/

:up2
		move			/5,1, "vector",5, "normal",2/
		goto_loop 		/"up2",3/

:loop

	move	/5,0,	"vector",4,	"normal",1/		5,1,	"vector",4,		"normal",1/
			/5,2,	"vector",4,	"normal",1/		5,3,	"vector",4,		"normal",1/

	move	/5,4,	"vector",4,	"normal",1/		5,5,	"vector",4,		"normal",1/
			/5,6,	"vector",4,	"normal",1/

	vector_induce	/"main", 1/

	move	/5,4,	"vector",4,	"normal",1/		5,5,	"vector",4,		"normal",1/
			/5,6,	"vector",4,	"normal",1/

	move	/5,7,	"vector",4,	"normal",1/		5,8,	"vector",4,		"normal",1/
			/5,9,	"vector",4,	"normal",1/

	vector_induce	/"main", 1/

	move	/5,10,	"vector",4,	"normal",1/		5,11,	"vector",4,		"normal",1/
			/5,12,	"vector",4,	"normal",1/

	move	/5,13,	"vector",4,	"normal",1/		5,14,	"vector",4,		"normal",1/
			/5,15,	"vector",4,	"normal",1/

	vector_induce	/"main", 1/

	goto_loop		/"loop",	40/

	kill_oneself

end_action

action 	/"crashbow_tri_bullet_uts",		"struck"/

	add_flag	/"white_flash", 4/
	kara		/5,0, 	"normal",3/	3,0, 	"normal",2/		2,0, 	"normal",2/

end_action

action /"crashbow_tri_bullet_uts",		"destroy"/
	
		create_angle /"bomb_air_s", -35,-38, 0,1/ 		
		kill_oneself	

end_action

action /"crashbow_rect_bullet_uts",		"create"/

		move			/6,0, "vector",0, "normal",1/

:up1
		move			/6,0, "vector",5, "normal",2/
		goto_loop 		/"up1",2/

:up2
		move			/6,1, "vector",4, "normal",2/
		goto_loop 		/"up2",3/

:loop

	move	/6,0,	"vector",3,	"normal",1/		6,1,	"vector",3,		"normal",1/
			/6,2,	"vector",3,	"normal",1/		6,3,	"vector",3,		"normal",1/

	move	/6,4,	"vector",3,	"normal",1/		6,5,	"vector",3,		"normal",1/
			/6,6,	"vector",3,	"normal",1/

	vector_induce	/"main", 1/

	move	/6,4,	"vector",3,	"normal",1/		6,5,	"vector",3,		"normal",1/
			/6,6,	"vector",3,	"normal",1/

	move	/6,7,	"vector",3,	"normal",1/		6,8,	"vector",3,		"normal",1/
			/6,9,	"vector",3,	"normal",1/

	vector_induce	/"main", 1/

	move	/6,10,	"vector",3,	"normal",1/		6,11,	"vector",3,		"normal",1/
			/6,12,	"vector",3,	"normal",1/

	move	/6,13,	"vector",3,	"normal",1/		6,14,	"vector",3,		"normal",1/
			/6,15,	"vector",3,	"normal",1/

	vector_induce	/"main", 1/

	goto_loop		/"loop",	40/

	kill_oneself


end_action

action 	/"crashbow_rect_bullet_uts",	"struck"/

	add_flag	/"white_flash", 4/
	kara		/2,0, 	"normal",2/	1,0, 	"normal",1/

end_action

action /"crashbow_rect_bullet_uts",		"destroy"/
	
		create_angle /"bomb_air_s", -35,-38, 0,1/ 		
		kill_oneself
	
end_action




action	/"crashbow",	"create"/

:start				
		set_vector	/"mod", "locx", "set", 720/
		set_vector	/"mod", "locy", "set", 270/

		set_vector	/"backgr","long_front1", 0/
		set_vector	/"mod", "a", "set", 0/

:start_loop

		set_vector	/"backgr","back5", 0/

		move 	/0,0, "vector",1, "normal",2/		0,1, "vector",1, "normal",2/ 				 		
		
		set_vector	/"backgr","back5", 0/

		move	/0,2, "vector",1, "normal",2/		0,3, "vector",1, "normal",2/		
		
		set_vector	/"backgr","back5", 0/

		move	/0,4, "vector",1, "normal",2/		0,5, "vector",1, "normal",2/
		
		set_vector	/"backgr","back5", 0/	

		move	/0,6, "vector",1, "normal",2/ 		0,7, "vector",1, "normal",2/ 						
		
		goto_loop	/"start_loop",	25/

		dialog_event	"stage6_01"

:start_loop2

		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	

		goto_loop	/"start_loop2",	2/

:a1

		goto		"fire_exp"
		rand_goto	/"a1",	5,2/


:a2

		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	

		move 	/4,0, 0,0, "normal",2/		4,1, 0,0, "normal",2/ 				 		
				/4,2, 0,0, "normal",2/		4,3, 0,0, "normal",2/		

		playwave "bomb0004"
		create_angle	/"crashbow_small_ball",	100,15,	140,2/
		create_angle	/"crashbow_small_ball",	100,15,	150,2/
		create_angle	/"crashbow_small_ball",	100,15,	160,2/
		create_angle	/"crashbow_small_ball",	100,15,	170,2/
		create_angle	/"crashbow_small_ball",	100,15,	180,2/
		create_angle	/"crashbow_small_ball",	100,15,	190,2/
		create_angle	/"crashbow_small_ball",	100,15,	200,2/
		create_angle	/"crashbow_small_ball", 100,15,	210,2/
		create_angle	/"crashbow_small_ball", 100,15,	220,2/
		create_angle	/"crashbow_small_ball",	100,15,	230,2/
		create_angle	/"crashbow_small_ball",	100,15,	240,2/
		create_angle	/"crashbow_small_ball",	100,15,	250,2/
		create_angle	/"crashbow_small_ball",	100,15,	260,2/
		create_angle	/"crashbow_small_ball",	100,15,	270,2/
		create_angle	/"crashbow_small_ball",	100,15,	280,2/
		create_angle	/"crashbow_small_ball",	100,15,	290,2/
		create_angle	/"crashbow_small_ball",	100,15,	300,2/

		move 	/4,4, 0,0, "normal",3/		4,5, 0,0, "normal",3/ 				 		
				/4,6, 0,0, "normal",3/		4,7, 0,0, "normal",3/		

		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	



:sfire1

		rand_goto	/"sfire2",5,3/
		rand_goto	/"sfire3",5,2/

		move	/5,0,	0,0, "normal",2/	5,1,	0,0, "normal",2/	
				/5,2,	0,0, "normal",2/	5,3,	0,0, "normal",2/	

		move			/5,3,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_slow",	44,97,	180,2/
		move			/5,4,	0,0, "normal",2/	5,5,	0,0, "normal",2/	
		
		move			/5,6,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_slow",	44,92,	192,2/
		move			/5,7,	0,0, "normal",2/	5,8,	0,0, "normal",2/	

		move			/5,9,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_slow",	51,79,	204,2/
		move			/5,10,	0,0, "normal",2/	5,11,	0,0, "normal",2/	
		
		move			/5,12,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_slow",	54,68,	216,2/
		move			/5,13,	0,0, "normal",2/	5,14,	0,0, "normal",2/				

		move			/5,15,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_slow",	62,55,	228,2/
		move			/5,16,	0,0, "normal",2/	5,17,	0,0, "normal",2/				
		
		move			/5,18,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_slow",	67,48,	240,2/
		move			/5,19,	0,0, "normal",2/	5,20,	0,0, "normal",2/				

		move			/5,21,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_slow",	72,44,	252,2/
		move			/5,22,	0,0, "normal",2/	5,23,	0,0, "normal",2/				
		
		move			/5,24,	0,0, "normal",2/		
		create_angle	/"crashbow_bullet_slow",	86,34,	265,2/
		move			/5,25,	0,0, "normal",2/	5,22,	0,0, "normal",4/


		goto	"sfire4"


:sfire2
		move	/5,0,	0,0, "normal",2/	5,1,	0,0, "normal",2/	
				/5,2,	0,0, "normal",2/	5,3,	0,0, "normal",2/	
		
		move			/5,3,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_mid",	30,91,	180,2/
		move			/5,4,	0,0, "normal",2/	5,5,	0,0, "normal",2/	
		
		move			/5,6,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_mid",	30,81,	192,2/
		move			/5,7,	0,0, "normal",2/	5,8,	0,0, "normal",2/	

		move			/5,9,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_mid",	35,67,	204,2/
		move			/5,10,	0,0, "normal",2/	5,11,	0,0, "normal",2/	
		
		move			/5,12,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_mid",	43,58,	216,2/
		move			/5,13,	0,0, "normal",2/	5,14,	0,0, "normal",2/				

		move			/5,15,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_mid",	47,39,	228,2/
		move			/5,16,	0,0, "normal",2/	5,17,	0,0, "normal",2/				
		
		move			/5,18,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_mid",	57,34,	240,2/
		move			/5,19,	0,0, "normal",2/	5,20,	0,0, "normal",2/				

		move			/5,21,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_mid",	65,30,	252,2/
		move			/5,22,	0,0, "normal",2/	5,23,	0,0, "normal",2/				
		
		move			/5,24,	0,0, "normal",2/		
		create_angle	/"crashbow_bullet_mid",	86,34,	265,2/
		move			/5,25,	0,0, "normal",2/	5,22,	0,0, "normal",4/

		goto	"sfire4"

:sfire3
		move	/5,0,	0,0, "normal",2/	5,1,	0,0, "normal",2/	
				/5,2,	0,0, "normal",2/	5,3,	0,0, "normal",2/	

		move			/5,3,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_fast",	30,91,	180,2/
		move			/5,4,	0,0, "normal",3/	5,5,	0,0, "normal",2/	
		
		move			/5,6,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_fast",	30,81,	192,2/
		move			/5,7,	0,0, "normal",3/	5,8,	0,0, "normal",2/	

		move			/5,9,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_fast",	35,67,	204,2/
		move			/5,10,	0,0, "normal",3/	5,11,	0,0, "normal",2/	
		
		move			/5,12,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_fast",	43,58,	216,2/
		move			/5,13,	0,0, "normal",3/	5,14,	0,0, "normal",2/				

		move			/5,15,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_fast",	47,39,	228,2/
		move			/5,16,	0,0, "normal",3/	5,17,	0,0, "normal",2/				
		
		move			/5,18,	0,0, "normal",2/	
		create_angle	/"crashbow_bullet_fast",	57,34,	240,2/
		move			/5,19,	0,0, "normal",3/	5,20,	0,0, "normal",2/				

		move			/5,21,	0,0, "normal",2/
		create_angle	/"crashbow_bullet_fast",	65,30,	252,2/
		move			/5,22,	0,0, "normal",3/	5,23,	0,0, "normal",2/				
		
		move			/5,24,	0,0, "normal",2/		
		create_angle	/"crashbow_bullet_fast",	86,34,	265,2/
		move			/5,25,	0,0, "normal",3/	5,22,	0,0, "normal",4/

:sfire4

		rand_goto	/"sfire5",		5,2/

		move 	/4,0, 0,0, "normal",2/		4,1, 0,0, "normal",2/ 				 		
				/4,2, 0,0, "normal",2/		4,3, 0,0, "normal",2/		

		playwave "miss0001"
		create_angle	/"crashbow_small_ball",	100,15,	140,2/
		create_angle	/"crashbow_small_ball",	100,15,	150,2/
		create_angle	/"crashbow_small_ball",	100,15,	160,2/
		create_angle	/"crashbow_small_ball",	100,15,	170,2/
		create_angle	/"crashbow_small_ball",	100,15,	180,2/
		create_angle	/"crashbow_small_ball",	100,15,	190,2/
		create_angle	/"crashbow_small_ball",	100,15,	200,2/
		create_angle	/"crashbow_small_ball", 100,15,	210,2/
		create_angle	/"crashbow_small_ball", 100,15,	220,2/
		create_angle	/"crashbow_small_ball",	100,15,	230,2/
		create_angle	/"crashbow_small_ball",	100,15,	240,2/
		create_angle	/"crashbow_small_ball",	100,15,	250,2/
		create_angle	/"crashbow_small_ball",	100,15,	260,2/
		create_angle	/"crashbow_small_ball",	100,15,	270,2/
		create_angle	/"crashbow_small_ball",	100,15,	280,2/
		create_angle	/"crashbow_small_ball",	100,15,	290,2/
		create_angle	/"crashbow_small_ball",	100,15,	300,2/

		move 	/4,4, 0,0, "normal",3/		4,5, 0,0, "normal",3/ 				 		
				/4,6, 0,0, "normal",3/		4,7, 0,0, "normal",3/		

		create_angle	/"crashbow_tri_bullet_wheel",	650,-100,	180,150/
		create_angle	/"crashbow_rect_bullet_wheel",	670,-140,	180,180/
		create_angle	/"crashbow_tri_bullet_wheel",	690,-180,	180,210/
		create_angle	/"crashbow_rect_bullet_wheel",	710,-220,	180,240/


		goto	"sfire6"

:sfire5

		move	/5,0,	0,0, "normal",1/	5,1,	0,0, "normal",1/	
				/5,2,	0,0, "normal",1/	5,3,	0,0, "normal",1/	
				/5,6,	0,0, "normal",1/	5,9,	0,0, "normal",1/	
		playwave "walk0004"
		create_angle	/"crashbow_tri_bullet_uts",		50,75,	200,2/
		create_angle	/"crashbow_rect_bullet_uts",	50,75,	210,2/
		create_angle	/"crashbow_tri_bullet_uts",		50,75,	220,2/
		create_angle	/"crashbow_rect_bullet_uts",	50,75,	230,2/
		create_angle	/"crashbow_tri_bullet_uts",		50,75,	240,2/
		
		move	/5,10,	0,0, "normal",3/	5,11,	0,0, "normal",2/	
		move	/5,12,	0,0, "normal",1/	5,15,	0,0, "normal",1/	
				/5,18,	0,0, "normal",1/	5,21,	0,0, "normal",1/	

:sfire6

		goto_loop	/"sfire1",	1/		


		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	
		
		playwave "walk0005"
		create_angle	/"crashbow_tri_bullet_wheel",	650,0,	180,0/
		create_angle	/"crashbow_rect_bullet_wheel",	670,-30,180,30/
		create_angle	/"crashbow_tri_bullet_wheel",	690,-60,180,60/
		create_angle	/"crashbow_rect_bullet_wheel",	710,-90,180,90/

		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	

:fire_uts

		move	/5,0,	0,0, "normal",1/	5,1,	0,0, "normal",1/	
				/5,2,	0,0, "normal",1/	5,3,	0,0, "normal",1/	
				/5,6,	0,0, "normal",1/	5,9,	0,0, "normal",1/	
		
		playwave "miss0000"
		create_angle	/"crashbow_bullet_uts",	55,70,	190,2/
		create_angle	/"crashbow_bullet_uts",	55,70,	210,2/
		create_angle	/"crashbow_bullet_uts",	55,70,	230,2/
		create_angle	/"crashbow_bullet_uts",	55,70,	250,2/
		
		move	/5,10,	0,0, "normal",3/	5,11,	0,0, "normal",2/	
		move	/5,12,	0,0, "normal",1/	5,15,	0,0, "normal",1/	
				/5,18,	0,0, "normal",1/	5,21,	0,0, "normal",1/	

		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	

		rand_goto	/"a2",	5,2/


:fire_uts_2

		move	/5,0,	0,0, "normal",1/	5,1,	0,0, "normal",1/	
				/5,2,	0,0, "normal",1/	5,3,	0,0, "normal",1/	
				/5,6,	0,0, "normal",1/	5,9,	0,0, "normal",1/	
		
		playwave "walk0005"
		create_angle	/"crashbow_tri_bullet_uts",		50,75,	200,2/
		create_angle	/"crashbow_rect_bullet_uts",	50,75,	210,2/
		create_angle	/"crashbow_tri_bullet_uts",		50,75,	220,2/
		create_angle	/"crashbow_rect_bullet_uts",	50,75,	230,2/
		create_angle	/"crashbow_tri_bullet_uts",		50,75,	240,2/
		
		move	/5,10,	0,0, "normal",3/	5,11,	0,0, "normal",2/	
		move	/5,12,	0,0, "normal",1/	5,15,	0,0, "normal",1/	
				/5,18,	0,0, "normal",1/	5,21,	0,0, "normal",1/	

		rand_goto	/"fire_uts_2",	5,4/
		
		playwave "walk0004"
		create_angle	/"crashbow_tri_bullet_wheel",	650,50,	180,0/
		create_angle	/"crashbow_tri_bullet_wheel",	670,90,	180,30/
		create_angle	/"crashbow_tri_bullet_wheel",	690,130,180,60/
		create_angle	/"crashbow_tri_bullet_wheel",	710,170,180,90/


		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	

		move 	/0,0, 0,0, "normal",2/		0,1, 0,0, "normal",2/ 				 		
				/0,2, 0,0, "normal",2/		0,3, 0,0, "normal",2/		
				/0,4, 0,0, "normal",2/		0,5, 0,0, "normal",2/
				/0,6, 0,0, "normal",2/ 		0,7, 0,0, "normal",2/ 	

		goto		"start_loop2"

:fire_exp
		
		set_vector /"mod", "a", "set", 0/
		playwave "miss0000"
		move	/5,0,	0,0, "normal",2/	5,1,	0,0, "normal",2/	
				/5,2,	0,0, "normal",2/	5,3,	0,0, "normal",2/	

		move	/5,3,	0,0, "normal",2/	5,6,	0,0, "normal",2/	
		rand_goto	/"fire_exp2_fire",	5,4/

:fire_exp2
		playwave "miss0000"
		move	/5,9,	0,0, "normal",2/	5,12,	0,0, "normal",2/		
		rand_goto	/"fire_exp3_fire",	5,4/
		if_lt		/"fire_exp3_fire",	"a", "self",	2/

:fire_exp3
		playwave "miss0000"
		move	/5,15,	0,0, "normal",2/	5,18,	0,0, "normal",2/		
		rand_goto	/"fire_exp4_fire",	5,4/
		if_lt		/"fire_exp4_fire",	"a", "self",	2/

:fire_exp4
		playwave "miss0000"
		move		/5,21,	0,0, "normal",2/	5,24,	0,0, "normal",2/		
		rand_goto	/"fire_exp5_fire",	5,2/

:fire_exp5		
		move		/5,21,	0,0, "normal",4/
		goto	"a2"


:fire_exp2_fire
		playwave "miss0000"
		set_vector		/"mod", "a", "add", 1/

		create_angle	/"crashbow_ball",	44,97,	180,2/
		move			/5,7,	0,0, "normal",3/	5,8,	0,0, "normal",2/	
		goto			"fire_exp2"

:fire_exp3_fire
		playwave "miss0000"
		set_vector		/"mod", "a", "add", 1/

		create_angle	/"crashbow_ball",	53,67,	210,2/
		move			/5,13,	0,0, "normal",3/	5,14,	0,0, "normal",2/	
		goto			"fire_exp3"

:fire_exp4_fire
		playwave "miss0000"
		set_vector		/"mod", "a", "add", 1/

		create_angle	/"crashbow_ball",	67,48,	240,2/
		move			/5,19,	0,0, "normal",3/	5,20,	0,0, "normal",2/	
		goto			"fire_exp4"

:fire_exp5_fire
		playwave "miss0000"
		set_vector		/"mod", "a", "add", 1/

		create_angle	/"crashbow_ball",	86,34,	270,2/
		move			/5,25,	0,0, "normal",3/	5,26,	0,0, "normal",2/	
		goto			"fire_exp5"

end_action


action 	/"crashbow",		"struck"/

	add_flag	/"white_flash", 4/

	if_eq		/"go2",  "framey", "self","1"/	

	kara		/0,0, 	"normal",1/
	goto		go3

	:go2
	kara		/0,0, 	"normal",1/

	:go3

end_action

action /"crashbow",		"destroy"/

		add_flag	/"trans", 100/
		
		if_eq		/"go2",  "framey", "self","2"/	

		create_angle /"bomb_air_l", -17,27, 0,0,1/ 		
		create_angle /"bomb_air_l", 58,-23, 0,0,15/ 		
		create_angle /"bomb_air_l", -21,97, 0,0,10/ 		
		create_angle /"bomb_air_l", 89,94,	0,0,20/ 		
		create_angle /"bomb_air_m", 17,82, 100,1,10/ 			
		create_angle /"bomb_air_m", 108,42, 280,1,15/ 			

		create_angle /"bomb_air_l", -17,27, 0,0,30/ 		
		create_angle /"bomb_air_l", 58,-23, 0,0,20/ 		
		create_angle /"bomb_air_l", -21,97, 0,0,25/ 		
		create_angle /"bomb_air_l", 89,94,	0,0,35/ 		
		create_angle /"bomb_air_m", 17,82, 100,1,25/ 			
		create_angle /"bomb_air_m", 108,42, 280,1,35/ 			

		move	/3,0,	0,0,	"normal,1/

		sub_flag	/"danger", 1/		
		sub_flag	/"white_flash", 1/				

		move	/3,1,	0,0,	"normal,12/
				/3,2,	0,0,	"normal,8/	3,3,	0,0,	"normal,8/
				/3,4,	0,0,	"normal,8/	3,5,	0,0,	"normal,8/
				/3,6,	0,0,	"normal,8/

	goto		"go3"
	
:go2

		create_angle /"bomb_air_l", -17,27, 0,0,1/ 		
		create_angle /"bomb_air_l", 58,-23, 0,0,15/ 		
		create_angle /"bomb_air_l", -21,97, 0,0,10/ 		
		create_angle /"bomb_air_l", 89,94,	0,0,20/ 		
		create_angle /"bomb_air_m", 17,82, 100,1,10/ 			
		create_angle /"bomb_air_m", 108,42, 280,1,15/ 			

		create_angle /"bomb_air_l", -17,27, 0,0,30/ 		
		create_angle /"bomb_air_l", 58,-23, 0,0,20/ 		
		create_angle /"bomb_air_l", -21,97, 0,0,25/ 		
		create_angle /"bomb_air_l", 89,94,	0,0,35/ 		
		create_angle /"bomb_air_m", 17,82, 100,1,25/ 			
		create_angle /"bomb_air_m", 108,42, 280,1,35/ 			

		move	/3,0,	0,0,	"normal,1/

		sub_flag	/"danger", 1/		
		sub_flag	/"white_flash", 1/		

		move	/3,1,	0,2,	"normal,8/
				/3,2,	0,2,	"normal,8/	3,3,	0,2,	"normal,8/	
:go2_2

		move		/3,4,	0,3,	"normal,	1/
		if_lt		/"go2_2",  "y", "self",	"200"/	

		move	/3,4,	0,0,	"normal,8/	3,5,	0,0,	"normal,8/
				/3,6,	0,0,	"normal,8/	3,7,	0,0,	"normal,8/
				/3,8,	0,0,	"normal,8/	3,9,	0,0,	"normal,8/

:go3

		create_angle /"number_5000", 65,60, 0,1,0/ 	
		create_angle /"number_5000", 65,60, 0,1,6/ 	
		create_angle /"number_5000", 65,60, 0,1,12/ 	
		create_angle /"number_5000", 65,60, 0,1,18/ 	
		create_angle /"number_5000", 65,60, 0,1,24/ 	
		create_angle /"number_5000", 65,60, 0,1,30/ 	

		create_angle /"bomb_ground_smoke", 53,38, 0,1,20/ 	
		create_angle /"bomb_ground_smoke", -9,131, 0,1,8/ 	
		create_angle /"bomb_ground_smoke", 120,103, 0,1,35/ 	

		move	/3,9,	0,0,	"normal,60/
		dialog_event	"stage6_02"
		move	/3,9,	0,0,	"normal,60/
		next_round
		move	/3,9,	0,0,	"normal,200/

end_action


end_character_action		


