Nur was zum Bauen und Starten nötig ist: Mono/ (Spiel), Game/, Core/, Languages/, Assets/ (Bilder, Clips, 3D-Figuren, Ton), build-release.bat. Bauen: build-release.bat → Spiel\GladiatorIdle.exe Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.3 KiB
C#
35 lines
1.3 KiB
C#
using System;
|
|
|
|
namespace GladiatorIdle
|
|
{
|
|
/// <summary>
|
|
/// MonoGame-Prototyp: ein Echtzeit-Duell in der Arena, mit lebendiger Darstellung.
|
|
/// Gleiche Test-Schalter wie das Hauptspiel (--shot, --lang, --class, --sim, --windowed, --size).
|
|
/// </summary>
|
|
internal static class Program
|
|
{
|
|
[STAThread]
|
|
public static void Main(string[] args)
|
|
{
|
|
L.Load();
|
|
AppSettings.Load();
|
|
AppSettings.ApplyVolumes();
|
|
DevShot.Parse(Environment.GetCommandLineArgs());
|
|
if (DevShot.Lang is L.Lang devLang) L.UseForSession(devLang);
|
|
// erster Start: Sprache des Systems (de/es, sonst en); später in den Einstellungen änderbar
|
|
else if (!DevShot.Active && !L.HasSavedLanguage)
|
|
{
|
|
string sys = System.Globalization.CultureInfo.CurrentUICulture.TwoLetterISOLanguageName;
|
|
L.Set(sys == "de" ? L.Lang.De : sys == "es" ? L.Lang.Es : L.Lang.En);
|
|
}
|
|
if (DevShot.Active) SoundManager.Enabled = false; // Testläufe stumm
|
|
if (DevShot.Playtest) { Playtest.Run(); return; }
|
|
|
|
using var game = new ArenaGame();
|
|
game.Run();
|
|
SoundManager.StopAll();
|
|
SoundManager.Shutdown();
|
|
}
|
|
}
|
|
}
|