#Title[‚¨—Ó‘Ò‹@]
#Text[‰Î‰‹”L—Ó‚Ì‘Ò‹@]
#BackGround[User]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main
{
        let count=0;
        let csd=GetCurrentScriptDirectory;
        let imgBoss=csd~"img\ExOrin.png";

    @Initialize {
        SetLife(1);
        SetTimer(999);
        SetDamageRate(0,0);
	SetEnemyMarker(true);
        SetInvincibility(200);
	LoadGraphic(imgBoss);
    }

        @MainLoop
        {
	if(count==100){
		AddLife(-1000);
		}
        SetCollisionB(GetX(),GetY(),18);
	SetCollisionA(GetX(),GetY(),18);
        count++;
        yield;
        }

        @DrawLoop {
		SetRenderState(ALPHA);
		SetTexture(imgBoss);
		SetGraphicScale(1,1);
		SetAlpha(255);
		SetColor(255,255,255);
		SetGraphicAngle(0,0,0);
		SetGraphicRect(128,0,255,127);
		DrawGraphic(GetX(),GetY());
	}

        @Finalize
        {
		DeleteGraphic(imgBoss);
        }
}