static void Main() { Logger.Start(); try { game = new Game1(); game.Run(); } catch (Exception e) { Logger.Log(e); } Logger.Finish(); }
public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { Logger.Start(); try { game = new Game1(); game.Run(Microsoft.Xna.Framework.GameRunBehavior.Synchronous); } catch (Exception e) { Logger.Log(e); } Logger.Finish(); }
public Game1() : base() { instance = this; Content.RootDirectory = "Content"; settings = new Settings("Settings.txt", Content); graphics = new GraphicsDeviceManager(this); graphics.IsFullScreen = settings.GetSetting<bool>("fullscreen"); ScreenSize = new Vector2(settings.GetSetting<int>("screen_width"), settings.GetSetting<int>("screen_height")); graphics.PreferredBackBufferWidth = (int)ScreenSize.X; graphics.PreferredBackBufferHeight = (int)ScreenSize.Y; IsFixedTimeStep = false; if (graphics.IsFullScreen) IsMouseVisible = false; skipNextUpdate = false; }