script_enemy_main secant {
    let ImgBoss = GetCurrentScriptDirectory~"secant.png";
	let shot = GetCurrentScriptDirectory~"shot.wav";
	let shot2 = GetCurrentScriptDirectory~"shot2.wav";
	let bounce = GetCurrentScriptDirectory~"bounce.wav";
	let revive = GetCurrentScriptDirectory~"revive.wav";
	let explode = GetCurrentScriptDirectory~"explode.wav";
	let charge = GetCurrentScriptDirectory~"charge.wav";
	let tilt = 0;
	let alive = 1;
	SetCommonData("secy", GetY);
	SetCommonData("secx", GetX);
	let moo = 867;
	let xy = 0;
	let frame3=60;
	let nyan = 1;
	let v = 1;
    let frame = -90;
	let frame2 = 1;
	let n = 0;
#include_function ".\lib\SHOT_REPLACE\shot_replace.dnh"
    @Initialize {
        SetLife(850);
	SetCommonData("alive", true);
	LoadSE(charge);
        SetTimer(99999999);
	LoadSE(revive);
        LoadSE(shot);
	SetCommonData("secy", GetEnemyY);
	SetCommonData("secx", GetEnemyX);
	LoadSE(bounce);
	LoadSE(shot2);
	SetShotAutoDeleteClip(100, 200, 100, 100);
	shotinit;
	SetEnemyMarker(true);
	SetInvincibility(120);
	SetDamageRate(25, 40);        
	SetMovePosition02(GetCenterX-100, GetClipMinY + 120, 30);
        LoadGraphic(ImgBoss);
        SetTexture(ImgBoss);
        SetGraphicRect(1, 1, 128, 128);
    }

    @MainLoop {
	SetCommonData("secy", GetY);
	SetCommonData("secx", GetX);

}



    @DrawLoop {
		if(tilt == 0){
		SetGraphicAngle(0, 0, 0);
                DrawGraphic(GetX,GetY);
		}

		if(tilt == 1){
		SetTexture(ImgBoss);
		SetGraphicAngle(0, 0, 90);
		DrawGraphic(GetX, GetY);
}
    }
let v = 0;
    @Finalize {
        DeleteGraphic(ImgBoss);
    }
}
