;*********************************************************************
;*								*
;*			Sprites Data				* 
;*								*
;*********************************************************************
	IFEQ	1
PilotOAMData
	dw	(FOXYokoPT-PilotOAMData)&WM
	dw	(FALCOYokoPT&WM-PilotOAMData)&WM
	dw	(PeppyYokoPT-PilotOAMData)&WM
	dw	(SlippyYokoPT&WM-PilotOAMData)&WM
	dw	(BossYokoPT&WM-PilotOAMData)&WM
	dw	(LadyYokoPT-PilotOAMData)&WM
;----------------------------------------------------------------------
FoxYokoPT
	km_datacnt	W,FOXYokoPT
	SpriteDataB	-$08,-$18,$0a0,colpal2,pri3,noflip
	SpriteDataB	 $00,-$18,$0a1,colpal2,pri3,noflip
	SpriteDataB	 $08,-$18,$0a2,colpal2,pri3,noflip

	SpriteDataB	-$10,-$10,$0a3,colpal2,pri3,noflip
	SpriteDataB	-$08,-$10,$0a4,colpal2,pri3,noflip
	SpriteDataB	 $00,-$10,$0a5,colpal2,pri3,noflip
	SpriteDataB	 $08,-$10,$0a6,colpal2,pri3,noflip

	SpriteDataB	-$18,-$08,$0a7,colpal2,pri3,noflip
	SpriteDataB	-$10,-$08,$0a8,colpal2,pri3,noflip
	SpriteDataB	-$08,-$08,$0a9,colpal2,pri3,noflip
	SpriteDataB	 $00,-$08,$0aa,colpal2,pri3,noflip
	SpriteDataB	 $08,-$08,$0ab,colpal2,pri3,noflip

	SpriteDataB	-$18,$000,$0ac,colpal2,pri3,noflip
	SpriteDataB	-$10,$000,$0ad,colpal2,pri3,noflip
	SpriteDataB	-$08,$000,$0ae,colpal2,pri3,noflip
	SpriteDataB	 $00,$000,$0af,colpal2,pri3,noflip
	SpriteDataB	 $08,$000,$0b0,colpal2,pri3,noflip

	SpriteDataB	-$10,$008,$0b1,colpal2,pri3,noflip
	SpriteDataB	-$08,$008,$0b2,colpal2,pri3,noflip
	SpriteDataB	 $00,$008,$0b3,colpal2,pri3,noflip
	SpriteDataB	 $08,$008,$0b4,colpal2,pri3,noflip
FoxYokoPTEnd
;---------------------------------------------------------------------------
FalcoYokoPT
	km_datacnt	W,FalcoYokoPT
	SpriteDataB	-$08,-$18,$0d0,colpal2,pri3,noflip
	SpriteDataB	 $00,-$18,$0d1,colpal2,pri3,noflip
	SpriteDataB	 $08,-$18,$0d2,colpal2,pri3,noflip

	SpriteDataB	-$10,-$10,$0d3,colpal2,pri3,noflip
	SpriteDataB	-$08,-$10,$0d4,colpal2,pri3,noflip
	SpriteDataB	 $00,-$10,$0d5,colpal2,pri3,noflip
	SpriteDataB	 $08,-$10,$0d6,colpal2,pri3,noflip

	SpriteDataB	-$10,-$08,$0d7,colpal2,pri3,noflip
	SpriteDataB	-$08,-$08,$0d8,colpal2,pri3,noflip
	SpriteDataB	 $00,-$08,$0d9,colpal2,pri3,noflip
	SpriteDataB	 $08,-$08,$0da,colpal2,pri3,noflip

	SpriteDataB	-$10,$000,$0db,colpal2,pri3,noflip
	SpriteDataB	-$08,$000,$0dc,colpal2,pri3,noflip
	SpriteDataB	 $00,$000,$0dd,colpal2,pri3,noflip
	SpriteDataB	 $08,$000,$0de,colpal2,pri3,noflip

	SpriteDataB	-$10,$008,$0df,colpal2,pri3,noflip
	SpriteDataB	-$08,$008,$0e0,colpal2,pri3,noflip
	SpriteDataB	 $00,$008,$0e1,colpal2,pri3,noflip
	SpriteDataB	 $08,$008,$0e2,colpal2,pri3,noflip
FalcoYokoPTEnd
;--------------------------------------------------------------------------
PeppyYokoPT
	km_datacnt	W,PeppyYokoPT
	SpriteDataB	-$18,-$18,$100,colpal2,pri3,noflip
	SpriteDataB	-$10,-$18,$101,colpal2,pri3,noflip
	SpriteDataB	-$08,-$18,$102,colpal2,pri3,noflip
	SpriteDataB	 $00,-$18,$103,colpal2,pri3,noflip
	SpriteDataB	 $08,-$18,$104,colpal2,pri3,noflip

	SpriteDataB	-$18,-$10,$105,colpal2,pri3,noflip
	SpriteDataB	-$10,-$10,$106,colpal2,pri3,noflip
	SpriteDataB	-$08,-$10,$107,colpal2,pri3,noflip
	SpriteDataB	 $00,-$10,$108,colpal2,pri3,noflip
	SpriteDataB	 $08,-$10,$109,colpal2,pri3,noflip

	SpriteDataB	-$10,-$08,$10a,colpal2,pri3,noflip
	SpriteDataB	-$08,-$08,$10b,colpal2,pri3,noflip
	SpriteDataB	 $00,-$08,$10c,colpal2,pri3,noflip
	SpriteDataB	 $08,-$08,$10d,colpal2,pri3,noflip

	SpriteDataB	-$10,$000,$10e,colpal2,pri3,noflip
	SpriteDataB	-$08,$000,$10f,colpal2,pri3,noflip
	SpriteDataB	 $00,$000,$110,colpal2,pri3,noflip
	SpriteDataB	 $08,$000,$111,colpal2,pri3,noflip

	SpriteDataB	 -$10,$008,$112,colpal2,pri3,noflip
	SpriteDataB	 -$08,$008,$113,colpal2,pri3,noflip
	SpriteDataB	  $00,$008,$114,colpal2,pri3,noflip
	SpriteDataB	  $08,$008,$115,colpal2,pri3,noflip
PeppyYokoPTEnd
;--------------------------------------------------------------------------
SlippyYokoPT
	km_datacnt	W,SlippyYokoPT

	SpriteDataB	-$10,-$10,$130,colpal2,pri3,noflip
	SpriteDataB	-$08,-$10,$131,colpal2,pri3,noflip
	SpriteDataB	 $00,-$10,$132,colpal2,pri3,noflip

	SpriteDataB	-$18,-$08,$133,colpal2,pri3,noflip
	SpriteDataB	-$10,-$08,$134,colpal2,pri3,noflip
	SpriteDataB	-$08,-$08,$135,colpal2,pri3,noflip
	SpriteDataB	 $00,-$08,$136,colpal2,pri3,noflip

	SpriteDataB	-$18,$000,$137,colpal2,pri3,noflip
	SpriteDataB	-$10,$000,$138,colpal2,pri3,noflip
	SpriteDataB	-$08,$000,$139,colpal2,pri3,noflip
	SpriteDataB	 $00,$000,$13a,colpal2,pri3,noflip
	SpriteDataB	 $08,$000,$13b,colpal2,pri3,noflip

	SpriteDataB	-$10,$008,$13c,colpal2,pri3,noflip
	SpriteDataB	-$08,$008,$13d,colpal2,pri3,noflip
	SpriteDataB	 $00,$008,$13e,colpal2,pri3,noflip
	SpriteDataB	 $08,$008,$13f,colpal2,pri3,noflip
SlippyYokoPTEnd
;---------------------------------------------------------------------------
LadyYokoPT
	km_datacnt	W,LadyYokoPT
	SpriteDataB	-$10,-$18,$160,colpal2,pri3,noflip
	SpriteDataB	-$08,-$18,$161,colpal2,pri3,noflip
	SpriteDataB	 $00,-$18,$162,colpal2,pri3,noflip
	SpriteDataB	 $08,-$18,$163,colpal2,pri3,noflip

	SpriteDataB	-$10,-$10,$164,colpal2,pri3,noflip
	SpriteDataB	-$08,-$10,$165,colpal2,pri3,noflip
	SpriteDataB	 $00,-$10,$166,colpal2,pri3,noflip
	SpriteDataB	 $08,-$10,$167,colpal2,pri3,noflip

	SpriteDataB	-$18,-$08,$168,colpal2,pri3,noflip
	SpriteDataB	-$10,-$08,$169,colpal2,pri3,noflip
	SpriteDataB	-$08,-$08,$16a,colpal2,pri3,noflip
	SpriteDataB	 $00,-$08,$16b,colpal2,pri3,noflip
	SpriteDataB	 $08,-$08,$16c,colpal2,pri3,noflip

	SpriteDataB	-$18,$000,$16d,colpal2,pri3,noflip
	SpriteDataB	-$10,$000,$16e,colpal2,pri3,noflip
	SpriteDataB	-$08,$000,$16f,colpal2,pri3,noflip
	SpriteDataB	 $00,$000,$170,colpal2,pri3,noflip
	SpriteDataB	 $08,$000,$171,colpal2,pri3,noflip

	SpriteDataB	-$10,$008,$172,colpal2,pri3,noflip
	SpriteDataB	-$08,$008,$173,colpal2,pri3,noflip
	SpriteDataB	 $00,$008,$174,colpal2,pri3,noflip
	SpriteDataB	 $08,$008,$175,colpal2,pri3,noflip
LadyYokoPTEnd
;---------------------------------------------------------------------------
BossYokoPT
	km_datacnt	W,BossYokoPT
	SpriteDataB	-$08,-$18,$190,colpal2,pri3,noflip
	SpriteDataB	 $00,-$18,$191,colpal2,pri3,noflip
	SpriteDataB	 $08,-$18,$192,colpal2,pri3,noflip

	SpriteDataB	-$10,-$10,$193,colpal2,pri3,noflip
	SpriteDataB	-$08,-$10,$194,colpal2,pri3,noflip
	SpriteDataB	 $00,-$10,$195,colpal2,pri3,noflip
	SpriteDataB	 $08,-$10,$196,colpal2,pri3,noflip

	SpriteDataB	-$10,-$08,$197,colpal2,pri3,noflip
	SpriteDataB	-$08,-$08,$198,colpal2,pri3,noflip
	SpriteDataB	 $00,-$08,$199,colpal2,pri3,noflip
	SpriteDataB	 $08,-$08,$19a,colpal2,pri3,noflip

	SpriteDataB	-$18,$000,$19b,colpal2,pri3,noflip
	SpriteDataB	-$10,$000,$19c,colpal2,pri3,noflip
	SpriteDataB	-$08,$000,$19d,colpal2,pri3,noflip
	SpriteDataB	 $00,$000,$19e,colpal2,pri3,noflip
	SpriteDataB	 $08,$000,$19f,colpal2,pri3,noflip

	SpriteDataB	-$18,$008,$1a0,colpal2,pri3,noflip
	SpriteDataB	-$10,$008,$1a1,colpal2,pri3,noflip
	SpriteDataB	-$08,$008,$1a2,colpal2,pri3,noflip
	SpriteDataB	 $00,$008,$1a3,colpal2,pri3,noflip
	SpriteDataB	 $08,$008,$1a4,colpal2,pri3,noflip
BossYokoPTEnd

;=========================================================================
;*
;=========================================================================
ArwingOAMData
	dw	(FFArwing-ArwingOAMData)&WM
	dw	(FFArwing-ArwingOAMData)&WM
	dw	(SPArwing-ArwingOAMData)&WM
	dw	(SPArwing-ArwingOAMData)&WM
	dw	(GGArwing-ArwingOAMData)&WM
	dw	(GGArwing-ArwingOAMData)&WM
;--------------------------------------------------------------------
FFArwing
	km_datacnt	W,FFArwing
	SpriteDataB	-$20,-$10,$022,colpal4,pri3,noflip
	SpriteDataB	-$10,-$10,$024,colpal4,pri3,noflip
	SpriteDataB	 $00,-$10,$026,colpal4,pri3,noflip
	SpriteDataB	 $10,-$10,$028,colpal4,pri3,noflip

	SpriteDataB	-$30,$000,$02a,colpal4,pri3,noflip
	SpriteDataB	-$20,$000,$02c,colpal4,pri3,noflip
	SpriteDataB	-$10,$000,$02e,colpal4,pri3,noflip
	SpriteDataB	 $00,$000,$040,colpal4,pri3,noflip
	SpriteDataB	 $10,$000,$042,colpal4,pri3,noflip
FFArwingEND
;--------------------------------------------------------------------
GGArwing
	km_datacnt	W,GGArwing
	SpriteDataB	-$20,-$10,$044,colpal4,pri3,noflip
	SpriteDataB	-$10,-$10,$046,colpal4,pri3,noflip
	SpriteDataB	 $00,-$10,$048,colpal4,pri3,noflip
	SpriteDataB	 $10,-$10,$04a,colpal4,pri3,noflip

	SpriteDataB	-$30,$000,$04c,colpal4,pri3,noflip
	SpriteDataB	-$20,$000,$04e,colpal4,pri3,noflip
	SpriteDataB	-$10,$000,$060,colpal4,pri3,noflip
	SpriteDataB	 $00,$000,$062,colpal4,pri3,noflip
	SpriteDataB	 $10,$000,$064,colpal4,pri3,noflip
GGArwingEND
;--------------------------------------------------------------------
SPArwing
	km_datacnt	W,SPArwing
	SpriteDataB	-$30,-$10,$066,colpal4,pri3,noflip
	SpriteDataB	-$20,-$10,$068,colpal4,pri3,noflip
	SpriteDataB	-$10,-$10,$06a,colpal4,pri3,noflip
	SpriteDataB	 $00,-$10,$06c,colpal4,pri3,noflip
	SpriteDataB	 $10,-$10,$06e,colpal4,pri3,noflip

	SpriteDataB	-$30,$000,$080,colpal4,pri3,noflip
	SpriteDataB	-$20,$000,$082,colpal4,pri3,noflip
	SpriteDataB	-$10,$000,$084,colpal4,pri3,noflip
	SpriteDataB	 $00,$000,$086,colpal4,pri3,noflip
	SpriteDataB	 $10,$000,$088,colpal4,pri3,noflip
SPArwingEND
;--------------------------------------------------------------------
	IFEQ	1
testx	equ	0
testy	equ	0
testchr	equ	0
TestSprData
	km_datacnt	W,TestSprData

	SpriteDataB	testx+$1b*8,testy+$07*8,testchr+$00,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$07*8,testchr+$01,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$07*8,testchr+$02,colpal2,pri3,noflip
	SpriteDataB	testx+$1b*8,testy+$08*8,testchr+$10,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$08*8,testchr+$11,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$08*8,testchr+$12,colpal2,pri3,noflip

	SpriteDataB	testx+$1b*8,testy+$0c*8,testchr+$03,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$0c*8,testchr+$04,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$0c*8,testchr+$05,colpal2,pri3,noflip
	SpriteDataB	testx+$1b*8,testy+$0d*8,testchr+$13,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$0d*8,testchr+$14,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$0d*8,testchr+$15,colpal2,pri3,noflip

	SpriteDataB	testx+$1b*8,testy+$11*8,testchr+$06,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$11*8,testchr+$07,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$11*8,testchr+$08,colpal2,pri3,noflip
	SpriteDataB	testx+$1b*8,testy+$12*8,testchr+$16,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$12*8,testchr+$17,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$12*8,testchr+$18,colpal2,pri3,noflip

	SpriteDataB	testx+$1b*8,testy+$16*8,testchr+$09,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$16*8,testchr+$0a,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$16*8,testchr+$0b,colpal2,pri3,noflip
	SpriteDataB	testx+$1b*8,testy+$17*8,testchr+$19,colpal2,pri3,noflip
	SpriteDataB	testx+$1c*8,testy+$17*8,testchr+$1a,colpal2,pri3,noflip
	SpriteDataB	testx+$1d*8,testy+$17*8,testchr+$1b,colpal2,pri3,noflip

TestSprDataEnd
	ENDC
;---------------------------------------------------------------------
SprHPTable
	db	$0e	;0/4	;empty
	db	$0d	;1/4	; |
	db	$0c	;2/4	; |
	db	$0c	;3/4	; |
	db	$0b	;4/4	;full
SprModoreData
	km_datacnt	W,SprModoreData

	SpriteDataB	RetMarkoffX-$28,RetMarkoffY+0,$08,colpal0,pri2,noflip
	SpriteDataB	RetMarkoffX-$28,RetMarkoffY+8,$08,colpal0,pri2,yflip
	SpriteDataB	RetMarkoffX-$20,RetMarkoffY+0,$08,colpal0,pri2,noflip
	SpriteDataB	RetMarkoffX-$20,RetMarkoffY+8,$08,colpal0,pri2,yflip

	SpriteDataB	RetMarkoffX+$30,RetMarkoffY+0,$08,colpal0,pri2,xflip
	SpriteDataB	RetMarkoffX+$30,RetMarkoffY+8,$08,colpal0,pri2,xyflip
	SpriteDataB	RetMarkoffX+$28,RetMarkoffY+0,$08,colpal0,pri2,xflip
	SpriteDataB	RetMarkoffX+$28,RetMarkoffY+8,$08,colpal0,pri2,xyflip
SprModoreDataEnd

	ENDC
;=============================================================================
;*									*
;*			BATTLE PLAYER SELECT				*
;*									*
;=============================================================================
;=============================================================================
;*									*
;*			BATTLE FIELD SELECT				*
;*									*
;=============================================================================
sprOKoffx	equ	$17*8+6
sprOKoffy	equ	7*8

;patern 0
bfs_sprOKchrval
	km_datacnt	B,bfs_sprOKchrval
bfs_sprOKchrdata
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+0*8,$df,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+0*8,$df,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+0*8,$df,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+1*8,$df,colpal3,pri3,yflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+1*8,$df,colpal3,pri3,yflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+1*8,$df,colpal3,pri3,yflip
bfs_sprOKchrvalEND
;patern 1
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+0*8,$ce,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+0*8,$cf,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+0*8,$ce,colpal3,pri3,xflip
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+1*8,$ce,colpal3,pri3,yflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+1*8,$cf,colpal3,pri3,yflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+1*8,$ce,colpal3,pri3,xyflip
;patern 2
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+0*8,$d6,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+0*8,$d7,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+0*8,$d8,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+1*8,$e6,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+1*8,$e7,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+1*8,$e8,colpal3,pri3,noflip
;patern 3
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+0*8,$d9,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+0*8,$da,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+0*8,$db,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+1*8,$dc,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+1*8,$dd,colpal3,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+1*8,$de,colpal3,pri3,noflip
;patern 4
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+0*8,$d9,colpal2,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+0*8,$da,colpal2,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+0*8,$db,colpal2,pri3,noflip
	SpriteDataB	sprOKoffx+0*8,sprOKoffy+1*8,$dc,colpal2,pri3,noflip
	SpriteDataB	sprOKoffx+1*8,sprOKoffy+1*8,$dd,colpal2,pri3,noflip
	SpriteDataB	sprOKoffx+2*8,sprOKoffy+1*8,$de,colpal2,pri3,noflip
;=====================================================================
;*								*
;*			Battle Round Display			*
;*								*
;=====================================================================
RoundData
	km_datacnt	W,RoundData
	SpriteDataW	$8*8,4*8,gamemoji_r,colpal1,pri3,noflip
	SpriteDataW	$9*8,4*8,gamemoji_o,colpal1,pri3,noflip
	SpriteDataW	$a*8,4*8,gamemoji_u,colpal1,pri3,noflip
	SpriteDataW	$b*8,4*8,gamemoji_n,colpal1,pri3,noflip
	SpriteDataW	$c*8,4*8,gamemoji_d,colpal1,pri3,noflip
RoundDataEnd
;--------------------------------------------------------------------------------------------
RoundOverData
	km_datacnt	W,RoundOverData
	SpriteDataW	$0a*8,1*8+2,gamemoji_p,colpal1,pri3,noflip

	SpriteDataW	$0c*8,1*8+2,gamemoji_s,colpal1,pri3,noflip
	SpriteDataW	$0d*8,1*8+2,gamemoji_c,colpal1,pri3,noflip
	SpriteDataW	$0e*8,1*8+2,gamemoji_o,colpal1,pri3,noflip
	SpriteDataW	$0f*8,1*8+2,gamemoji_r,colpal1,pri3,noflip
	SpriteDataW	$10*8,1*8+2,gamemoji_e,colpal1,pri3,noflip

	SpriteDataW	$03*8,4*8+0,gamemoji_b,colpal2,pri3,noflip
	SpriteDataW	$04*8,4*8+0,gamemoji_a,colpal2,pri3,noflip
	SpriteDataW	$05*8,4*8+0,gamemoji_s,colpal2,pri3,noflip
	SpriteDataW	$06*8,4*8+0,gamemoji_i,colpal2,pri3,noflip
	SpriteDataW	$07*8,4*8+0,gamemoji_c,colpal2,pri3,noflip

	SpriteDataW	$03*8,5*8+4,gamemoji_e,colpal2,pri3,noflip
	SpriteDataW	$04*8,5*8+4,gamemoji_x,colpal2,pri3,noflip
	SpriteDataW	$05*8,5*8+4,gamemoji_t,colpal2,pri3,noflip
	SpriteDataW	$06*8,5*8+4,gamemoji_r,colpal2,pri3,noflip
	SpriteDataW	$07*8,5*8+4,gamemoji_a,colpal2,pri3,noflip

	SpriteDataW	$03*8,7*8+0,gamemoji_p,colpal2,pri3,noflip
	SpriteDataW	$04*8,7*8+0,gamemoji_e,colpal2,pri3,noflip
	SpriteDataW	$05*8,7*8+0,gamemoji_n,colpal2,pri3,noflip
	SpriteDataW	$06*8,7*8+0,gamemoji_a,colpal2,pri3,noflip
	SpriteDataW	$07*8,7*8+0,gamemoji_l,colpal2,pri3,noflip
	SpriteDataW	$08*8,7*8+0,gamemoji_t,colpal2,pri3,noflip
	SpriteDataW	$09*8,7*8+0,gamemoji_y,colpal2,pri3,noflip
RoundOverDataEND
;----------------------------------------------------------------------------------------
Totaloffx	equ	$18
Totaloffy	equ	$48

TotalData
	km_datacnt	W,TotalData
	SpriteDataW	totaloffx+$00,totaloffy+$00,gamemojiBU_t,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$00,totaloffy+$08,gamemojiBD_t,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$08,totaloffy+$00,gamemojiBU_o,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$08,totaloffy+$08,gamemojiBD_o,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$10,totaloffy+$00,gamemojiBU_t,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$10,totaloffy+$08,gamemojiBD_t,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$18,totaloffy+$00,gamemojiBU_a,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$18,totaloffy+$08,gamemojiBD_a,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$20,totaloffy+$00,gamemojiBU_l,colpal0,pri3,noflip
	SpriteDataW	totaloffx+$20,totaloffy+$08,gamemojiBD_l,colpal0,pri3,noflip
TotalDataEnd
;=====================================================================
;*								*
;*			MISSION					*
;=====================================================================
;;;;;;;	sprites value
;;;;;;;	SpriteDataW	x,y,chr,col,pri,flp

SpriteMaskData
	km_datacnt	W,SpriteMaskData
;* hIdari tate *
_sprbasex = 0
_sprbasey = 0
	SpriteDataW	_sprbasex+$17*8,_sprbasey+5*8,sprmask,colpal0,pri0,noflip
	SpriteDataW	_sprbasex+$17*8,_sprbasey+7*8,sprmask,colpal0,pri0,noflip

;* shita yoko *
_sprbasex = -4
_sprbasey = 0
	SpriteDataW	_sprbasex+$19*8,_sprbasey+7*8,sprmask,colpal0,pri0,noflip
	SpriteDataW	_sprbasex+$1b*8,_sprbasey+7*8,sprmask,colpal0,pri0,noflip
	SpriteDataW	_sprbasex+$1d*8,_sprbasey+7*8,sprmask,colpal0,pri0,noflip
	SpriteDataW	_sprbasex+$1e*8,_sprbasey+7*8,sprmask,colpal0,pri0,noflip
;* migi tate *
_sprbasex = 0
_sprbasey = 0
	SpriteDataW	_sprbasex+$1e*8,_sprbasey+5*8,sprmask,colpal0,pri0,noflip
	SpriteDataW	_sprbasex+$1e*8,_sprbasey+3*8,sprmask,colpal0,pri0,noflip
	SpriteDataW	_sprbasex+$1e*8,_sprbasey+1*8,sprmask,colpal0,pri0,noflip
SpriteMaskDataEnd

;( AMI DATA )
	ifeq	1
SpriteRadarMapData
_sprbasex = -1
_sprbasey = 0
	km_datacnt	W,SpriteRadarMapData
	SpriteDataW	_sprbasex+$19*8,_sprbasey+2*8,$40,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$1B*8,_sprbasey+2*8,$40,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$1D*8,_sprbasey+2*8,$46,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$19*8,_sprbasey+4*8,$40,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$1B*8,_sprbasey+4*8,$40,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$1D*8,_sprbasey+4*8,$46,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$19*8,_sprbasey+6*8,$42,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$1B*8,_sprbasey+6*8,$42,colpal5,pri3,noflip
	SpriteDataW	_sprbasex+$1D*8,_sprbasey+6*8,$44,colpal5,pri3,noflip
SpriteRadarMapDataEnd
	endc

SpritesMissionData
_sprbasex = 0
_sprbasey = 2
	km_datacnt	W,SpritesMissionData
;---- Score ----
	SpriteDataW	_sprbasex+$2*8-1,_sprbasey+2*8,$4b,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$3*8-1,_sprbasey+2*8,$4c,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$4*8-1,_sprbasey+2*8,$4d,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$5*8-1,_sprbasey+2*8,$4e,colpal0,pri3,noflip

	ifeq	1
	SpriteDataW	_sprbasex+$2*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$3*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$4*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$5*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$6*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$7*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	endc
;---- Gold -----
	SpriteDataW	_sprbasex+$c*8-1,_sprbasey+2*8,$58,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$d*8-1,_sprbasey+2*8,$59,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$e*8-1,_sprbasey+2*8,$5a,colpal0,pri3,noflip

	ifeq	1
	SpriteDataW	_sprbasex+$c*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$d*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$e*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$f*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$10*8-1,_sprbasey+3*8,$30,colpal0,pri3,noflip
	endc
;---- Item ---
	IFEQ	1
_sprbasex = 0
_sprbasey = -2
;* BOM *
	SpriteDataW	_sprbasex+$2*8-1,_sprbasey+$18*8,$0a,colpal2,pri3,noflip
	SpriteDataW	_sprbasex+$3*8-1,_sprbasey+$18*8,$0b,colpal2,pri3,noflip
	SpriteDataW	_sprbasex+$2*8-1,_sprbasey+$19*8,$1a,colpal2,pri3,noflip
	SpriteDataW	_sprbasex+$3*8-1,_sprbasey+$19*8,$1b,colpal2,pri3,noflip

	SpriteDataW	_sprbasex+$4*8-1,_sprbasey+$19*8,$3a,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$5*8-1,_sprbasey+$19*8,$33,colpal0,pri3,noflip
	ENDC
;------ HP ------
	ifeq	1
	SpriteDataW	_sprbasex+$19*8-1,_sprbasey+$18*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1a*8-1,_sprbasey+$18*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1b*8-1,_sprbasey+$18*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1c*8-1,_sprbasey+$18*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1d*8-1,_sprbasey+$18*8,$ab,colpal0,pri3,noflip

	SpriteDataW	_sprbasex+$19*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1a*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1b*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1c*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1d*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	endc
SpritesMissionDataEnd

SpritesBossMeterData
_sprbasex = 0
_sprbasey = 0
	IFEQ	1
	km_datacnt	W,SpritesBossMeterData
	SpriteDataW	_sprbasex+$1d*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1d*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1d*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	SpriteDataW	_sprbasex+$1d*8-1,_sprbasey+$19*8,$ab,colpal0,pri3,noflip
	ENDC
SpritesBossMeterDataEnd
;=====================================================================
;*			Game Timer				*
;=====================================================================
SprGameTimerWaku
	IFEQ	1
;;;;;;;	sprites value
;;;;;;;	SpriteDataW	x,y,chr,col,pri,flp
	dw	16*4
	SpriteData	SprTmWkOffX+0*8,SprTmWkOffY+0*8,SprTmWkChr+0,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+1*8,SprTmWkOffY+0*8,SprTmWkChr+1,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+2*8,SprTmWkOffY+0*8,SprTmWkChr+2,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+3*8,SprTmWkOffY+0*8,SprTmWkChr+2,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+4*8,SprTmWkOffY+0*8,SprTmWkChr+2,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+5*8,SprTmWkOffY+0*8,SprTmWkChr+2,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+6*8,SprTmWkOffY+0*8,SprTmWkChr+3,colpal7,pri3,noflip

	SpriteData	SprTmWkOffX+0*8,SprTmWkOffY+1*8,SprTmWkChr+$14,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+6*8,SprTmWkOffY+1*8,SprTmWkChr+004,colpal7,pri3,noflip

	SpriteData	SprTmWkOffX+0*8,SprTmWkOffY+2*8,SprTmWkChr+$10,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+1*8,SprTmWkOffY+2*8,SprTmWkChr+$11,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+2*8,SprTmWkOffY+2*8,SprTmWkChr+$11,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+3*8,SprTmWkOffY+2*8,SprTmWkChr+$11,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+4*8,SprTmWkOffY+2*8,SprTmWkChr+$11,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+5*8,SprTmWkOffY+2*8,SprTmWkChr+$12,colpal7,pri3,noflip
	SpriteData	SprTmWkOffX+6*8,SprTmWkOffY+2*8,SprTmWkChr+$13,colpal7,pri3,noflip
	ENDC

;=====================================================================
;*			Time Up					*
;=====================================================================
TimeUPData
timeupbasex	equ	$06*8
timeupbasey	equ	$04*8
	km_datacnt	W,TimeUpData

	ifeq	0
	SpriteDataW	timeupbasex+$00*8,timeupbasey+0*8,gamemoji_t,colpal1,pri3,noflip
	SpriteDataW	timeupbasex+$01*8,timeupbasey+0*8,gamemoji_i,colpal1,pri3,noflip
	SpriteDataW	timeupbasex+$02*8,timeupbasey+0*8,gamemoji_m,colpal1,pri3,noflip
	SpriteDataW	timeupbasex+$03*8,timeupbasey+0*8,gamemoji_e,colpal1,pri3,noflip

	SpriteDataW	timeupbasex+$05*8,timeupbasey+0*8,gamemoji_u,colpal1,pri3,noflip
	SpriteDataW	timeupbasex+$06*8,timeupbasey+0*8,gamemoji_p,colpal1,pri3,noflip

	endc
TimeUpDataEND

;=====================================================================
;*			Pause Mode				*
;=====================================================================
SprRadarMapP1

	IFEQ	1
;---------------------------------------------------------------------
;*			Radar Select Message			*
;---------------------------------------------------------------------
;========= pause message & map========
P1radselmesX	equ	$38
P1radselmesY	equ	$20
P2radselmesX	equ	$68
P2radselmesY	equ	$88

radmeschroff	equ	$82
radselchroff	equ	$a4

PauseMesVal	equ	13*4
PauseMapVal	equ	8*4
PushStarVal	equ	9*4
;---------------------------------------------------------------------
SprRadSelMesP1
;	DW	sporites value
;	DB	SpriteData	x zahyo,y zahyo,character,color,prio,flip
;============ message ================
	dw	PauseMesVal+PauseMapVal
	SpriteData	P1radselmesX+$00,P1radselmesY+$00,radmeschroff+$15,colpal0,pri3,noflip ;S
	SpriteData	P1radselmesX+$08,P1radselmesY+$00,radmeschroff+$04,colpal0,pri3,noflip ;E
	SpriteData	P1radselmesX+$10,P1radselmesY+$00,radmeschroff+$0b,colpal0,pri3,noflip :L
	SpriteData	P1radselmesX+$18,P1radselmesY+$00,radmeschroff+$04,colpal0,pri3,noflip ;E
	SpriteData	P1radselmesX+$20,P1radselmesY+$00,radmeschroff+$02,colpal0,pri3,noflip ;C
	SpriteData	P1radselmesX+$28,P1radselmesY+$00,radmeschroff+$16,colpal0,pri3,noflip ;T

	SpriteData	P1radselmesX+$38,P1radselmesY+$00,radmeschroff+$14,colpal0,pri3,noflip ;R
	SpriteData	P1radselmesX+$40,P1radselmesY+$00,radmeschroff+$00,colpal0,pri3,noflip ;A
	SpriteData	P1radselmesX+$48,P1radselmesY+$00,radmeschroff+$03,colpal0,pri3,noflip ;D
	SpriteData	P1radselmesX+$50,P1radselmesY+$00,radmeschroff+$00,colpal0,pri3,noflip ;A
	SpriteData	P1radselmesX+$58,P1radselmesY+$00,radmeschroff+$14,colpal0,pri3,noflip ;R

	SpriteData	P1radselmesX+$28,P1radselmesY+$1C,radmeschroff+$11,colpal0,pri3,noflip ;O
	SpriteData	P1radselmesX+$30,P1radselmesY+$1C,radmeschroff+$14,colpal0,pri3,noflip ;R
;============== MAP ==============
SprRadarMapP1
	SpriteData	P1radselmesX+$08,P1radselmesY+$10,$80,colpal0,pri3,noflip
	SpriteData	P1radselmesX+$18,P1radselmesY+$10,$80,colpal0,pri3,xflip
	SpriteData	P1radselmesX+$08,P1radselmesY+$20,$80,colpal0,pri3,yflip
	SpriteData	P1radselmesX+$18,P1radselmesY+$20,$80,colpal0,pri3,xyflip
	SpriteData	P1radselmesX+$38,P1radselmesY+$10,$a0,colpal0,pri3,noflip
	SpriteData	P1radselmesX+$48,P1radselmesY+$10,$a0,colpal0,pri3,xflip
	SpriteData	P1radselmesX+$38,P1radselmesY+$20,$a2,colpal0,pri3,noflip
	SpriteData	P1radselmesX+$48,P1radselmesY+$20,$a2,colpal0,pri3,xflip

;============== Push Start =============
SprPushStartP1
	dw	PushStarVal
	SpriteData	P1radselmesX+$08,P1radselmesY+$38,radmeschroff+$12,colpal0,pri3,noflip ;P
	SpriteData	P1radselmesX+$10,P1radselmesY+$38,radmeschroff+$17,colpal0,pri3,noflip ;U
	SpriteData	P1radselmesX+$18,P1radselmesY+$38,radmeschroff+$15,colpal0,pri3,noflip ;S
	SpriteData	P1radselmesX+$20,P1radselmesY+$38,radmeschroff+$07,colpal0,pri3,noflip ;H

	SpriteData	P1radselmesX+$30,P1radselmesY+$38,radmeschroff+$15,colpal0,pri3,noflip ;S
	SpriteData	P1radselmesX+$38,P1radselmesY+$38,radmeschroff+$16,colpal0,pri3,noflip ;T
	SpriteData	P1radselmesX+$40,P1radselmesY+$38,radmeschroff+$00,colpal0,pri3,noflip ;A
	SpriteData	P1radselmesX+$48,P1radselmesY+$38,radmeschroff+$14,colpal0,pri3,noflip ;R
	SpriteData	P1radselmesX+$50,P1radselmesY+$38,radmeschroff+$16,colpal0,pri3,noflip ;T
;============== Select Waku ============
SprRadSelWakuP1
	dw	4
	SpriteData	P1radselmesX+$08,P1radselmesY+$10,radselchroff+$00,colpal0,pri3,noflip
	SpriteData	P1radselmesX+$18,P1radselmesY+$10,radselchroff+$00,colpal0,pri3,xflip
	SpriteData	P1radselmesX+$08,P1radselmesY+$20,radselchroff+$00,colpal0,pri3,yflip
	SpriteData	P1radselmesX+$18,P1radselmesY+$20,radselchroff+$00,colpal0,pri3,xyflip
;========================================================================================================
;========================================================================================================
SprRadSelMesp2
;	sporites value
;	SpriteData	x zahyo,y zahyo,character,color,prio,flip

	dw	21*4
	SpriteData	p2radselmesX+$00,p2radselmesY+$00,radmeschroff+$15,colpal0,pri3,noflip ;S
	SpriteData	p2radselmesX+$08,p2radselmesY+$00,radmeschroff+$04,colpal0,pri3,noflip ;E
	SpriteData	p2radselmesX+$10,p2radselmesY+$00,radmeschroff+$0b,colpal0,pri3,noflip :L
	SpriteData	p2radselmesX+$18,p2radselmesY+$00,radmeschroff+$04,colpal0,pri3,noflip ;E
	SpriteData	p2radselmesX+$20,p2radselmesY+$00,radmeschroff+$02,colpal0,pri3,noflip ;C
	SpriteData	p2radselmesX+$28,p2radselmesY+$00,radmeschroff+$16,colpal0,pri3,noflip ;T

	SpriteData	p2radselmesX+$38,p2radselmesY+$00,radmeschroff+$14,colpal0,pri3,noflip ;R
	SpriteData	p2radselmesX+$40,p2radselmesY+$00,radmeschroff+$00,colpal0,pri3,noflip ;A
	SpriteData	p2radselmesX+$48,p2radselmesY+$00,radmeschroff+$03,colpal0,pri3,noflip ;D
	SpriteData	p2radselmesX+$50,p2radselmesY+$00,radmeschroff+$00,colpal0,pri3,noflip ;A
	SpriteData	p2radselmesX+$58,p2radselmesY+$00,radmeschroff+$14,colpal0,pri3,noflip ;R

	SpriteData	p2radselmesX+$28,p2radselmesY+$1C,radmeschroff+$11,colpal0,pri3,noflip ;O
	SpriteData	p2radselmesX+$30,p2radselmesY+$1C,radmeschroff+$14,colpal0,pri3,noflip ;R
;============== MAP ==============
	SpriteData	P2radselmesX+$08,P2radselmesY+$10,$80,colpal0,pri3,noflip
	SpriteData	P2radselmesX+$18,P2radselmesY+$10,$80,colpal0,pri3,xflip
	SpriteData	P2radselmesX+$08,P2radselmesY+$20,$80,colpal0,pri3,yflip
	SpriteData	P2radselmesX+$18,P2radselmesY+$20,$80,colpal0,pri3,xyflip
	SpriteData	P2radselmesX+$38,P2radselmesY+$10,$a0,colpal0,pri3,noflip
	SpriteData	P2radselmesX+$48,P2radselmesY+$10,$a0,colpal0,pri3,xflip
	SpriteData	P2radselmesX+$38,P2radselmesY+$20,$a2,colpal0,pri3,noflip
	SpriteData	P2radselmesX+$48,P2radselmesY+$20,$a2,colpal0,pri3,xflip

;============== Push Start =============
SprPushStartP2
	dw	9*4
	SpriteData	p2radselmesX+$08,p2radselmesY+$38,radmeschroff+$12,colpal0,pri3,noflip ;P
	SpriteData	p2radselmesX+$10,p2radselmesY+$38,radmeschroff+$17,colpal0,pri3,noflip ;U
	SpriteData	p2radselmesX+$18,p2radselmesY+$38,radmeschroff+$15,colpal0,pri3,noflip ;S
	SpriteData	p2radselmesX+$20,p2radselmesY+$38,radmeschroff+$07,colpal0,pri3,noflip ;H

	SpriteData	p2radselmesX+$30,p2radselmesY+$38,radmeschroff+$15,colpal0,pri3,noflip ;S
	SpriteData	p2radselmesX+$38,p2radselmesY+$38,radmeschroff+$16,colpal0,pri3,noflip ;T
	SpriteData	p2radselmesX+$40,p2radselmesY+$38,radmeschroff+$00,colpal0,pri3,noflip ;A
	SpriteData	p2radselmesX+$48,p2radselmesY+$38,radmeschroff+$14,colpal0,pri3,noflip ;R
	SpriteData	p2radselmesX+$50,p2radselmesY+$38,radmeschroff+$16,colpal0,pri3,noflip ;T
;============== Select Waku ============
SprRadSelWakuP2
	dw	4
	SpriteData	P2radselmesX+$08,P2radselmesY+$10,radselchroff+$00,colpal0,pri3,noflip
	SpriteData	P2radselmesX+$18,P2radselmesY+$10,radselchroff+$00,colpal0,pri3,xflip
	SpriteData	P2radselmesX+$08,P2radselmesY+$20,radselchroff+$00,colpal0,pri3,yflip
	SpriteData	P2radselmesX+$18,P2radselmesY+$20,radselchroff+$00,colpal0,pri3,xyflip

	ENDC
;=====================================================================
;*			Normal	Mode				*
;=====================================================================
;---------------------------------------------------------------------
;*		Sprites Sub mode
;---------------------------------------------------------------------
	ifeq	1
SprSubChrMd
	db	1<<1
	db	1<<3
	db	1<<5
	db	1<<7
	endc
;---------------------------------------------------------------------
;*		Player yajirushi data				*
;---------------------------------------------------------------------
	IFEQ	1
yajidata
	SpriteData	$0d8,$020,$00,0,3,0
	SpriteData	$020,$088,$00,0,3,0
	SpriteData	$000,$0f8,$13,0,3,0
	SpriteData	$000,$0f8,$13,0,3,0
yajidata_end
	endc
;---------------------------------------------------------------------
;*		 Area out Waku					*
;---------------------------------------------------------------------
AreaMap1	equ	1	;18432*18432
AreaMap2	equ	1	;
AreaMap3	equ	1	;
;========================== Map Data 1 ===============================
	ifeq	AreaMap1
MapWakuData
;	dw	worldx , worldz
;	dw	sprite character
;0
	dw	1024,1024*9
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

	dw	1024*3,1024*9
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*5,1024*9
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*7,1024*9
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*9,1024*9
	SprChrDataW	WakuChr0,colpal0,pri1,xflip

;1
	dw	1024,1024*7
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*9,1024*7
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;2
	dw	1024,1024*5
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*9,1024*5
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;3
	dw	1024,1024*3
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*9,1024*3
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;4
	dw	1024,1024*1
	SprChrDataW	WakuChr0,colpal0,pri1,yflip

	dw	1024*3,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*5,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*7,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*9,1024*1
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip

;end code
	dw	$8000
	endc
;======================= Map Waku Data 2 =============================
	ifeq	AreaMap2
MapWakuData
;	dw	worldx , worldz
;	dw	sprite character
;0	(1dot.. 256 ,1chr .. 2048) 
	dw	1024,1024*13
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

	dw	1024*3,1024*13
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*5,1024*13
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*7,1024*13
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*9,1024*13
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*11,1024*13
	SprChrDataW	WakuChr1,colpal0,pri1,noflip

	dw	1024*13,1024*13
	SprChrDataW	WakuChr0,colpal0,pri1,xflip

;1
	dw	1024,1024*11
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*13,1024*11
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;2
	dw	1024,1024*9
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*13,1024*9
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;3
	dw	1024,1024*7
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*13,1024*7
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;4
	dw	1024,1024*5
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*13,1024*5
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;5
	dw	1024,1024*3
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	1024*13,1024*3
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
;4
	dw	1024,1024*1
	SprChrDataW	WakuChr0,colpal0,pri1,yflip

	dw	1024*3,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*5,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*7,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*9,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*11,1024*1
	SprChrDataW	WakuChr1,colpal0,pri1,yflip

	dw	1024*13,1024*1
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip

;end code
	dw	$8000

	endc

;=====================================================================
;*			Waku Table				*
;=====================================================================
	IFEQ	AreaMap3

MapWakuTable
	dw	(MapWakuData44-MapWakuData)	;0
	dw	(MapWakuData55-MapWakuData)	;2
	dw	(MapWakuData66-MapWakuData)	;4
	dw	(MapWakuData77-MapWakuData)	;6
	dw	(MapWakuData88-MapWakuData)	;8
;*********************************************************************
;*								*
;*			Map Waku Data				*
;*								*
;*********************************************************************
;**** LABEL ****
rad1dotlength	equ	256>>radscale		;1dot no nagasa
wkhosei		equ	4*rad1dotlength		;waku no hosei (0.5 chr)
radlength		equ	8*rad1dotlength		;1 chr no nagasa
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
;--------------------- REPT LOAD SPACE FILLER DO NOT REMOVE-----------------
;---------------------------------------------------------------------------
;---------------------------------------------------------------------------
MapWakuData
;=====================================================================
;*		FIELD MAP AREA 	(8192*8192)	[4chr * 4chr]	*
;=====================================================================
MapWakuData44
mapchr = 4
wakusx = -(mapchr-1)*8*256/2
wakusy = -(mapchr-1)*8*256/2
;0	(1dot.. 256 ,1chr .. 2048) 
mapoffset = 0
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

mapoffset = mapoffset+1

	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr1,colpal0,pri1,noflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,xflip
;---------------------------------------------------------------------------
;1-2
	REPT	mapchr-2
	dw	wakusx+0,wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	wakusx+2048*(mapchr-1),wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
mapoffset = mapoffset-1
	ENDR
;---------------------------------------------------------------------------
;3
	dw	wakusx+0,wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,yflip
mapoffset = 1

	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*0
	SprChrDataW	WakuChr1,colpal0,pri1,yflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip
;---------------------------------------------------------------------------
;end code
	dw	$8000
MapWakuData44End
;=====================================================================
;*		FIELD MAP AREA 	(10240*10240)	[5chr * 5chr]	*
;=====================================================================
MapWakuData55
	ifeq	radscale
mapchr = 5
wakusx = (-(mapchr-1)*8*256)/2
wakusy = (-(mapchr-1)*8*256)/2

;1	(1dot.. 256 ,1chr .. 2048 (256*8)) 
mapoffset = 0
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

mapoffset = mapoffset+1

	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr1,colpal0,pri1,noflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,xflip
;---------------------------------------------------------------------------
;2 - 4
	REPT	mapchr-1
	dw	wakusx+0,wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	wakusx+2048*(mapchr-1),wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
mapoffset = mapoffset-1
	ENDR
;---------------------------------------------------------------------------
;5
	dw	wakusx+0,wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,yflip
mapoffset = 1
	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*0
	SprChrDataW	WakuChr1,colpal0,pri1,yflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip
;---------------------------------------------------------------------
;end code
	dw	$8000
;---------------------------------------------------------------------
;*		Scale 2 Times Ver				*
;---------------------------------------------------------------------
	elseif

mapchr = 5<<radscale
;wakusx = (-(mapchr-1)*8*256-4*256)/2	;4608
;wakusy = (-(mapchr-1)*8*256-4*256)/2
wakusx = -mapchr*radlength/2+wkhosei
wakusy = wakusx
;1	(1dot.. 128 ,1chr ..  (8dot*128)) 
mapoffset = 0
	dw	wakusx+radlength*mapoffset,wakusy+radlength*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

mapoffset = mapoffset+1
	REPT	mapchr-2
	dw	wakusx+radlength*mapoffset,wakusy+radlength*(mapchr-1)
	SprChrDataW	WakuChr1,colpal0,pri1,noflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+radlength*(mapchr-1),wakusy+radlength*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,xflip
;---------------------------------------------------------------------------
;2 - 9
	REPT	mapoffset	;mapchr-2
	dw	wakusx+0,wakusy+radlength*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	wakusx+radlength*(mapchr-1),wakusy+radlength*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
mapoffset = mapoffset-1
	ENDR
;---------------------------------------------------------------------------
;10
mapoffset = 0
	dw	wakusx+radlength*mapoffset,wakusy
	SprChrDataW	WakuChr0,colpal0,pri1,yflip

mapoffset = mapoffset+1
	REPT	mapchr-2
	dw	wakusx+radlength*mapoffset,wakusy
	SprChrDataW	WakuChr1,colpal0,pri1,yflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+radlength*mapoffset,wakusy
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip
;---------------------------------------------------------------------------
;end code
	dw	$8000
	endc
MapWakuData55End
;=====================================================================
;*		FIELD MAP AREA 	(12288*12288)	[6chr * 6chr]	*
;=====================================================================
MapWakuData66
mapchr = 6
wakusx = -(mapchr-1)*8*256/2
wakusy = -(mapchr-1)*8*256/2
;0	(1dot.. 256 ,1chr .. 2048) 
mapoffset = 0
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

mapoffset = mapoffset+1

	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr1,colpal0,pri1,noflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,xflip
;---------------------------------------------------------------------------
;1 - 4
	REPT	mapchr-1
	dw	wakusx+0,wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	wakusx+2048*(mapchr-1),wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
mapoffset = mapoffset-1
	ENDR
;---------------------------------------------------------------------------
;6
	dw	wakusx+0,wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,yflip
mapoffset = 1
	REPT	mapchr-1
	dw	wakusx+2048*mapoffset,wakusy+2048*0
	SprChrDataW	WakuChr1,colpal0,pri1,yflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip
;---------------------------------------------------------------------------
;end code
	dw	$8000
MapWakuData66End
;=====================================================================
;*		FIELD MAP AREA 	(14336*14336)	[7chr * 7chr]	*
;=====================================================================
MapWakuData77
mapchr = 7
wakusx = -(mapchr-1)*8*256/2
wakusy = -(mapchr-1)*8*256/2
;0	(1dot.. 256 ,1chr .. 2048) 
mapoffset = 0
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

mapoffset = mapoffset+1
	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr1,colpal0,pri1,noflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,xflip
;---------------------------------------------------------------------------
;1 - 5
	REPT	mapchr-1
	dw	wakusx+0,wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	wakusx+2048*(mapchr-1),wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
mapoffset = mapoffset-1
	ENDR
;---------------------------------------------------------------------------
;6
	dw	wakusx+0,wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,yflip
mapoffset = 1
	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*0
	SprChrDataW	WakuChr1,colpal0,pri1,yflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip
;---------------------------------------------------------------------------
;end code
	dw	$8000
MapWakuData77End
;---------------------------------------------------------------------------
;=====================================================================
;*		FIELD MAP AREA 	(14336*14336)	[8chr * 8chr]	*
;=====================================================================
MapWakuData88
mapchr = 8
wakusx = -(mapchr-1)*8*256/2
wakusy = -(mapchr-1)*8*256/2
;0	(1dot.. 256 ,1chr .. 2048) 
mapoffset = 0
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

mapoffset = mapoffset+1
	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr1,colpal0,pri1,noflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+2048*(mapchr-1)
	SprChrDataW	WakuChr0,colpal0,pri1,xflip
;---------------------------------------------------------------------------
;1 - 6
	REPT	mapchr-1
	dw	wakusx+0,wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	wakusx+2048*(mapchr-1),wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,xflip
mapoffset = mapoffset-1
	ENDR
;---------------------------------------------------------------------------
;7
	dw	wakusx+0,wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,yflip
mapoffset = 1
	REPT	mapchr-2
	dw	wakusx+2048*mapoffset,wakusy+2048*0
	SprChrDataW	WakuChr1,colpal0,pri1,yflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*(mapchr-1),wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip
;---------------------------------------------------------------------------
;end code
	dw	$8000
MapWakuData88End
;---------------------------------------------------------------------------

;	dw	worldx , worldz
;	dw	sprite character

	ifeq	1
;0	(1dot.. 256 ,1chr .. 2048) 
	dw	wakusx+2048*0,wakusy+2048*6
	SprChrDataW	WakuChr0,colpal0,pri1,noflip

mapoffset = 1
	REPT	5
	dw	wakusx+2048*mapoffset,wakusy+2048*6
	SprChrDataW	WakuChr1,colpal0,pri1,noflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*6,wakusy+2048*6
	SprChrDataW	WakuChr0,colpal0,pri1,xflip
;---------------------------------------------------------------------------
;1 - 5
mapoffset = 5
	REPT	5
	dw	wakusx+0,wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,noflip

	dw	wakusx+2048*6,wakusy+2048*mapoffset
	SprChrDataW	WakuChr2,colpal0,pri1,xflip

mapoffset = mapoffset-1
	ENDR
;---------------------------------------------------------------------------
;6
	dw	wakusx+0,wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,yflip

mapoffset = 1
	REPT	5
	dw	wakusx+2048*mapoffset,wakusy+2048*0
	SprChrDataW	WakuChr1,colpal0,pri1,yflip
mapoffset = mapoffset+1
	ENDR

	dw	wakusx+2048*6,wakusy+0
	SprChrDataW	WakuChr0,colpal0,pri1,xyflip
;---------------------------------------------------------------------------
;end code
	dw	$8000
	endc
	ENDC
;---------------------------------------------------------------------
;*	World Map (x,y) coordinate Data				*
;---------------------------------------------------------------------
	ifeq	1
;map1pos	equ	$10c8
;MapHosei
;sprites postion,player X pos hosei,player Z pos hosei
;0
	dw	map1pos+$0000,-$3000,-$3000,map1pos+$0008,-$2000,-$3000,map1pos+$0010,-$1000,-$3000
	dw	map1pos+$0018,$00000,-$3000,map1pos+$0020,$01000,-$3000,map1pos+$0028,$02000,-$3000

;1
	dw	map1pos+$0800,$-3000,-$2000,map1pos+$0808,$-2000,-$2000,map1pos+$0810,-$1000,-$2000
	dw	map1pos+$0818,$00000,-$2000,map1pos+$0820,$01000,-$2000,map1pos+$0828,$02000,-$2000

;2
	dw	map1pos+$1000,-$3000,-$1000,map1pos+$1008,-$2000,-$1000,map1pos+$1010,-$1000,-$1000
	dw	map1pos+$1018,$00000,-$1000,map1pos+$1020,$01000,-$1000,map1pos+$1028,$02000,-$1000
;3
	dw	map1pos+$1800,-$3000,$00000,map1pos+$1808,-$2000,$00000,map1pos+$1810,-$1000,$00000
	dw	map1pos+$1818,$00000,$00000,map1pos+$1820,$01000,$00000,map1pos+$1828,$02000,$00000

;4
	dw	map1pos+$2000,-$3000,$01000,map1pos+$2008,-$2000,$01000,map1pos+$2010,-$1000,$01000
	dw	map1pos+$2018,$00000,$01000,map1pos+$2020,$01000,$01000,map1pos+$2028,$02000,$01000

;5
	dw	map1pos+$2800,-$3000,$02000,map1pos+$2808,-$2000,$02000,map1pos+$2810,-$1000,$02000
	dw	map1pos+$2818,$00000,$02000,map1pos+$2820,$01000,$02000,map1pos+$2828,$02000,$02000
;end code
	dw	$ffff
	endc
;---------------------------------------------------------------------
;*	World Map (x,y) coordinate Data				*
;---------------------------------------------------------------------
	ifeq	1
map1Xpos	equ	$c0
map1Zpos	equ	$08
map2Xpos	equ	$08
map2Zpos	equ	$70

RMap1Hosei
;sprites postion,player X pos hosei,player Z pos hosei

;0
	db	map1Xpos+$00,map1Zpos+$00,-$03,-$30,map1Xpos+$08,map1Zpos+$00,-$02,-$30
	db	map1Xpos+$10,map1Zpos+$00,-$01,-$30,map1Xpos+$18,map1Zpos+$00,$000,-$30
	db	map1Xpos+$20,map1Zpos+$00,$001,-$30,map1Xpos+$28,map1Zpos+$00,$002,-$30
;1
	db	map1Xpos+$00,map1Zpos+$08,-$03,-$20,map1Xpos+$08,map1Zpos+$08,-$02,-$20
	db	map1Xpos+$10,map1Zpos+$08,-$01,-$20,map1Xpos+$18,map1Zpos+$08,$000,-$20
	db	map1Xpos+$20,map1Zpos+$08,$001,-$20,map1Xpos+$28,map1Zpos+$08,$002,-$20
;2
	db	map1Xpos+$00,map1Zpos+$10,-$03,-$10,map1Xpos+$08,map1Zpos+$10,-$02,-$10
	db	map1Xpos+$10,map1Zpos+$10,-$01,-$10,map1Xpos+$18,map1Zpos+$10,$000,-$10
	db	map1Xpos+$20,map1Zpos+$10,$001,-$10,map1Xpos+$28,map1Zpos+$10,$002,-$10
;3
	db	map1Xpos+$00,map1Zpos+$18,-$03,$000,map1Xpos+$08,map1Zpos+$18,-$02,$000
	db	map1Xpos+$10,map1Zpos+$18,-$01,$000,map1Xpos+$18,map1Zpos+$18,$000,$000
	db	map1Xpos+$20,map1Zpos+$18,$001,$000,map1Xpos+$28,map1Zpos+$18,$002,$000
;4
	db	map1Xpos+$00,map1Zpos+$20,-$03,$010,map1Xpos+$08,map1Zpos+$20,-$02,$010
	db	map1Xpos+$10,map1Zpos+$20,-$01,$010,map1Xpos+$18,map1Zpos+$20,$000,$010
	db	map1Xpos+$20,map1Zpos+$20,$001,$010,map1Xpos+$28,map1Zpos+$20,$002,$010
;5
	db	map1Xpos+$00,map1Zpos+$28,-$03,$020,map1Xpos+$08,map1Zpos+$28,-$02,$020
	db	map1Xpos+$10,map1Zpos+$28,-$01,$020,map1Xpos+$18,map1Zpos+$28,$000,$020
	db	map1Xpos+$20,map1Zpos+$28,$001,$020,map1Xpos+$28,map1Zpos+$28,$002,$020
;endcode
	db	0
	endc

	ifeq	1
RMap2Hosei
;0
	db	map2Xpos+$00,map2Zpos+$00,-$03,-$30,map2Xpos+$08,map2Zpos+$00,-$02,-$30
	db	map2Xpos+$10,map2Zpos+$00,-$01,-$30,map2Xpos+$18,map2Zpos+$00,$000,-$30
	db	map2Xpos+$20,map2Zpos+$00,$001,-$30,map2Xpos+$28,map2Zpos+$00,$002,-$30
;1
	db	map2Xpos+$00,map2Zpos+$08,-$03,-$20,map2Xpos+$08,map2Zpos+$08,-$02,-$20
	db	map2Xpos+$10,map2Zpos+$08,-$01,-$20,map2Xpos+$18,map2Zpos+$08,$000,-$20
	db	map2Xpos+$20,map2Zpos+$08,$001,-$20,map2Xpos+$28,map2Zpos+$08,$002,-$20
;2
	db	map2Xpos+$00,map2Zpos+$10,-$03,-$10,map2Xpos+$08,map2Zpos+$10,-$02,-$10
	db	map2Xpos+$10,map2Zpos+$10,-$01,-$10,map2Xpos+$18,map2Zpos+$10,$000,-$10
	db	map2Xpos+$20,map2Zpos+$10,$001,-$10,map2Xpos+$28,map2Zpos+$10,$002,-$10
;3
	db	map2Xpos+$00,map2Zpos+$18,-$03,$000,map2Xpos+$08,map2Zpos+$18,-$02,$000
	db	map2Xpos+$10,map2Zpos+$18,-$01,$000,map2Xpos+$18,map2Zpos+$18,$000,$000
	db	map2Xpos+$20,map2Zpos+$18,$001,$000,map2Xpos+$28,map2Zpos+$18,$002,$000
;4
	db	map2Xpos+$00,map2Zpos+$20,-$03,$010,map2Xpos+$08,map2Zpos+$20,-$02,$010
	db	map2Xpos+$10,map2Zpos+$20,-$01,$010,map2Xpos+$18,map2Zpos+$20,$000,$010
	db	map2Xpos+$20,map2Zpos+$20,$001,$010,map2Xpos+$28,map2Zpos+$20,$002,$010
;5
	db	map2Xpos+$00,map2Zpos+$28,-$03,$020,map2Xpos+$08,map2Zpos+$28,-$02,$020
	db	map2Xpos+$10,map2Zpos+$28,-$01,$020,map2Xpos+$18,map2Zpos+$28,$000,$020
	db	map2Xpos+$20,map2Zpos+$28,$001,$020,map2Xpos+$28,map2Zpos+$28,$002,$020
;endcode
	db	0
	endc



	ifeq	1
map1pos	equ	$08c0

MapHosei
;0
	dw	map1pos+$0000,-$03,-$30,map1pos+$0008,-$02,-$30,map1pos+$0010,-$01,-$30
	dw	map1pos+$0018,$000,-$30,map1pos+$0020,$001,-$30,map1pos+$0028,$002,-$30
;1
	dw	map1pos+$0800,$-03,-$20,map1pos+$0808,$-02,-$20,map1pos+$0810,-$01,-$20
	dw	map1pos+$0818,$000,-$20,map1pos+$0820,$001,-$20,map1pos+$0828,$002,-$20

;2
	dw	map1pos+$1000,-$03,-$10,map1pos+$1008,-$02,-$10,map1pos+$1010,-$01,-$10
	dw	map1pos+$1018,$000,-$10,map1pos+$1020,$001,-$10,map1pos+$1028,$002,-$10
;3
	dw	map1pos+$1800,-$03,$000,map1pos+$1808,-$02,$000,map1pos+$1810,-$01,$000
	dw	map1pos+$1818,$000,$000,map1pos+$1820,$001,$000,map1pos+$1828,$002,$000

;4
	dw	map1pos+$2000,-$03,$010,map1pos+$2008,-$02,$010,map1pos+$2010,-$01,$010
	dw	map1pos+$2018,$000,$010,map1pos+$2020,$001,$010,map1pos+$2028,$002,$010

;5
	dw	map1pos+$2800,-$03,$020,map1pos+$2808,-$02,$020,map1pos+$2810,-$01,$020
	dw	map1pos+$2818,$000,$020,map1pos+$2820,$001,$020,map1pos+$2828,$002,$020
;end code
	dw	$ffff
	endc
;-------------------------------------------------------------
;*	World Map Sprites Character Data		*
;-------------------------------------------------------------
map_data
;sprite No,color,prio,flip

	ifeq	1
;0
	SprChrDataB	$19,3,1,0	;0
	SprChrDataB	$19,3,1,0	;1	
	SprChrDataB	$19,3,1,0	;2
	SprChrDataB	$19,3,1,0	;3
	SprChrDataB	$19,3,1,0	;4
	SprChrDataB	$19,3,1,0	;5
	SprChrDataB	$1a,3,1,0	;6
	SprChrDataB	$1b,3,1,0	;7
	SprChrDataB	$1b,3,1,0	;8
	SprChrDataB	$1a,3,1,1	;9
	SprChrDataB	$19,3,1,0	;a
	SprChrDataB	$19,3,1,0	;b
	SprChrDataB	$19,3,1,0	;c
	SprChrDataB	$19,3,1,0	;d
	SprChrDataB	$19,3,1,0	;e
	SprChrDataB	$19,3,1,0	;f

;10
	SprChrDataB	$19,3,1,0	;0
	SprChrDataB	$19,3,1,0	;1	
	SprChrDataB	$1c,3,1,0	;2
	SprChrDataB	$1d,3,1,0	;3
	SprChrDataB	$1d,3,1,0	;4
	SprChrDataB	$1d,3,1,0	;5
	SprChrDataB	$1e,3,1,0	;6
	SprChrDataB	$18,3,1,0	;7
	SprChrDataB	$18,3,1,0	;8
	SprChrDataB	$1e,3,1,1	;9
	SprChrDataB	$1d,3,1,0	;a
	SprChrDataB	$1d,3,1,0	;b
	SprChrDataB	$1d,3,1,0	;c
	SprChrDataB	$1f,3,1,0	;d
	SprChrDataB	$1c,3,1,1	;e
	SprChrDataB	$19,3,1,0	;f
;20
	SprChrDataB	$19,3,1,0	;0
	SprChrDataB	$20,3,1,0	;1	
	SprChrDataB	$21,3,1,0	;2
	SprChrDataB	$18,3,1,0	;3
	SprChrDataB	$18,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$18,3,1,0	;6
	SprChrDataB	$22,3,1,0	;7
	SprChrDataB	$22,3,1,1	;8
	SprChrDataB	$18,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$18,3,1,0	;c
	SprChrDataB	$18,3,1,0	;d
	SprChrDataB	$21,3,1,1	;e
	SprChrDataB	$23,3,1,0	;f
;30
	SprChrDataB	$24,3,1,0	;0
	SprChrDataB	$25,3,1,0	;1	
	SprChrDataB	$21,3,1,0	;2
	SprChrDataB	$18,3,1,0	;3
	SprChrDataB	$18,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$26,3,1,0	;6
	SprChrDataB	$18,3,1,0	;7
	SprChrDataB	$18,3,1,0	;8
	SprChrDataB	$26,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$18,3,1,0	;c
	SprChrDataB	$18,3,1,0	;d
	SprChrDataB	$21,3,1,1	;e
	SprChrDataB	$27,3,1,0	;f

;40
	SprChrDataB	$28,3,1,0	;0
	SprChrDataB	$28,3,1,0	;1	
	SprChrDataB	$21,3,1,0	;2
	SprChrDataB	$18,3,1,0	;3
	SprChrDataB	$18,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$18,3,1,0	;6
	SprChrDataB	$18,3,1,0	;7
	SprChrDataB	$18,3,1,0	;8
	SprChrDataB	$18,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$18,3,1,0	;c
	SprChrDataB	$18,3,1,0	;d
	SprChrDataB	$21,3,1,1	;e
	SprChrDataB	$28,3,1,0	;f
;50
	SprChrDataB	$18,3,1,0	;0
	SprChrDataB	$18,3,1,0	;1	
	SprChrDataB	$29,3,1,0	;2
	SprChrDataB	$29,3,1,1	;3
	SprChrDataB	$18,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$26,3,1,0	;6
	SprChrDataB	$29,3,1,0	;7
	SprChrDataB	$29,3,1,1	;8
	SprChrDataB	$26,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$29,3,1,0	;c
	SprChrDataB	$29,3,1,1	;d
	SprChrDataB	$18,3,1,0	;e
	SprChrDataB	$18,3,1,0	;f

;60
	SprChrDataB	$2a,3,1,0	;0
	SprChrDataB	$18,3,1,0	;1	
	SprChrDataB	$2b,3,1,0	;2
	SprChrDataB	$2b,3,1,1	;3
	SprChrDataB	$18,3,1,0	;4
	SprChrDataB	$2a,3,1,0	;5
	SprChrDataB	$18,3,1,0	;6
	SprChrDataB	$2b,3,1,0	;7
	SprChrDataB	$2b,3,1,1	;8
	SprChrDataB	$18,3,1,0	;9
	SprChrDataB	$2a,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$2b,3,1,0	;c
	SprChrDataB	$2b,3,1,1	;d
	SprChrDataB	$18,3,1,0	;e
	SprChrDataB	$2a,3,1,0	;f
;70
	SprChrDataB	$18,3,1,0	;0
	SprChrDataB	$18,3,1,0	;1	
	SprChrDataB	$29,3,1,0	;2
	SprChrDataB	$29,3,1,1	;3
	SprChrDataB	$18,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$18,3,1,0	;6
	SprChrDataB	$29,3,1,0	;7
	SprChrDataB	$29,3,1,1	;8
	SprChrDataB	$18,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$29,3,1,0	;c
	SprChrDataB	$29,3,1,1	;d
	SprChrDataB	$18,3,1,0	;e
	SprChrDataB	$18,3,1,0	;f
;80
	SprChrDataB	$18,3,1,0	;0
	SprChrDataB	$18,3,1,0	;1	
	SprChrDataB	$18,3,1,0	;2
	SprChrDataB	$18,3,1,0	;3
	SprChrDataB	$26,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$26,3,1,0	;6
	SprChrDataB	$18,3,1,0	;7
	SprChrDataB	$18,3,1,0	;8
	SprChrDataB	$2c,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$26,3,1,0	;b
	SprChrDataB	$18,3,1,0	;c
	SprChrDataB	$18,3,1,0	;d
	SprChrDataB	$18,3,1,0	;e
	SprChrDataB	$18,3,1,0	;f
;90
	SprChrDataB	$18,3,1,0	;0
	SprChrDataB	$2d,3,1,0	;1	
	SprChrDataB	$29,3,1,0	;2
	SprChrDataB	$29,3,1,1	;3
	SprChrDataB	$18,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$18,3,1,0	;6
	SprChrDataB	$29,3,1,0	;7
	SprChrDataB	$29,3,1,1	;8
	SprChrDataB	$18,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$29,3,1,0	;c
	SprChrDataB	$29,3,1,1	;d
	SprChrDataB	$2e,3,1,0	;e
	SprChrDataB	$2f,3,1,0	;f
;a0
	SprChrDataB	$18,3,1,0	;0
	SprChrDataB	$30,3,1,0	;1	
	SprChrDataB	$25,3,1,3	;2
	SprChrDataB	$31,3,1,0	;3
	SprChrDataB	$32,3,1,0	;4
	SprChrDataB	$18,3,1,0	;5
	SprChrDataB	$26,3,1,0	;6
	SprChrDataB	$18,3,1,0	;7
	SprChrDataB	$18,3,1,0	;8
	SprChrDataB	$26,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$26,3,1,0	;b
	SprChrDataB	$18,3,1,0	;c
	SprChrDataB	$18,3,1,0	;d
	SprChrDataB	$33,3,1,0	;e
	SprChrDataB	$34,3,1,0	;f
;b0
	SprChrDataB	$31,3,1,1	;0
	SprChrDataB	$35,3,1,0	;1	
	SprChrDataB	$36,3,1,0	;2
	SprChrDataB	$37,3,1,0	;3
	SprChrDataB	$38,3,1,0	;4
	SprChrDataB	$39,3,1,0	;5
	SprChrDataB	$3a,3,1,0	;6
	SprChrDataB	$18,3,1,0	;7
	SprChrDataB	$18,3,1,0	;8
	SprChrDataB	$3b,3,1,0	;9
	SprChrDataB	$18,3,1,0	;a
	SprChrDataB	$18,3,1,0	;b
	SprChrDataB	$3c,3,1,0	;c
	SprChrDataB	$31,3,1,0	;d
	SprChrDataB	$3d,3,1,0	;e
	SprChrDataB	$18,3,1,0	;f
;c0
	SprChrDataB	$3e,3,1,0	;0
	SprChrDataB	$19,3,1,0	;1	
	SprChrDataB	$3f,3,1,0	;2
	SprChrDataB	$40,3,1,0	;3
	SprChrDataB	$3f,3,1,0	;4
	SprChrDataB	$41,3,1,0	;5
	SprChrDataB	$42,3,1,0	;6
	SprChrDataB	$18,3,1,0	;7
	SprChrDataB	$43,3,1,0	;8
	SprChrDataB	$44,3,1,0	;9
	SprChrDataB	$45,3,1,0	;a
	SprChrDataB	$46,3,1,0	;b
	SprChrDataB	$40,3,1,1	;c
	SprChrDataB	$3f,3,1,1	;d
	SprChrDataB	$47,3,1,0	;e
	SprChrDataB	$48,3,1,0	;f
;d0
	SprChrDataB	$19,3,1,0	;0
	SprChrDataB	$19,3,1,0	;1	
	SprChrDataB	$19,3,1,0	;2
	SprChrDataB	$49,3,1,0	;3
	SprChrDataB	$19,3,1,0	;4
	SprChrDataB	$49,3,1,0	;5
	SprChrDataB	$47,3,1,0	;6
	SprChrDataB	$4a,3,1,0	;7
	SprChrDataB	$4b,3,1,0	;8
	SprChrDataB	$4c,3,1,0	;9
	SprChrDataB	$4d,3,1,0	;a
	SprChrDataB	$4e,3,1,0	;b
	SprChrDataB	$49,3,1,1	;c
	SprChrDataB	$19,3,1,0	;d
	SprChrDataB	$19,3,1,0	;e
	SprChrDataB	$19,3,1,0	;f
;e0
	SprChrDataB	$19,3,1,0	;0
	SprChrDataB	$19,3,1,0	;1	
	SprChrDataB	$3f,3,1,0	;2
	SprChrDataB	$4f,3,1,0	;3
	SprChrDataB	$3f,3,1,0	;4
	SprChrDataB	$50,3,1,0	;5
	SprChrDataB	$19,3,1,0	;6
	SprChrDataB	$47,3,1,0	;7
	SprChrDataB	$4e,3,1,0	;8
	SprChrDataB	$19,3,1,0	;9
	SprChrDataB	$50,3,1,1	;a
	SprChrDataB	$3f,3,1,1	;b
	SprChrDataB	$4f,3,1,1	;c
	SprChrDataB	$3f,3,1,1	;d
	SprChrDataB	$19,3,1,0	;e
	SprChrDataB	$19,3,1,0	;f
;f0
	SprChrDataB	$19,3,1,0	;0
	SprChrDataB	$19,3,1,0	;1	
	SprChrDataB	$19,3,1,0	;2
	SprChrDataB	$49,3,1,0	;3
	SprChrDataB	$19,3,1,0	;4
	SprChrDataB	$49,3,1,0	;5
	SprChrDataB	$19,3,1,0	;6
	SprChrDataB	$19,3,1,0	;7
	SprChrDataB	$19,3,1,0	;8
	SprChrDataB	$19,3,1,0	;9
	SprChrDataB	$49,3,1,1	;a
	SprChrDataB	$19,3,1,0	;b
	SprChrDataB	$49,3,1,1	;c
	SprChrDataB	$19,3,1,0	;d
	SprChrDataB	$19,3,1,0	;e
	SprChrDataB	$19,3,1,0	;f
	endc
;--------------------------------------------------------------------
;========= Playercocjpit data =====
cockpit1X	equ	$30
cockpit1Y	equ	$68
cockpit2X	equ	$60
cockpit2Y	equ	$0d0

;	SpriteData	x zahyo,y zahyo,character,color,prio,flip
	
cockpit_data
	ifeq	1
	SpriteData	cockpit1X+$08,cockpit1Y+$0,$16,3,3,0
	SpriteData	cockpit1X+$10,cockpit1Y+$0,$17,3,3,0
	SpriteData	cockpit1X+$18,cockpit1Y+$0,$18,3,3,0
	SpriteData	cockpit1X+$20,cockpit1Y+$0,$19,3,3,0
	SpriteData	cockpit1X+$28,cockpit1Y+$0,$1a,3,3,0
	SpriteData	cockpit1X+$30,cockpit1Y+$0,$1b,3,3,0
	SpriteData	cockpit1X+$38,cockpit1Y+$0,$1b,3,3,1
	SpriteData	cockpit1X+$40,cockpit1Y+$0,$1a,3,3,1
	SpriteData	cockpit1X+$48,cockpit1Y+$0,$19,3,3,1
	SpriteData	cockpit1X+$50,cockpit1Y+$0,$18,3,3,1
	SpriteData	cockpit1X+$58,cockpit1Y+$0,$17,3,3,1
	SpriteData	cockpit1X+$60,cockpit1Y+$0,$16,3,3,1

	SpriteData	cockpit1X+$00,cockpit1Y+$08,$1c,3,3,0
	SpriteData	cockpit1X+$08,cockpit1Y+$08,$1d,3,3,0
	SpriteData	cockpit1X+$10,cockpit1Y+$08,$1e,3,3,0
	SpriteData	cockpit1X+$18,cockpit1Y+$08,$1f,3,3,0
	SpriteData	cockpit1X+$20,cockpit1Y+$08,$20,3,3,0
	SpriteData	cockpit1X+$28,cockpit1Y+$08,$21,3,3,0
	SpriteData	cockpit1X+$30,cockpit1Y+$08,$22,3,3,0
	SpriteData	cockpit1X+$38,cockpit1Y+$08,$22,3,3,1
	SpriteData	cockpit1X+$40,cockpit1Y+$08,$21,3,3,1
	SpriteData	cockpit1X+$48,cockpit1Y+$08,$20,3,3,1
	SpriteData	cockpit1X+$50,cockpit1Y+$08,$1f,3,3,1
	SpriteData	cockpit1X+$58,cockpit1Y+$08,$1e,3,3,1
	SpriteData	cockpit1X+$60,cockpit1Y+$08,$1d,3,3,1
	SpriteData	cockpit1X+$68,cockpit1Y+$08,$1c,3,3,1

	SpriteData	cockpit2X+$08,cockpit2Y+$0,$16,4,3,0
	SpriteData	cockpit2X+$10,cockpit2Y+$0,$17,4,3,0
	SpriteData	cockpit2X+$18,cockpit2Y+$0,$18,4,3,0
	SpriteData	cockpit2X+$20,cockpit2Y+$0,$19,4,3,0
	SpriteData	cockpit2X+$28,cockpit2Y+$0,$1a,4,3,0
	SpriteData	cockpit2X+$30,cockpit2Y+$0,$1b,4,3,0
	SpriteData	cockpit2X+$38,cockpit2Y+$0,$1b,4,3,1
	SpriteData	cockpit2X+$40,cockpit2Y+$0,$1a,4,3,1
	SpriteData	cockpit2X+$48,cockpit2Y+$0,$19,4,3,1
	SpriteData	cockpit2X+$50,cockpit2Y+$0,$18,4,3,1
	SpriteData	cockpit2X+$58,cockpit2Y+$0,$17,4,3,1
	SpriteData	cockpit2X+$60,cockpit2Y+$0,$16,4,3,1

	SpriteData	cockpit2X+$00,cockpit2Y+$08,$1c,4,3,0
	SpriteData	cockpit2X+$08,cockpit2Y+$08,$1d,4,3,0
	SpriteData	cockpit2X+$10,cockpit2Y+$08,$1e,4,3,0
	SpriteData	cockpit2X+$18,cockpit2Y+$08,$1f,4,3,0
	SpriteData	cockpit2X+$20,cockpit2Y+$08,$20,4,3,0
	SpriteData	cockpit2X+$28,cockpit2Y+$08,$21,4,3,0
	SpriteData	cockpit2X+$30,cockpit2Y+$08,$22,4,3,0
	SpriteData	cockpit2X+$38,cockpit2Y+$08,$22,4,3,1
	SpriteData	cockpit2X+$40,cockpit2Y+$08,$21,4,3,1
	SpriteData	cockpit2X+$48,cockpit2Y+$08,$20,4,3,1
	SpriteData	cockpit2X+$50,cockpit2Y+$08,$1f,4,3,1
	SpriteData	cockpit2X+$58,cockpit2Y+$08,$1e,4,3,1
	SpriteData	cockpit2X+$60,cockpit2Y+$08,$1d,4,3,1
	SpriteData	cockpit2X+$68,cockpit2Y+$08,$1c,4,3,1
	endc
cockpit_data_end
