script_enemy_main {
	let csd		=GetCurrentScriptDirectory;
	let imgEy	=csd ~ "img\area.png";
	let sgsx	=1;
	let sgsy	=0;
	let Alpha_a	=0;


    @Initialize {
        SetLife(20);
	SetDamageRate(100, 100);
	SetScore(1000);
	LoadGraphic(imgEy);
	TMain;
	}

    @MainLoop {
	yield;
	}

	@DrawLoop
	{
	SetGraphicRect(0,(GetArgument*80)-80,256,GetArgument*80);
	SetGraphicAngle(0,0,0);
	SetGraphicScale(sgsx,sgsy);
	SetAlpha(Alpha_a);
	SetColor(255,255,255);
	SetTexture(imgEy);
	DrawGraphic(GetX,GetY);
	}
	@Finalize{
	}

    task TMain {
        yield;

loop(25){
sgsy+=0.04;
Alpha_a+=10;
yield;
}
Alpha_a+=5;
loop(40) {yield;}
loop(25){
Alpha_a-=10.5;
sgsx+=0.04;
sgsy-=0.04;
yield;
}
VanishEnemy;
}

}