;บ  final_boss_tunnel	               บ
;ศออออออออออออออออออออออออออออออออออออออออออผ
	setfadedown	quick
	mapwaitfade
	setbg	missionextra3
;;;	setbg	missionextra2
	initbg

	map_vscreensize_mission	6

;	m_range	8192
	m_scale	1

	mapcode_jsl	initblack_l
	setvar		stayblack,1
	setfadeup	quick
	map_rasterOFF
;-----------------------------------------
;**** MAP SET START ****
;-----------------------------------------
;players_position
;ษอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออป
;บmap_arwinginit		high,low,rotXmax,rotYmin                    บ
;บmap_battlearea		high,low,depth,type	(koudokei)          บ
;บmap_camerainit_1screen	midY,Yoffsetmax,rotXmax,rotXmin,Yoffsetrate บ
;บmap_camerainit_2screen	,,,,,	                                    บ
;ศอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออออผ
;;players_position
	map_playermode		room

	map_setplayerpos	1,0256,-120-20,0064,0
	map_battlearea		-300,0,0,ground
	map_camerainit_1screen	-080,100,16,-16,55H
	map_arwinginit		-300,-12,15,-15
;tunnel_mode
	map_playertunnel
;-----------------------
;dots_set
	map_setdust	coloured		
	map_dustkazu	8
;shinnyuu_demo
	map_demomode	suisei
;planet_message
	pathobj		0,0,0,0,nullshape,e_final_map,100,0
	pathobj		0,0,0,0,stg_checker,e_game_maker_space,100,0
;walker_start
	pathobj 	0,0000,00,0000,nullshape,e_auto_walker,10,10
;kenemynumber
	setvar		kenemynumber,1
;-------------------------------------------------------------
;-------------------------------------------------------------
;**** MAP STEPSET AREA ****
;;;;;;;;;;;;;map_area <NO=0-15>,X,Z,W,L,Lavel;;;;;;;;;;
;-------------------------------------------------------------
;-------------------------------------------------------------
;;ANDORUF_STEP
;	mapgotoiflevel	1,ext2_0	;andoruf_boss
;	map_endarea
;-------------------------------------------------------------
;-------------------------------------------------------------
ext2_0	;(last_tunnel)
;EVERY_SET
;tobira
	m_inertpath	2*1024,0000,5*1024+256,deg90,kabe_to1,e_buil_shadow_off
	m_inertpath	-1024-512,0000,5*1024+256,deg90,kabe_to1,e_buil_shadow_off
	m_inertpath	4*1024+256,0000,7*1024+512,00,kabe_to1,e_buil_shadow_off
	m_inertpath	-4*1024+256,0000,7*1024+512,00,kabe_to1,e_buil_shadow_off
	m_inertpath	256,0000,15*1024,00,kabe_to1,e_buil_shadow_off
;door
	m_inertpath	1024+512+60,0000,5*1024+256,deg90,kabe_ak1,e_free_door
	m_inertpath	-1024-60,0000,5*1024+256,-deg90,kabe_ak1,e_free_door
	m_inertpath	4*1024+256,1,7*1024+60,00,kabe_ak1,e_switch_op_door
	m_inertpath	4*1024,0000,6*1024+512,1,on_d,e_fumu_switch_door_map
	m_inertpath	-4*1024+256,0002,7*1024+60,00,kabe_ak1,e_switch_op_door
	m_inertpath	-4*1024+512,0000,6*1024+512,2,on_d,e_fumu_switch_door_map
	m_inertpath	256,0000,15*1024-512+60,00,kabe_ak1,e_free_door
	m_inertpath	256,0000,15*1024+512-60,00,kabe_ak1,e_free_door
;ANDORF
	pathobj		0,256,0,17*1024+512,and_zoon,e_buil_shadow_off,10,10
	pathobj		0,256,-300,17*1024+512,and_box1,and_box0,10,10
	pathobj		0,256,-600,17*1024+512,and_zoon,e_buil_shadow_off,10,10
	setalvar	rotx,deg180
;-------------------
;**** MAP SET AREA ****
;-------------------
	map_area 0,-2*1024,0000,4*1024+512,5*1024+512,ext2_area0,on
	map_area 1,1024+512,5*1024,3*1024,3*1024,ext2_area1,on
	map_area 2,-4*1024,5*1024,3*1024,3*1024,ext2_area2,on
	map_area 3,-4*1024,7*1024,8*1024+512,8*1024+512,ext2_area3,on
	map_area 4,-2*1024,14*1024+512,4*1024+512,5*1024,ext2_area4,on
;
	map_area 5,512,0000,2*1024,4*1024+512,0,off,inactive
	map_area 6,-2*1024,0000,2*1024,4*1024+512,0,off,inactive
	map_area 7,1024,4*1024+512,1024+512,512,0,off,inactive
	map_area 8,-2*1024,4*1024+512,1024+512,512,0,off,inactive
	map_area 9,-2*1024,5*1024+512,4*1024+512,1024+512,0,off,inactive
	map_area 10,-3*1024-512,7*1024,7*1024+512,3*1024+512,0,off,inactive
	map_area 11,-3*1024,10*1024+512,6*1024+512,512,0,off,inactive
	map_area 12,1024,11*1024+512,3*1024+512,512,0,off,inactive
	map_area 13,-4*1024,11*1024+512,3*1024+512,512,0,off,inactive
	map_area 14,512,12*1024,4*1024,3*1024+512,0,off,inactive
	map_area 15,-4*1024,12*1024,4*1024,3*1024+512,0,off,inactive
;
	map_endarea
	;-------------------
ext2_area0
;entrance
	m_inertpath	256,0000,-512,00,kabe_to1,e_buil_shadow_off
	m_inertpath	256,0000,-60,00,kabe_ak1,e_hako_0
;	m_inertpath	256,0000,0,0,kabe_ak5,e_nocol_s_off
;kabe
	m_inertpath	01024,0000,1024,deg90,kabe_2,e_nocol_s_off
	m_inertpath	01024,0000,3*1024,deg90,kabe_2,e_nocol_s_off
	m_inertpath	-0512,0000,1024,-deg90,kabe_2,e_nocol_s_off
	m_inertpath	-0512,0000,3*1024,-deg90,kabe_2,e_nocol_s_off
	m_inertpath	01024-256,0000,6*1024,deg180,kabe_1,e_nocol_s_off
	m_inertpath	-512,0000,6*1024,deg180,kabe_0,e_nocol_s_off
   ;kado
	m_inertpath	-512,0000,4*1024+512,0,kado_0,e_buil_shadow_off
	m_inertpath	1024,0000,4*1024+512,deg90,kado_0,e_buil_shadow_off
;hako_saka
	m_inertpath	256,-32,5*1024+256,0,t_hako_0,e_hako_0
	m_inertpath	256,-64,4*1024,0,t_hako_0,e_hako_1
	m_inertpath	256,000,4*1024-500,deg180,t_saka_0,e_hako_1
	m_inertpath	256,-32,3*1024-256,0,t_hako_0,e_hako_0
	m_inertpath	256,000,2*1024+265,deg180,t_saka_0,e_hako_0
;houdai
	m_inertpath	256,-64,5*1024+256,deg180,taihou_0,e_taihou
	m_inertpath	256,-128,4*1024,deg180,taihou_0,e_taihou
	m_inertpath	256,-64,3*1024-256,deg180,taihou_0,e_taihou

	map_endarea
	;-------------------
ext2_area1
;kabe
	m_inertpath	5*1024,0000,6*1024,deg90,kabe_2,e_nocol_s_off
	m_inertpath	2*1024,0000,6*1024+256,-deg90,kabe_1,e_nocol_s_off
	m_inertpath	3*1024+256,0000,7*1024+512,deg180,kabe_1,e_nocol_s_off
	m_inertpath	3*1024+512,0000,4*1024+512,00,kabe_2,e_nocol_s_off
;heart_item
	m_inertpath	3*1024+512,0,6*1024,1,itembox0,e_panel_flamethrower
;trap
	m_inertpath	3*1024+100,-80,6*1024,2,toge_0,e_room_toge
	m_inertpath	4*1024-100,-80,6*1024,2,toge_0,e_room_toge
	m_inertpath	3*1024+512,-80,5*1024+512+100,1,toge_0,e_room_toge
	m_inertpath	3*1024+512,-80,6*1024+512-100,1,toge_0,e_room_toge
;kabe_hou
	m_inertpath	4*1024+512,-100,6*1024,deg90,tsu_hou_t,e_kabe_hou

	map_endarea
	;-------------------
ext2_area2
;kabe
	m_inertpath	-4*1024-512,0000,6*1024,-deg90,kabe_2,e_nocol_s_off
	m_inertpath	-1024-512,0000,6*1024+256,deg90,kabe_1,e_nocol_s_off
	m_inertpath	-3*1024+256,0000,7*1024+512,deg180,kabe_1,e_nocol_s_off
	m_inertpath	-3*1024,0000,4*1024+512,00,kabe_2,e_nocol_s_off
;twin_item
	m_inertpath	-3*1024,0,6*1024,2,itembox0,e_panel_twinblaster
;kabe_hou
	m_inertpath	-4*1024,-100,6*1024,-deg90,tsu_hou_t,e_kabe_hou
;yoihou
	m_inertpath	-2*1024-512,0000,6*1024+512,0,yoi_hou,e_yoi_hou
	m_inertpath	-3*1024-512,0000,6*1024-512,0,yoi_hou,e_yoi_hou
;pillar
	m_inertpath	-2*1024-512,0000,5*1024+512,0,t_hako_tate,e_hako_6

	map_endarea
	;-------------------
ext2_area3
;kabe
	m_inertpath	5*1024,0000,9*1024,deg90,kabe_2,e_nocol_s_off
	m_inertpath	5*1024,0000,11*1024-256,deg90,kabe_1,e_nocol_s_off
	m_inertpath	3*1024+512,0000,9*1024,-deg90,kabe_2,e_nocol_s_off
	m_inertpath	4*1024-256,0000,12*1024,deg180,kabe_1,e_nocol_s_off
	m_inertpath	2*1024+256,0000,12*1024,deg180,kabe_1,e_nocol_s_off
	m_inertpath	2*1024,0000,10*1024+512,00,kabe_2,e_nocol_s_off
;
	m_inertpath	-5*1024+512,0000,9*1024,-deg90,kabe_2,e_nocol_s_off
	m_inertpath	-5*1024+512,0000,11*1024-256,-deg90,kabe_1,e_nocol_s_off
	m_inertpath	-3*1024,0000,9*1024,deg90,kabe_2,e_nocol_s_off
	m_inertpath	-3*1024-256,0000,12*1024,deg180,kabe_1,e_nocol_s_off
	m_inertpath	-2*1024+256,0000,12*1024,deg180,kabe_1,e_nocol_s_off
	m_inertpath	-1024-512,0000,10*1024+512,00,kabe_2,e_nocol_s_off
;
	m_inertpath	256,0000,10*1024+512,00,kabe_1,e_nocol_s_off
	m_inertpath	1024,0000,13*1024+512,deg90,kabe_2,e_nocol_s_off
	m_inertpath	-512,0000,13*1024+512,-deg90,kabe_2,e_nocol_s_off
;kado
	m_inertpath	-512,0000,12*1024,-deg90,kado_0,e_buil_shadow_off
	m_inertpath	1024,0000,12*1024,deg180,kado_0,e_buil_shadow_off
	m_inertpath	-3*1024,0000,10*1024+512,deg90,kado_0,e_buil_shadow_off
	m_inertpath	3*1024+512,0000,10*1024+512,00,kado_0,e_buil_shadow_off
;hit_open_door
	m_inertpath	4*1024,0000,9*1024,0,t_to_1,e_hit_open_door_1
	m_inertpath	4*1024+512,0000,10*1024,deg180,t_to_1,e_hit_open_door_1
;hit_360rot_door
	m_inertpath	-4*1024+256,0000,10*1024,00,t_to_2,e_hit_open_door_2
	m_inertpath	-4*1024+256,0000,9*1024,deg180,t_to_2,e_hit_open_door_2
;hit_rot_door
	m_inertpath	1024+512,0000,11*1024+512-48,-deg90,t_to_0,e_hit_open_door_0
	m_inertpath	1024+512,0000,11*1024+48,deg90,t_to_0,e_hit_open_door_0
	m_inertpath	-1024,0000,11*1024+512-48,-deg90,t_to_0,e_hit_open_door_0
	m_inertpath	-1024,0000,11*1024+48,deg90,t_to_0,e_hit_open_door_0
;kabe_hou
	m_inertpath	4*1024+256,-140,11*1024+512,deg180,tsu_hou_t,e_kabe_hou
	m_inertpath	-4*1024+256,-140,11*1024+512,deg180,tsu_hou_t,e_kabe_hou
;items
	m_inertpath	4*1024+256,0,11*1024+256,3,itembox0,e_panel_shieldplayer
	m_inertpath	-4*1024+256,0,11*1024+256,4,itembox0,e_panel_smartplasma
;kaifuku
	m_inertpath	256,0000,11*1024+256,0,kaifuku,e_kaifuku_panel

	map_endarea
	;-------------------
;BOSS_CORE_ROOM
ext2_area4
;kabe
;	m_inertpath	3*1024,0000,16*1024+512,deg90,kabe_2,e_nocol_s_off
;	m_inertpath	3*1024,0000,18*1024+512,deg90,kabe_2,e_nocol_s_off
;	m_inertpath	-2*1024-512,0000,16*1024+512,-deg90,kabe_2,e_nocol_s_off
;	m_inertpath	-2*1024-512,0000,18*1024+512,-deg90,kabe_2,e_nocol_s_off
;	m_inertpath	2*1024-256,0000,20*1024,deg180,kabe_1,e_nocol_s_off
;	m_inertpath	256,0000,20*1024,deg180,kabe_1,e_nocol_s_off
;	m_inertpath	-1024-256,0000,20*1024,deg180,kabe_1,e_nocol_s_off
;	m_inertpath	1024+512,0000,15*1024,00,kabe_2,e_nocol_s_off
;	m_inertpath	-1024,0000,15*1024,00,kabe_2,e_nocol_s_off

	m_inertpath	3*1024,0000,17*1024+512,deg90,kabe_2,e_nocol_s_off
	m_inertpath	-2*1024-512,0000,17*1024+512,-deg90,kabe_2,e_nocol_s_off
	m_inertpath	1024-256,0000,20*1024,deg180,kabe_1,e_nocol_s_off
	m_inertpath	-512,0000,20*1024,deg180,kabe_0,e_nocol_s_off
	m_inertpath	1024,0000,15*1024,00,kabe_0,e_nocol_s_off
	m_inertpath	-512,0000,15*1024,00,kabe_0,e_nocol_s_off
;kado
	m_inertpath	2*1024,0000,16*1024,deg90,kado_0,e_buil_shadow_off
	m_inertpath	2*1024,0000,19*1024,deg180,kado_0,e_buil_shadow_off
	m_inertpath	-1024-512,0000,19*1024,-deg90,kado_0,e_buil_shadow_off
	m_inertpath	-1024-512,0000,16*1024,00,kado_0,e_buil_shadow_off
;kabe_hou
	m_inertpath	-2*1024,-150,17*1024,-deg90,tsu_hou,e_kabe_hou
	m_inertpath	-2*1024,-150,18*1024,-deg90,tsu_hou,e_kabe_hou
	m_inertpath	2*1024+512,-150,17*1024,deg90,tsu_hou,e_kabe_hou
	m_inertpath	2*1024+512,-150,18*1024,deg90,tsu_hou,e_kabe_hou
	m_inertpath	1024,-150,19*1024+512,deg180,tsu_hou,e_kabe_hou
	m_inertpath	-512,-150,19*1024+512,deg180,tsu_hou,e_kabe_hou
;
;	m_inertpath	1024+512-80,-150,16*1024+512,deg90,tsu_hou_t,e_kabe_hou
;	m_inertpath	-1024+85,-150,16*1024+512,-deg90,tsu_hou_t,e_kabe_hou
;	m_inertpath	1024+512-80,-150,18*1024+512,deg90,tsu_hou_t,e_kabe_hou
;	m_inertpath	-1024+85,-150,18*1024+512,-deg90,tsu_hou_t,e_kabe_hou
;
;	m_inertpath	2*1024-256,-150,16*1024+256,deg45,tsu_hou_t,e_kabe_hou
;	m_inertpath	-1024-256,-150,16*1024+256,-deg45,tsu_hou_t,e_kabe_hou
;ita
;	m_inertpath	1024+512,0000,16*1024+512,0,t_hako_tate,e_hako_3
;	m_inertpath	-1024,0000,16*1024+512,0,t_hako_tate,e_hako_3
;	m_inertpath	1024+512,0000,18*1024+512,0,t_hako_tate,e_hako_3
;	m_inertpath	-1024,0000,18*1024+512,0,t_hako_tate,e_hako_3

	map_endarea
;-------------------------------------------------------------
;-----------------------------------------
;**** MAP SET END ****
;-----------------------------------------
.lp	mapwait	5000
	mapgoto	.lp





	IFEQ	1
ext2_0	;(last_tunnel)
	map_demomode	suisei
;-------------------
;**** MAP SET AREA ****
;-------------------
	map_area 0,0000,0000,512,7*1024,0,on,inactive
	map_area 1,0512,6*1024+512,512,512,0,on,inactive
	map_area 2,0000,7*1024,5*1024,512,0,on,inactive
	map_area 3,4*1024+512,7*1024+512,512,512,0,on,inactive
	map_area 4,5*1024,7*1024,512,6*1024+512,0,on,inactive
	map_area 2,3*1024+512,13*1024+512,3*1024+512,4*1024,0,on,inactive
;kabe
	m_inertpath	01024,0000,1024,deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	01024,0000,3*1024,deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	-0512,0000,1024,-deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	-0512,0000,3*1024,-deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	1024,0000,8*1024,deg180,f_kabe_2,e_nocol_s_off
	m_inertpath	3*1024,0000,8*1024,deg180,f_kabe_2,e_nocol_s_off
	m_inertpath	4*1024+512,0000,9*1024+512,-deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	4*1024+512,0000,11*1024+512,-deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	6*1024,0000,9*1024+512,deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	6*1024,0000,11*1024+512,deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	2*1024+512,0000,6*1024+512,0,f_kabe_2,e_nocol_s_off
	m_inertpath	4*1024+512,0000,6*1024+512,0,f_kabe_2,e_nocol_s_off
	m_inertpath	7*1024+512,0000,14*1024+512,deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	7*1024+512,0000,16*1024+512,deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	3*1024,0000,14*1024+512,-deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	3*1024,0000,16*1024+512,-deg90,f_kabe_2,e_nocol_s_off
;
	m_inertpath	1024,0000,5*1024,deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	-512,0000,5*1024,-deg90,f_kabe_2,e_nocol_s_off
	m_inertpath	-512,0000,7*1024-256,-deg90,f_kabe_1,e_nocol_s_off
	m_inertpath	6*1024,0000,8*1024-256,deg90,f_kabe_1,e_nocol_s_off
	m_inertpath	4*1024+256,0000,13*1024,0,f_kabe_1,e_nocol_s_off
	m_inertpath	6*1024+256,0000,13*1024,0,f_kabe_1,e_nocol_s_off
	m_inertpath	6*1024+256,0000,18*1024,deg180,f_kabe_1,e_nocol_s_off
	m_inertpath	4*1024+512,0000,18*1024,deg180,f_kabe_2,e_nocol_s_off
   ;kado
	m_inertpath	1024,0000,6*1024+512,deg90,kado_0,e_buil_shadow_off
	m_inertpath	4*1024+512,0000,8*1024,-deg90,kado_0,e_buil_shadow_off
;kabe_to
	m_inertpath	5*1024+256,0000,13*1024,00,kabe_to1,e_buil_shadow_off
	m_inertpath	5*1024+256,0000,13*1024+512-60,00,kabe_ak1,e_free_door
	m_inertpath	5*1024+256,0000,13*1024-512+60,00,kabe_ak1,e_free_door
;entrance
	m_inertpath	256,0000,-512,00,kabe_to1,e_buil_shadow_off
	m_inertpath	256,0000,-60,00,kabe_ak1,e_hako_0
;ANDORF
	pathobj		0,5*1024+256,0,15*1024+512,and_zoon,e_buil_shadow_off,10,10
	pathobj		0,5*1024+256,-300,15*1024+512,and_box1,and_box0,10,10
	pathobj		0,5*1024+256,-600,15*1024+512,and_zoon,e_buil_shadow_off,10,10
	setalvar	rotx,deg180
	map_endarea
	ENDC
