#e
#Title[d[dԌcA[]]
#Text[Pʓ]
#BackGround[User(.\STG_IMG\4pud_yukari2.jpg,1,1)]
#PlayLevel[Nomal]
#ScriptVersion[2]

script_enemy_main {
    	let imgBoss     = "script\img\ExRumia.png";
	let Rate	= 1;
	let Angle	= 65;
	let DanImg	= PURPLE21;
	let Delay	= 20;

    	@Initialize {
		CutIn(YOUMU,"d[dԌcA[]",".\STG_IMG\CutIN_yukari",32,32,32,32);
		SetX(GetCenterX);
		SetY(GetClipMinY + 120);
		SetLife(5000);

        	LoadGraphic(imgBoss);
	        SetTexture(imgBoss);
        	SetGraphicRect(0, 0, 63, 63);
		SetTimer(100);
		SetInvincibility(0);
		SetDamageRate(100,100);
		SetEnemyMarker(true);

    	}

    	@MainLoop {
		SetCollisionA(GetX, GetY, 24);
        	SetCollisionB(GetX, GetY, 24);
		//SetDurableSpellCard;
		//ForbidShot(true);
		//ForbidBomb(true);

		let frame	= 0;	
		let min		= -120;
		let max		= 120;
		let max_s	= 10;
		let max_th	= 20;
		let min_th	= 5;
		let min_fr	= 0;
		let max_fr	= 2;

		frame++;
		if(frame == 1) {
			loop(3) {
			SetShotDirectionType(PLAYER);
			CreateShot01(GetX+prand(min,max) ,GetY+prand(min,max) ,Rate+prand(min_fr,max_fr) ,Angle ,DanImg , Delay+prand(min_th,max_th));
		 	Angle += prand(0,max_s);
			}
		}
	}	
	@DrawLoop {
		DrawGraphic(GetX, GetY);
	}

    	@Finalize {
		DeleteEnemyShot(ALL);
        	DeleteGraphic(imgBoss);
	}

}