Exemplo n.º 1
0
        protected override void SetupMainPage(MainPage mainPage)
        {
            Game game = new MarbletsGame();

            mainPage.Children.Add(game);
            game.Play();
        }
Exemplo n.º 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using(MarbletsGame game = new MarbletsGame())
     {
         game.Run();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main()
 {
     using (MarbletsGame game = new MarbletsGame())
     {
         game.Run();
     }
 }
Exemplo n.º 4
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			MarbletsGame g = new MarbletsGame(this);
            SetContentView(g.Window);
            g.Run();
		}
Exemplo n.º 5
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // Fun begins..
            MonoGameGame = new MarbletsGame();
            MonoGameGame.Run();

            return(true);
        }
Exemplo n.º 6
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            MarbletsGame g = new MarbletsGame(this);

            SetContentView(g.Window);
            g.Run();
        }
Exemplo n.º 7
0
        public override void FinishedLaunching(UIApplication app)
        {
            // Fun begins..
            game = new MarbletsGame ();
            game.Run ();

            //MediaLibrary lib = new MediaLibrary();
            //object result = lib.Playlists;
        }
Exemplo n.º 8
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            MarbletsGame.Activity = this;
            game = new MarbletsGame();
            SetContentView(game.Window);
            game.Run();
        }
Exemplo n.º 9
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            MarbletsGame.Activity = this;
            game = new MarbletsGame();
            SetContentView(game.Window);
            game.Run();
        }
Exemplo n.º 10
0
        public override void FinishedLaunching(UIApplication app)
        {
            // Fun begins..
            game = new MarbletsGame();
            game.Run();

            //MediaLibrary lib = new MediaLibrary();
            //object result = lib.Playlists;
        }
Exemplo n.º 11
0
        public override void FinishedLaunching(UIApplication application)
        {
            var bounds = UIScreen.MainScreen.Bounds;
            var scale  = UIScreen.MainScreen.Scale;

            Point size = new Point((int)bounds.Width, (int)bounds.Height);

            // This seems to be required, despite what is in the info.plist...

            // Landscape Mode:
            //application.StatusBarOrientation = UIInterfaceOrientation.LandscapeRight;
            //if(size.Y > size.X)
            //	size = new Point(size.Y, size.X);

            // Portrait Mode:
            application.StatusBarOrientation = UIInterfaceOrientation.Portrait;
            if (size.X > size.Y)
            {
                size = new Point(size.Y, size.X);
            }

            game = new MarbletsGame();
            game.Run();
        }
Exemplo n.º 12
0
		public MainPage()
		{
			InitializeComponent();
			MarbletsGame game = new MarbletsGame();
			LayoutRoot.Children.Add(game);
		}
Exemplo n.º 13
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     game = new MarbletsGame();
     game.Run();
 }
Exemplo n.º 14
0
 static void Main()
 {
     game = new MarbletsGame ();
     game.Run ();
 }
Exemplo n.º 15
0
 protected override void SetupMainPage(MainPage mainPage)
 {
     Game game = new MarbletsGame();
     mainPage.Children.Add(game);
     game.Play();
 }
Exemplo n.º 16
0
 static void Main()
 {
     game = new MarbletsGame();
     game.Run();
 }
Exemplo n.º 17
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     using (MarbletsGame game = new MarbletsGame ()) {
         game.Run ();
     }
 }