script_enemy_main
{
	let sapz = GetCurrentScriptDirectory ~ "img\suiy.png";
	
	@Initialize
	{
		LoadGraphic(sapz);
	
		SetLife(1);
		ForbidShot(true);
		ForbidBomb(true);
		MagicCircle(false);
		SetRateScoreSystemEnable(false);
		SetMovePosition02(GetCenterX, GetCenterY - 120, 10);
		CreateEventFromScript("WIN");
		DeleteMusic(GetCurrentScriptDirectory ~ "bgm\bees.mp3");
	}

	@MainLoop
	{
		if(!OnEvent){SetLife(0);}
	}
	
	@DrawLoop
	{
		SetTexture(sapz);
		SetGraphicRect(0, 0, 250, 250);
		SetGraphicAngle(0, 0, 0);
		SetGraphicScale(0.5, 0.5);
		DrawGraphic(GetX, GetY);
	}

	@Finalize
	{
	}

}

script_event WIN
{
	let zeng = GetCurrentScriptDirectory ~ "img\cutin\pl00_smg.png";
	let zeng2 = GetCurrentScriptDirectory ~ "img\cutin\pl00_evl.png";
	let sap = GetCurrentScriptDirectory ~ "img\cutin\sapztongue.png";

	@Initialize
	{
		LoadGraphic(zeng);
		LoadGraphic(zeng2);
		LoadGraphic(sap);
	}

	@MainLoop
	{
		SetChar(LEFT, zeng);
		SetGraphicRect(LEFT, 0, 0, 230, 248);
		MoveChar(LEFT, FRONT);
		TextOutA("\c[YELLOW]Ohohohohoho!!");
		TextOutA("\c[YELLOW]I am victorious!");
		SetChar(RIGHT, sap);
		SetGraphicRect(RIGHT, 70, 1, 271, 307);
		MoveChar(LEFT, BACK);
		MoveChar(RIGHT, FRONT);
		TextOutA("\c[RED]Nice going bro!");
		TextOutA("\c[RED]You cleared easy mode!");
		MoveChar(LEFT, FRONT);
		MoveChar(RIGHT, BACK);
		TextOutA("\c[YELLOW]...");
		SetChar(LEFT, zeng2);
		SetGraphicRect(LEFT, 0, 0, 225, 251);
		TextOutA("\c[YELLOW]...I");
		TextOutA("\c[YELLOW]..what...");
		TextOutA("\c[YELLOW]..you...");
		TextOutA("\c[YELLOW].why..");
		TextOutA("\c[YELLOW]..what.");
		TextOutA("\c[YELLOW]y u do...");
		TextOutA("\c[YELLOW]...");
		TextOutA("\c[YELLOW]............");
		TextOutA("\c[YELLOW].............................");
		TextOutA("\c[YELLOW]:sword!:");
		End;
	}

	@Finalize
	{
	}

}