public static void Main(string[] args) { bool benchmark = args.Length > 0 && args[0] == @"-benchmark"; BasicGameHost host = Host.GetSuitableHost(); if (benchmark) { host.Load(new Benchmark()); } else { host.Load(new VisualTestGame()); } host.Run(); }
public static void Main() { BasicGameHost host = Host.GetSuitableHost(); host.Load(new VisualTestGame()); host.Run(); }
public static void Main() { BasicGameHost host = Host.GetSuitableHost(); host.Load(new SampleGame()); host.Run(); }
public static void Main() { using (Game game = new SampleGame()) using (BasicGameHost host = Host.GetSuitableHost()) { host.Load(game); host.Run(); } }