 
task optionmove//IvV̓BpowerɂďꍇBԍi1F)Ŏ@ɒǏ]B
{
let OpAnglePlus=0;
let dir=1;
let RightAngle=-10;
let LeftAngle=10;
let MoveY=5;

loop
{
		if(GetKeyState(VK_SLOWMOVE)==KEY_PUSH || GetKeyState(VK_SLOWMOVE)==KEY_HOLD)
		{
			opX[0]=GetPlayerX+30*cos(OpAngle);
			opX[1]=GetPlayerX+30*cos(OpAngle+90);
			opX[2]=GetPlayerX+30*cos(OpAngle+180);
			opX[3]=GetPlayerX+30*cos(OpAngle+270);
			opY[0]=GetPlayerY-25+10*sin(OpAngle);
			opY[1]=GetPlayerY-25+10*sin(OpAngle+90);
			opY[2]=GetPlayerY-25+10*sin(OpAngle+180);
			opY[3]=GetPlayerY-25+10*sin(OpAngle+270);
			OpAngle+=OpAnglePlus;
			if((GetKeyState(VK_LEFT)==KEY_PUSH || GetKeyState(VK_LEFT)==KEY_HOLD) && OpAnglePlus<6)
			{
				dir=1;
			}
			if((GetKeyState(VK_RIGHT)==KEY_PUSH || GetKeyState(VK_RIGHT)==KEY_HOLD) && OpAnglePlus>-6)
			{
				dir=-1;
			}
			OpAnglePlus+=0.3*dir;
		}
		else
		{
			opX[0]=GetPlayerX+50*cos(OpAngle);
			opX[1]=GetPlayerX+50*cos(OpAngle+90);
			opX[2]=GetPlayerX+50*cos(OpAngle+180);
			opX[3]=GetPlayerX+50*cos(OpAngle+270);
			opY[0]=GetPlayerY+10*sin(OpAngle);
			opY[1]=GetPlayerY+10*sin(OpAngle+90);
			opY[2]=GetPlayerY+10*sin(OpAngle+180);
			opY[3]=GetPlayerY+10*sin(OpAngle+270);
			OpAngle+=OpAnglePlus;
			if((GetKeyState(VK_LEFT)==KEY_PUSH || GetKeyState(VK_LEFT)==KEY_HOLD) && OpAnglePlus<6)
			{
				dir=1;
			}
			if((GetKeyState(VK_RIGHT)==KEY_PUSH || GetKeyState(VK_RIGHT)==KEY_HOLD) && OpAnglePlus>-6)
			{
				dir=-1;
			}
			OpAnglePlus+=0.2*dir;
		}
		if(OpAnglePlus>=6){OpAnglePlus=6;}
		if(OpAnglePlus<=-6){OpAnglePlus=-6;}
		MagicOpAnglePlus=OpAnglePlus;
yield;
}
}