
#Title[ぬえ１]
#Text[]
#Image[.]
#BackGround[User]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let csd = GetCurrentScriptDirectory;
    let imgBoss =csd ~ "..\lib/dot_nue.png"; 
    let imgUFG  = csd ~ "..\img\UFG.png";
    // 初期位置
    let xIni    = GetCenterX;
    let yIni    = GetClipMinY + 144;
	let Step2=false;
	let wIni=60;
let TimeCounter=76*60;
let StandardTimeCounter=TimeCounter;
    @Initialize {
	SetCommonData("STAGE3BOSS",true);
	SetShotAutoDeleteClip(16,16,16,16);
        SetTimer(TimeCounter/60);
        SetLife(3600);
	InitializeAction();
	SetEnemyMarker(true);
	SetX(GetClipMaxX+60);
	SetY(GetCenterY-0);
        TMainGrobal;
    }

    @MainLoop {
	BulletNum=GetEnemyShotCount;
	TimeCounter-=1;
        yield;
    }

    @DrawLoop {
	DrawBoss( imgBoss );
    }

    @Finalize {
		if(!IsTimeOut)
		{
		SetCommonData("DeleteBulletNum",BulletNum);
		SetCommonData("DeleteBulletX",GetX);
		SetCommonData("DeleteBulletY",GetY);
		}

	SetCommonData("VanishSignal",false);
	SetCommonData("TimeBonus",TimeCounter/StandardTimeCounter);
	SetCommonData("BossRate",30000);
    }

    // メインタスク
task TMainGrobal
{
	yield;
	GetDamege;
	OutDamageRateZero;
	Collision;
	//Lissajous(148,0,211);
	BossShadowAnimation(imgBoss,180,148,0,211);
	standBy;
	shotALL;
}

sub standBy//初期位置へ
{
	Appearance;
	TMove;
	//SetMovePositionHermite(xIni, GetCenterY-20,50,225,350,0,150);
	//SetAction(ACT_MOVE, 60);
	//SetMovePosition03(xIni, GetCenterY-20, 20,5);
	SetInvincibility(wIni);
	wait(180);
	//Lissajous(148,0,211);
	Concentration01(30);
	wait(30);
}

task Collision
{
	wait(150);

	loop
	{
        SetCollisionA(GetX, GetY, 48);
        MSDSetCollisionB(GetX, GetY, 8);
	yield;
	}

}

task TMove
{
let CX=GetCenterX;
let CY=GetCenterY+10;
let R1=240;
let R2=30;
let angle=0;
loop(90)
{
	SetX(CX+R1*cos(angle));
	SetY(CY+R2*sin(angle));
	angle+=180/90;
	yield;
}
loop(60)
{
	SetX(CX+R1*cos(angle));
	SetY(CY+R2*sin(angle));
	angle+=90/60;
	yield;
}
	SetX(CX+R1*cos(angle));
	SetY(CY+R2*sin(angle));
}

task Appearance
{
AppearanceEffect1;
loop(90)
{
	//AppearanceEffect2(GetX,GetY);
yield;
}
}


task AppearanceEffect1
{
		let scale=1;
		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgUFG);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
	//	ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);
		ObjEffect_SetVertexXY(obj, 0, -64, -64);
		ObjEffect_SetVertexXY(obj, 1,64,  -64);
		ObjEffect_SetVertexXY(obj, 2,64, 64);
		ObjEffect_SetVertexXY(obj, 3,  -64,  64);
		
		ObjEffect_SetVertexUV(obj, 0,  384,  256);
		ObjEffect_SetVertexUV(obj, 1,  512, 256);
		ObjEffect_SetVertexUV(obj, 2, 512, 384);
		ObjEffect_SetVertexUV(obj, 3, 384, 384);

		let Alpha=255;
		let R=255;let G=255; let B=255;

		ObjEffect_SetVertexColor(obj,0,Alpha,R,G,B);
		ObjEffect_SetVertexColor(obj,1,Alpha,R,G,B);
		ObjEffect_SetVertexColor(obj,2,Alpha,R,G,B);
		ObjEffect_SetVertexColor(obj,3,Alpha,R,G,B);

		ObjEffect_SetLayer(obj,3);
		Obj_SetPosition(obj,GetX,GetY);
		
		ObjEffect_SetScale(obj, scale,scale);
		let ZAngle;
		loop(150)
		{
			ZAngle=rand(0,360);
			AppearanceEffect2(GetX,GetY,ZAngle,scale);
			Obj_SetPosition(obj,GetX,GetY);
			ObjEffect_SetAngle(obj,0,0,ZAngle);
			yield;
		}
		loop(30)
		{
			ZAngle=rand(0,360);
			AppearanceEffect2(GetX,GetY,ZAngle,scale);
			Obj_SetPosition(obj,GetX,GetY);
			scale-=1/30;
			ObjEffect_SetScale(obj, scale,scale);
			ObjEffect_SetAngle(obj,0,0,ZAngle);
			yield;
		}
		Obj_Delete(obj);
}

task AppearanceEffect2(x,y,ZAngle,scale)
{
		let Sscale=scale;
		let obj = Obj_Create(OBJ_EFFECT);
		ObjEffect_SetTexture(obj, imgUFG);
		ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLEFAN);
		//ObjEffect_SetRenderState(obj, ADD); 
		ObjEffect_CreateVertex(obj, 4);
		ObjEffect_SetVertexXY(obj, 0, -64+rand(-5,5), -64+rand(-5,5));
		ObjEffect_SetVertexXY(obj, 1,64+rand(-5,5),  -64+rand(-5,5));
		ObjEffect_SetVertexXY(obj, 2,64+rand(-5,5), 64+rand(-5,5));
		ObjEffect_SetVertexXY(obj, 3,  -64+rand(-5,5),  64+rand(-5,5));
		
		ObjEffect_SetVertexUV(obj, 0,  384,  256);
		ObjEffect_SetVertexUV(obj, 1,  512, 256);
		ObjEffect_SetVertexUV(obj, 2, 512, 384);
		ObjEffect_SetVertexUV(obj, 3, 384, 384);

		let Alpha=100;
		let R=255;let G=255; let B=255;

		ascent(i in 0..4)
		{
		ObjEffect_SetVertexColor(obj,i,Alpha,R,G,B);
		}

		ObjEffect_SetLayer(obj,2);
		Obj_SetPosition(obj,x,y);
		
		ObjEffect_SetScale(obj, scale,scale);

		loop(10)
		{
			ObjEffect_SetAngle(obj,0,0,ZAngle);
			scale+=Sscale/100;
			ObjEffect_SetScale(obj, scale,scale);
			yield;
		}
		Obj_Delete(obj);
}

task shotALL
{
SpellDraw(11,6000);
loop
{
SetAction(ACT_SHOT_A, 300);
summon1;
wait(300);
SetAction(ACT_MOVE, 60);
SetMovePosition03(xIni, yIni, 20,5);
wait(120);
SetAction(ACT_SHOT_A, 480);
summon2;
wait(420);
wait(60);
SetAction(ACT_SHOT_A, 120);
summon3;
wait(120);
SetAction(ACT_MOVE, 60);
let movedir=rand_int(0,1)*2-1;
SetMovePosition03(xIni-120*movedir, yIni, 20,5);
wait(240);
SetAction(ACT_MOVE, 60);
SetMovePosition03(xIni+120*movedir, yIni, 20,5);
wait(180);
SetAction(ACT_MOVE, 60);
SetMovePosition03(xIni, yIni, 20,5);
wait(120);
SetAction(ACT_SHOT_A, 600);
summon4;
wait(600);
SetAction(ACT_MOVE, 60);
SetMovePosition03(xIni, GetCenterY-20, 20,5);
wait(180);
}


task summon1
{
	let dir=rand_int(0,1)*2-1;
	let angle=rand(0,360);
	ascent(i in 0..8)
	{
        CreateEnemyFromScript("Familiar1", GetX, GetY,
                              0, angle+i*45, dir);
	}
}

task summon2
{
	let dir=rand_int(0,1)*2-1;
	loop(3)
	{
        CreateEnemyFromScript("Familiar2", GetX, GetY,
                            1.5,  GetAngleToPlayer, dir);
	wait(120);
	}
}

task summon3
{
	let dir=rand_int(0,1)*2-1;
	ascent(i in 1..4)
	{
        CreateEnemyFromScript("Familiar3", GetX, GetY,
                            1.5,  GetAngleToPlayer, i);
        CreateEnemyFromScript("Familiar3", GetX, GetY,
                            1.5,  GetAngleToPlayer, -i);
	}
}

task summon4
{
	let angle=rand(0,360);
	ascent(i in 1..4)
	{
        CreateEnemyFromScript("Familiar4", GetX, GetY,
                            1.5,  angle+120*i, i);
	}
}

}
/////////////////////////////////////////////////////////////////////////////
task shotE
{

}
//////////////////////////////////////////////////////////////////////
task shotA
{

}

#include_function ".\..\txt\data.txt"
#include_function ".\..\lib/lib_anime_Nue.txt"
}

script_enemy Familiar1 {
    let csd     = GetCurrentScriptDirectory;
    let imgFam  = csd ~ "..\img\familiar.png";
	let num = GetArgument;
    @Initialize {
	SetCoordinateType(COODINATE_TYPE_PARENT);
	let num = GetArgument;
        SetLife(200);
        SetDamageRateEx(100,100,0,0);
        SetTexture(imgFam);
        setGraphic;
	TMain;
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 48);
        MSDSetCollisionB(GetX, GetY, 8);
        yield;
    }

    @DrawLoop {
      //  DrawGraphic(GetX, GetY);
    }

        @Finalize
        {
	if(GetEnemyLife>0)
	{
		FinalizeItemSet(5);
	}
        }

    task TMain {
        yield;
	GetDamege;
	OutDamageRateZero;
	ZakoEnemyLifeDisplay;
	move;
	alternative(GetCommonDataDefault("SELECTEDDIFFICULT","None"))
	case("Moderate")
	{
	shotM;
	}
	case("Extream")
	{
	shotE;
	}
	case("Apocalypse")
	{
	shotA;
	}
	ZakoEffect(255,0,0);
    }

task move
{
	let X=0;
	let Y=0;
	let R=0;
	let angle=GetAngle;
	loop(270)
	{
		SetX(X+R*cos(angle));
		SetY(Y+R*sin(angle));
		R+=1.5;
		angle+=1*num;
		yield;
	}
	VanishEnemy;
}

task shotM
{
wait(12);
loop
{
	CreateShotA(0,GetX,GetY,5);
	SetShotDataA(0,0,0,0,0,0.00,4,9);
	SetShotDataA(0,60,0,GetAngleToPlayer,0,0.02,4,9);
	FireShot(0);
	wait(12);
}
}
/////////////////////////////////////////////////////////
task shotE
{
wait(12);
loop
{
	CreateShotA(0,GetX,GetY,5);
	SetShotDataA(0,0,0,0,0,0.00,4,9);
	SetShotDataA(0,60,0,GetAngleToPlayer,0,0.02,4,9);
	FireShot(0);
	wait(6);
	CreateShotA(0,GetX,GetY,5);
	SetShotDataA(0,0,0,0,0,0.00,4,17);
	SetShotDataA(0,60,0,atan2(GetPlayerY-GetEnemyY,GetPlayerX-GetEnemyX),0,0.02,4,17);
	FireShot(0);
	wait(6);
}
}
////////////////////////////////////////////////////////////
task shotA
{

wait(12);
shot2;
loop
{
	CreateShotA(0,GetX,GetY,5);
	SetShotDataA(0,0,0,0,0,0.00,4,25);
	SetShotDataA(0,60,0,GetAngleToPlayer,0,0.02,4,25);
	FireShot(0);
	wait(12);
}

task shot2
{
loop
{
	ascent(let i in 0..6)
	{
	CreateShotA(0,GetX,GetY,5);
	SetShotDataA(0,0,0,0,0,0.00,4,9);
	SetShotDataA(0,60,0,i*60,0,0.01,4,9);
	FireShot(0);		
	}
wait(24);
}
}

}
    // グラフィックの設定
sub setGraphic{ SetGraphicRect( 0, 48, 48, 96); }
#include_function ".\..\txt/StageEnemydata.txt"
}

script_enemy Familiar2 {
    let csd     = GetCurrentScriptDirectory;
    let imgFam  = csd ~ "..\img\familiar.png";
	let num = GetArgument;
    @Initialize {
	SetCoordinateType(COODINATE_TYPE_PARENT);
	let num = GetArgument;
        SetLife(900);
        SetDamageRateEx(100,100,0,0);
        SetTexture(imgFam);
        setGraphic;
	TMain;
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 48);
        MSDSetCollisionB(GetX, GetY, 8);
        yield;
    }

    @DrawLoop {
      //  DrawGraphic(GetX, GetY);
    }

        @Finalize
        {
	if(!BeVanished)
	{
	DeleteEnemyShot(CHILD);
	}
	if(GetEnemyLife>0)
	{
		FinalizeItemSet(5);
	}
        }

    task TMain {
        yield;
	GetDamege;
	OutDamageRateZero;
	ZakoEnemyLifeDisplay;
	move;
	alternative(GetCommonDataDefault("SELECTEDDIFFICULT","None"))
	case("Moderate")
	{
	shotM;
	}
	case("Extream")
	{
	shotE;
	}
	case("Apocalypse")
	{
	shotA;
	}
	ZakoEffect(0,0,255);
    }

task move
{
	SetSpeed(GetSpeed);
	SetAngle(GetAngle);
	wait(300);
	VanishEnemy;
}

task shotM
{
wait(30);
let angle=GetAngle-180;
loop
{
	CreateLaser01(GetX,GetY,4,angle,120,5,246,5);
	wait(4);
	angle+=20*num;
}
}
/////////////////////////////////////////////////////////
task shotE
{
BlueLaser;
wait(30);
let angle=GetAngle-180;
loop
{
	CreateLaser01(GetX,GetY,4,angle,120,5,246,5);
	wait(3);
	angle+=15*num;
}

	task BlueLaser
	{
		ascent(i in 0..4)
		{
		CrossLaser(i*90);
		}
	}

	task CrossLaser(angle)
	{
		CreateLaserB(0,0,12,14,0);
		SetLaserDataB(0,0,1,0,0,0,0,angle,1);
		SetLaserDataB(0,100,0,0,0,0,0,NULL,1);
		FireShot(0);
	}
}
////////////////////////////////////////////////////////////
task shotA
{
BlueLaser;
wait(30);
let angle=GetAngle-180;
loop
{
	CreateLaser01(GetX,GetY,4,angle,120,5,246,5);
	CreateLaser01(GetX,GetY,4,angle+120,120,5,246,5);
	CreateLaser01(GetX,GetY,4,angle-120,120,5,246,5);
	wait(3);
	angle+=15*num;
}
	task BlueLaser
	{
		ascent(i in 0..4)
		{
		CrossLaser(i*90);
		}
	}

	task CrossLaser(angle)
	{
		CreateLaserB(0,0,12,14,0);
		SetLaserDataB(0,0,1,0,0,0,0,angle,1);
		SetLaserDataB(0,100,0,0,0,0,0,NULL,1);
		FireShot(0);
	}
}
    // グラフィックの設定
sub setGraphic{ SetGraphicRect( 0, 48, 48, 96); }
#include_function ".\..\txt/StageEnemydata.txt"
}

script_enemy Familiar3 {
    let csd     = GetCurrentScriptDirectory;
    let imgFam  = csd ~ "..\img\familiar.png";
	let num = GetArgument;
    @Initialize {
	//SetCoordinateType(COODINATE_TYPE_PARENT);
	let num = GetArgument;
        SetLife(500);
        SetDamageRateEx(100,100,0,0);
        SetTexture(imgFam);
        setGraphic;
	TMain;
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 48);
        MSDSetCollisionB(GetX, GetY, 8);
        yield;
    }

    @DrawLoop {
      //  DrawGraphic(GetX, GetY);
    }

        @Finalize
        {
	if(!BeVanished)
	{
	DeleteEnemyShot(CHILD);
	}
	if(GetEnemyLife>0)
	{
		FinalizeItemSet(5);
	}
        }

    task TMain {
        yield;
	GetDamege;
	OutDamageRateZero;
	ZakoEnemyLifeDisplay;
	move;
	alternative(GetCommonDataDefault("SELECTEDDIFFICULT","None"))
	case("Moderate")
	{
	shotM;
	}
	case("Extream")
	{
	shotE;
	}
	case("Apocalypse")
	{
	shotA;
	}
	ZakoEffect(0,255,0);
    }

task move
{
	SetMovePosition03(GetCenterX+num*60-absolute(num)/num*30, GetClipMinY+60, 20,5);
	wait(600);
	SetMovePosition03(GetEnemyX, GetEnemyY, 20,5);
	wait(60);
	VanishEnemy;
}

task shotM
{
wait(90);
let angle=rand(0,360);
let dir=rand_int(0,1)*2-1;
GreenShot(dir);
wait(120);
CreateLaserA(0,GetX,GetY,500,40,156,60);
SetLaserDataA(0,0,GetAngleToPlayer,0,0,0,0);
SetShotKillTime(0,120);
FireShot(0);
wait(120);
wait(120);
CreateLaserA(0,GetX,GetY,500,40,156,60);
SetLaserDataA(0,0,GetAngleToPlayer,0,0,0,0);
SetShotKillTime(0,120);
FireShot(0);
wait(60);

task GreenShot(dir)
{
let angle=rand(0,360);
loop(36)
{
	ascent(i in 0..3)
	{
	CreateShot01(GetX,GetY,3,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.25,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.125,angle+120*i,44,5);
	}
	wait(15);
	angle+=10*dir;
}
}
}
/////////////////////////////////////////////////////////
task shotE
{
wait(90);
let angle=rand(0,360);
GreenShot(1);
GreenShot2;
wait(120);
CreateLaserA(0,GetX,GetY,500,40,156,60);
SetLaserDataA(0,0,90,0,0,0,0);
SetShotKillTime(0,120);
FireShot(0);
wait(120);
wait(120);
CreateLaserA(0,GetX,GetY,500,40,156,60);
SetLaserDataA(0,0,90,0,0,0,0);
SetShotKillTime(0,120);
FireShot(0);
wait(60);

task GreenShot(dir)
{
let angle=rand(0,360);
loop(36)
{
	ascent(i in 0..3)
	{
	CreateShot01(GetX,GetY,3,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.25,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.125,angle+120*i,44,5);
	}
	wait(15);
	angle+=15*dir;
}
}

task GreenShot2
{
loop(16)
{
	ascent(i in 0..3)
	{
	CreateShot01(GetX,GetY,3,GetAngleToPlayer+i*45,13,5);
	}
	wait(60);
}
}

}
////////////////////////////////////////////////////////////
task shotA
{

wait(90);
let angle=rand(0,360);
GreenShot(1);
wait(120);
Snake(GetX,GetY,4.5,90,30,12,9,5,0,5);
Snake(GetX,GetY,4.5,90,30,12,9,5,1,5);
wait(120);
wait(120);
Snake(GetX,GetY,4.5,90,30,12,9,5,0,5);
Snake(GetX,GetY,4.5,90,30,12,9,5,1,5);
wait(60);

task GreenShot(dir)
{
let angle=rand(0,360);
loop(36)
{
	ascent(i in 0..3)
	{
	CreateShot01(GetX,GetY,3,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.25,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.125,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.375,angle+120*i,44,5);
	CreateShot01(GetX,GetY,3.5,angle+120*i,44,5);
	}
	wait(15);
	angle+=15*dir;
}
}

task Snake(x,y,v,angle,length,width,color,delay,id,spin)
{
         let snake = Obj_Create(OBJ_SINUATE_LASER);
         Obj_SetX(snake,x);
         Obj_SetY(snake,y);
         Obj_SetSpeed(snake,v);
	if(id == 0)
	{
         Obj_SetAngle(snake,angle-spin*spin*2);
	}
	if(id == 1)
	{
         Obj_SetAngle(snake,angle+spin*spin*2);
	}
         ObjShot_SetBombResist(snake,true);
         ObjShot_SetDelay(snake,delay);
         ObjShot_SetGraphic(snake,156);
         ObjSinuateLaser_SetLength(snake,length);
         ObjSinuateLaser_SetWidth(snake,width);
	Angle;
        task Angle
	{
		if(id == 0)
		{
		loop(240)
		{
			loop(20)
			{
				Obj_SetAngle(snake,Obj_GetAngle(snake)+spin);
				wait(1);
			}
			loop(20)
			{
				Obj_SetAngle(snake,Obj_GetAngle(snake)-spin);
				wait(1);
			}
		}
		Obj_Delete(snake);
		}
		else if(id == 1)
		{
		loop(240)
		{
			loop(20)
			{
				Obj_SetAngle(snake,Obj_GetAngle(snake)-spin);
				wait(1);
			}
			loop(20)
			{
				Obj_SetAngle(snake,Obj_GetAngle(snake)+spin);
				wait(1);
			}
		}
		Obj_Delete(snake);
	}
        }  
}

}
    // グラフィックの設定
sub setGraphic{ SetGraphicRect( 0, 48, 48, 96); }
#include_function ".\..\txt/StageEnemydata.txt"
}

script_enemy Familiar4 {
    let csd     = GetCurrentScriptDirectory;
    let imgFam  = csd ~ "..\img\familiar.png";
	let num = GetArgument;
    @Initialize {
	SetCoordinateType(COODINATE_TYPE_PARENT);
	let num = GetArgument;
        SetLife(500);
        SetDamageRateEx(100,100,0,0);
        SetTexture(imgFam);
        setGraphic;
	TMain;
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 48);
        MSDSetCollisionB(GetX, GetY, 8);
        yield;
    }

    @DrawLoop {
      //  DrawGraphic(GetX, GetY);
    }

        @Finalize
        {
	if(GetEnemyLife>0)
	{
		FinalizeItemSet(20);
	}
        }

    task TMain {
        yield;
	GetDamege;
	OutDamageRateZero;
	ZakoEnemyLifeDisplay;
	move;
	alternative(GetCommonDataDefault("SELECTEDDIFFICULT","None"))
	case("Moderate")
	{
	shotM;
	}
	case("Extream")
	{
	shotE;
	}
	case("Apocalypse")
	{
	shotA;
	}
	RainbowZakoEffect;
    }

task move
{
	let X=0;
	let Y=0;
	let R=0;
	let angle=GetAngle;
	loop(540)
	{
		SetX(X+R*cos(angle));
		SetY(Y+R*sin(angle));
		if(R<100)
		{
		R+=100/60;
		}
		angle+=1*absolute(num)/num;
		yield;
	}
	loop(60)
	{
		SetX(X+R*cos(angle));
		SetY(Y+R*sin(angle));
		R-=100/60;
		angle+=1*absolute(num)/num;
		yield;
	}
	VanishEnemy;
}

task shotM
{
wait(60);
let angle=rand(0,360);
loop
{
	CreateShot02(GetX,GetY,1,angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1,180-angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,2,angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,2,180-angle,0.02,5,43,5);
	wait(5);
	angle+=10;
}
}
/////////////////////////////////////////////////////////
task shotE
{
wait(60);
let angle=rand(0,360);
loop
{
	CreateShot02(GetX,GetY,1,angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1,180-angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,2,angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,2,180-angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1.5,angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1.5,180-angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1.25,angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1.25,180-angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1.75,angle,0.02,5,43,5);
	CreateShot02(GetX,GetY,1.75,180-angle,0.02,5,43,5);
	wait(5);
	angle+=10;
}
}
////////////////////////////////////////////////////////////
task shotA
{
wait(60);
let angle=0;
let anglePlus=0;
loop
{
	ascent(let i in 0..6)
	{
	CreateShot02(GetX,GetY,1.25,angle+i*45,0.02,5,43,5);
	}
	wait(4);
	angle+=anglePlus;
	anglePlus+=1;
}
}
    // グラフィックの設定
sub setGraphic{ SetGraphicRect( 0, 48, 48, 96); }
#include_function ".\..\txt/StageEnemydata.txt"
}

#include_script ".\..\txt/EnemyShotData.txt"
