script_enemy_main{

let nr=GetArgument-1;

let EFunlock1=0;
let EFunlock2=0;
let EFunlock3=0;

let GRunlock1=("\script\Images\Menu\TrumpCardUnlock1.png");
let GRunlock2=("\script\Images\Menu\TrumpCardUnlock2.png");
let GRunlock3=("\script\Images\Menu\TrumpCardUnlock3.png");

let SEmenuunlock=("\script\SoundEffects\menuunlock.wav");

let time=0;
let miny=GetClipMinY; let maxy=GetClipMaxY; let minx=GetClipMinX; let maxx=GetClipMaxX;
let cx=GetCenterX; let cy=GetCenterY;

@Initialize{
	LoadGraphic("\script\Images\Menu\TrumpCardUnlock1.png");
	LoadGraphic("\script\Images\Menu\TrumpCardUnlock2.png");
	LoadGraphic("\script\Images\Menu\TrumpCardUnlock3.png");

	LoadSE("\script\SoundEffects\menuunlock.wav");

	SetLife(100);
	SetScore(100);
}

@MainLoop{

if(time==0){
let xsize=400;
let ysize=24;
	EFunlock1=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(EFunlock1,cx,cy-12);
	ObjEffect_SetScale(EFunlock1,1,1);
	ObjEffect_SetLayer(EFunlock1,8); ObjEffect_SetTexture(EFunlock1,GRunlock1); ObjEffect_SetRenderState(EFunlock1,ALPHA);
	ObjEffect_SetPrimitiveType(EFunlock1,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(EFunlock1,4);
	ObjEffect_SetVertexXY(EFunlock1,0,-(xsize/2),-(ysize/2)); ObjEffect_SetVertexUV(EFunlock1,0,0,0);
	ObjEffect_SetVertexXY(EFunlock1,1,xsize/2,-(ysize/2)); ObjEffect_SetVertexUV(EFunlock1,1,xsize,0);
	ObjEffect_SetVertexXY(EFunlock1,2,-(xsize/2),ysize/2); ObjEffect_SetVertexUV(EFunlock1,2,0,ysize);
	ObjEffect_SetVertexXY(EFunlock1,3,xsize/2,ysize/2); ObjEffect_SetVertexUV(EFunlock1,3,xsize,ysize);
	ObjEffect_SetVertexColor(EFunlock1,0,255,255,255,255); ObjEffect_SetVertexColor(EFunlock1,1,255,255,255,255);
	ObjEffect_SetVertexColor(EFunlock1,2,255,255,255,255); ObjEffect_SetVertexColor(EFunlock1,3,255,255,255,255);
nr=nr*24;
	EFunlock2=(Obj_Create(OBJ_EFFECT));
	Obj_SetPosition(EFunlock2,cx,cy+12);
	ObjEffect_SetScale(EFunlock2,1,1);
	ObjEffect_SetLayer(EFunlock2,8); ObjEffect_SetTexture(EFunlock2,GRunlock2); ObjEffect_SetRenderState(EFunlock2,ALPHA);
	ObjEffect_SetPrimitiveType(EFunlock2,PRIMITIVE_TRIANGLESTRIP); ObjEffect_CreateVertex(EFunlock2,4);
	ObjEffect_SetVertexXY(EFunlock2,0,-(xsize/2),-(ysize/2)); ObjEffect_SetVertexUV(EFunlock2,0,0,0+nr);
	ObjEffect_SetVertexXY(EFunlock2,1,xsize/2,-(ysize/2)); ObjEffect_SetVertexUV(EFunlock2,1,xsize,0+nr);
	ObjEffect_SetVertexXY(EFunlock2,2,-(xsize/2),ysize/2); ObjEffect_SetVertexUV(EFunlock2,2,0,ysize+nr);
	ObjEffect_SetVertexXY(EFunlock2,3,xsize/2,ysize/2); ObjEffect_SetVertexUV(EFunlock2,3,xsize,ysize+nr);
	ObjEffect_SetVertexColor(EFunlock2,0,255,255,255,255); ObjEffect_SetVertexColor(EFunlock2,1,255,255,255,255);
	ObjEffect_SetVertexColor(EFunlock2,2,255,255,255,255); ObjEffect_SetVertexColor(EFunlock2,3,255,255,255,255);
PlaySE(SEmenuunlock);
}


if(time==180){ VanishEnemy; }

time++;

}

@DrawLoop{
}

@Finalize{
}

}