Beispiel #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (var gameRunner = new FlxGameRunner(320, 240, new Sandbox(), 3.0f))
     {
         gameRunner.Run();
     }
 }
Beispiel #2
0
        public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
        {
            // Handle a Xamarin.Mac Upgrade
            AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs a) => {
                if (a.Name.StartsWith("MonoMac"))
                {
                    return(typeof(MonoMac.AppKit.AppKitFramework).Assembly);
                }
                return(null);
            };

            gameRunner = new FlxGameRunner(400, 300, new MenuState(), 1.0f);
            gameRunner.Run();
        }