Esempio n. 1
0
        public override void FinishedLaunching(UIApplication application)
        {
            var rect = UIScreen.MainScreen.Bounds;
            JitterPhysicsGame.PreferredSize = new Vector2((float)rect.Width, (float)rect.Height);

            var game = new JitterPhysicsGame();
            game.Run();
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Android.Graphics.Rect rect = new Android.Graphics.Rect();
            Window.DecorView.GetWindowVisibleDisplayFrame(rect);
            JitterPhysicsGame.PreferredSize = new Vector2(rect.Width(), rect.Height());

            var game = new JitterPhysicsGame();
            var view = (View)game.Services.GetService(typeof(View));
            SetContentView(view);
            game.Run();
        }