static void Main() { using (var runner = new DesktopRunner(256, 224, 2)) { runner.GoTo <MapTest>(); runner.AllowUserResizing = true; runner.IsMouseVisible = true; runner.Run(); } }
static void Main(string[] args) { // Fix a bug related to parsing numbers in Europe, among other things CultureInfo.DefaultThreadCurrentCulture = CultureInfo.InvariantCulture; CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.InvariantCulture; var root = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Content"); // Need to do this for MacOS if (root.EndsWith("/MonoBundle/Content")) { root = root.Replace("/MonoBundle/Content", "/Resources/Content"); } using (var game = new DesktopRunner(root)) game.Run(); }