Example #1
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     var g = new PlatformerGame();
     SetContentView((View)g.Services.GetService(typeof(View)));
     g.Run();
 }
Example #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var g = new PlatformerGame();

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
Example #3
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     PlatformerGame.Activity = this;
     var g = new PlatformerGame();
     SetContentView(g.Window);
     g.Run();
 }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            PlatformerGame.Activity = this;
            var g = new PlatformerGame();

            SetContentView(g.Window);
            g.Run();
        }
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        private static void Main()
        {
            #if WINDOWS || LINUX || PSM
            using (var game = new PlatformerGame())
                game.Run();

            #else
                var factory = new MonoGame.Framework.GameFrameworkViewSource<PlatformerGame>();
                Windows.ApplicationModel.Core.CoreApplication.Run(factory);
            #endif
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var g = new PlatformerGame();

            // With Protobuild, content is included directly under "Assets"
            // on Android, and not under a "Content" subdirectory.
            g.Content.RootDirectory = string.Empty;

            SetContentView((Android.Views.View)g.Services.GetService(typeof(Android.Views.View)));
            g.Run();
        }
Example #7
0
		public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
		{
			game = new PlatformerGame();
			game.Run();
		}
 public override void DidFinishLaunching(NSNotification notification)
 {
     game = new PlatformerGame();
     game.Run();
 }
Example #9
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (var game = new PlatformerGame())
         game.Run();
 }
Example #10
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new PlatformerGame();
     game.Run();
 }
Example #11
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (var game = new PlatformerGame())
             game.Run();
 }