script_enemy_main
{
    let frame=0;
    let BossCutIn=GetCurrentScriptDirectory~"FIST.png";
task bossgraphic{
    yield;
    let obj=Obj_Create(OBJ_EFFECT);
    Obj_SetPosition(obj, GetX, GetY);
    ObjEffect_SetTexture(obj, BossCutIn);
    ObjEffect_SetLayer(obj, 4);
    ObjEffect_SetPrimitiveType(obj, PRIMITIVE_TRIANGLESTRIP);
    ObjEffect_CreateVertex(obj, 4);
    ObjEffect_SetVertexUV(obj, 0, 0, 0);
    ObjEffect_SetVertexUV(obj, 1, 256, 0);
    ObjEffect_SetVertexUV(obj, 2, 0, 416);
    ObjEffect_SetVertexUV(obj, 3, 256, 416);
    ObjEffect_SetVertexXY(obj, 0, -128, -208);
    ObjEffect_SetVertexXY(obj, 1, 128, -208);
    ObjEffect_SetVertexXY(obj, 2, -128, 208);
    ObjEffect_SetVertexXY(obj, 3, 128, 208);
    while(Obj_BeDeleted(obj)==false){
        Obj_SetPosition(obj, GetX, GetY-121);
        ObjEffect_SetAngle(obj, 0, 0, 180);
        ascent(i in 0..4){ObjEffect_SetVertexColor(obj, i, 255, 255, 255, 255);}
        yield;
    }
}
	@Initialize
	{
		SetInvincibility(200);
		SetLife(1);
		LoadGraphic(BossCutIn);
		SetMovePosition02(GetCenterX,120,20);
        bossgraphic;
	}
	
	@MainLoop
	{
        yield;
        SetDamageRate(0, 0);
        frame++;
        if(frame==20){AddLife(-GetLife);}
}
	
	@Finalize
	{
	}
	
	@DrawLoop
	{
	}
}