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();
        }
Example #5
0
        // Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame <PlatformerGame> .Create("", this);

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        public GamePage()
        {
            this.InitializeComponent();

            // Create the game.
            var launchArguments = string.Empty;

            _game = MonoGame.Framework.XamlGame <PlatformerGame> .Create(launchArguments, Window.Current.CoreWindow, swapChainPanel);
        }
Example #7
0
        // Constructor
        public GamePage()
        {
            InitializeComponent();

            _game = XamlGame<PlatformerGame>.Create("", this);
            
            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        /// <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 #10
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 #12
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (var game = new PlatformerGame())
         game.Run();
 }
Example #13
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new PlatformerGame();
     game.Run();
 }
Example #14
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (var game = new PlatformerGame())
             game.Run();
 }