Animate passenger venues and add port-specific cinematics

This commit is contained in:
josh
2026-11-28 14:57:34 -05:00
parent 384f140b92
commit 636a0e2cf8
37 changed files with 2891 additions and 355 deletions

View File

@@ -38,7 +38,10 @@ namespace Soundings
private void Initialize()
{
System.Globalization.CultureInfo.CurrentCulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
autoSmoke = Array.IndexOf(Environment.GetCommandLineArgs(), "-soundings-smoke") >= 0;
string[] arguments = Environment.GetCommandLineArgs();
int clipArgument = Array.IndexOf(arguments, "-soundings-port-clips");
bool exportClips = clipArgument >= 0 && clipArgument + 1 < arguments.Length;
autoSmoke = exportClips || Array.IndexOf(arguments, "-soundings-smoke") >= 0;
Application.targetFrameRate = 60;
harbor = gameObject.AddComponent<Harbor>();
harbor.Initialize();
@@ -66,7 +69,9 @@ namespace Soundings
}
company = autoSmoke ? null : Load();
Render();
if (autoSmoke)
if (exportClips)
StartCoroutine(ExportPortClips(arguments[clipArgument + 1]));
else if (autoSmoke)
StartCoroutine(VisualSmoke());
}
@@ -196,6 +201,8 @@ namespace Soundings
if (title || company == null)
DrawTitle();
else if (harbor.PortCinematicActive)
DrawPortCinematic();
else
{
RefreshGuide();