#Title[됌뎸봍쀓]
#Text[됌뎸봍쀓궻뫿뤾]
#BackGround[User]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main
{
        let count=0;
        let cx=GetCenterX();
        let cy=GetCenterY();
        let csd     = GetCurrentScriptDirectory;
        let imgBoss =csd~"img\ExOrin.png";

	@Initialize
	{
	SetLife(1);
	SetTimer(999);
        SetDamageRate(0,0);
        SetInvincibility(0);
	LoadGraphic(imgBoss);
	SetEnemyMarker(true);
	}
	
	@MainLoop
	{
		if(count==20){
		SetMovePosition02(-30,-30,40);
		}
		if(GetY<-20){
		VanishEnemy();
		}
	SetCollisionA(GetX,GetY,10);
	SetCollisionB(GetX,GetY,10);
        count++;
        yield;
	}
	
        @DrawLoop {
		SetRenderState(ALPHA);
		SetTexture(imgBoss);
		SetGraphicScale(1,1);
		SetAlpha(255);
		SetColor(255,255,255);
		SetGraphicAngle(0,0,0);
		SetGraphicRect(0,256,127,343);
		DrawGraphic(GetX(),GetY());
	}
        
        @Finalize
        {
		DeleteGraphic(imgBoss);
        } 
}