#東方弾幕風[Player]
#ScriptVersion[2] 
#Menu[霧雨魔理沙A]
#Text[拡散タイプ

	]
#ReplayName[魔理沙A]
script_player_main
{
	let MagicAbsorbShortRange=60;
	let MagicAbsorbLongRange=150;
	let AutoReCharge=0.625;
	let GrazeRadius=50;
	let AutoItemCollectLine=176;
	let BurstErazeCircleRangeRate=4.0;

	let PlayerType="A";

	@Initialize
	{
		SetPlayerLifeImage(img, 0, 0, 48, 48);

		IntializeLoading;
		SetSpeed(4.0, 1.5);//自機の移動速度
		LoadPlayerShotData(csd~"..\txt\ShotData.txt");
		SetItemCollectLine(AutoItemCollectLine);//アイテム回収されるy座標
		SetGrazeCircle(GrazeRadius);//自機のかすり判定
		SetRebirthFrame(1);//食らいボムの有効フレーム
		Tmain;
	}

	task Tmain
	{
		yield;
		OptionMagicCircleA;
		IntializeTmain;
		BombExtend;
	}

	@MainLoop
	{
		SetIntersectionCircle(GetPlayerX, GetPlayerY, 0);//自機の当たり判定
		yield;
	}


	@Missed{
	MainLoop;
	BurstMode=0;
}

	@SpellCard//バリアの有無によってボム変化
	{	
		if(OnMissed)
		{	
		UseSpellCard("MicroHole", 0);
		}
		else
		{
		UseSpellCard("Stardust", 0);
		}
		BurstMode=0;
	}

	@DrawLoop
	{
		SetTexture(img);
		if(THdot)
		{
			SetTexture(THimg);
		}

		SetGraphicRect(PlayerRectLeft,PlayerRectUp, PlayerRectRight, PlayerRectDown);
		DrawGraphic(GetPlayerX(), GetPlayerY());//自機の描画

	atari;
	}

	@Finalize
	{

	}



#include_script".\..\txt\Pdraw.txt"
#include_script".\..\txt\Bdraw.txt"
#include_script".\..\txt\Cdraw.txt"
#include_script".\..\txt\Power.txt"
#include_script".\..\txt\PlayerEffect.txt"
#include_script".\..\txt\BurstEffect.txt"
#include_script".\..\txt\Hue.txt"
#include_script".\..\txt\MagicSystem.txt"
#include_script".\MarisaShot.txt"
#include_script".\MarisaOptionMove.txt"
#include_script".\..\txt\BombExtend.txt"
#include_script".\..\txt\rotate3d.txt"
#include_script".\..\txt\Load.txt"
#include_script".\..\txt\data.txt"
}

#include_script".\..\txt\Spell001.txt"
