//======================================
//リソース読み込み、グラフィックレクトなど
//
//======================================

let img_Player = GetCurrentScriptDirectory() ~ "img\suika.png";
//let se_Supression01 = GetCurrentScriptDirectory() ~ "se\on11.wav";
let img_BurstBlue = GetCurrentScriptDirectory() ~ "img\circle_fire.png";
let img_BurstWhite = GetCurrentScriptDirectory() ~ "img\circle_white.png";

function p01_once_LoadResoruce(){

	//ClearRenderTarget(img_render_Circle);

	LoadGraphic(img_Player);
	LoadGraphic(img_BurstBlue);
	LoadGraphic(img_BurstWhite);

	return;

}//end function

function p01_once_DeleteResoruce(){

	DeleteGraphic(img_Player);
	DeleteGraphic(img_BurstBlue);
	DeleteGraphic(img_BurstWhite);

	//DeleteSE(se_Supression01);

}//end function


function p01_SetGraphicRect(let type){

	let rect = p01_GetGraphicRect(type);
	SetGraphicRect( rect[0], rect[1], rect[2], rect[3] );
	return;

}//end function


function p01_GetGraphicRect(let type){

	alternative(type)
	case("PLAYER_MAIN01"){return [0,0,32,64];}
	case("PLAYER_RIGHT01"){return [32,0,64,64];}
	case("PLAYER_RIGHT02"){return [64,0,96,64];}
	case("PLAYER_LEFT01"){return [96,0,128,64];}
	case("PLAYER_LEFT02"){return [128,0,160,64];}

	case("PLAYER_CIRCLE01"){return [32*6, 0, 32*7, 32];}
	case("PLAYER_CIRCLE02"){return [32*7, 0, 32*8, 32];}

	case("PLAYER_WHITE"){return [32*6, 32, 32*7, 64];}
	case("PLAYER_PARTICLE"){return [32*6, 0, 32*7, 32];}
	case("PLAYER_STOP"){return [32*7, 0, 32*8, 32];}

	case("BURST_01"){return [32*0, 32*0, 32*4, 32*4];}
	case("BURST_02"){return [32*4, 32*0, 32*8, 32*4];}
	case("BURST_03"){return [32*8, 32*0, 32*12, 32*4];}
	case("BURST_04"){return [32*12, 32*0, 32*16, 32*4];}
	case("BURST_05"){return [32*0, 32*4, 32*4, 32*8];}
	case("BURST_06"){return [32*4, 32*4, 32*8, 32*8];}
	case("BURST_07"){return [32*8, 32*4, 32*12, 32*8];}
	case("BURST_08"){return [32*12, 32*4, 32*16, 32*8];}

	return [0,0,0,0];

}//end function


