Example #1
0
        /// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used such as when the application is launched to open a specific file.
        /// </summary>
        /// <param name="e">Details about the launch request and process.</param>
        protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
            FrameworkContext.Page = new MainPage();
            var game = new Example06ModelGame();

            game.Run();
        }
Example #2
0
 static void Main(string[] args)
 {
     using (var game = new Example06ModelGame())
     {
         game.Run();
     }
 }
Example #3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            this.RequestedOrientation = Android.Content.PM.ScreenOrientation.Landscape;

            // Create and run the game
            var game = new Example06ModelGame();

            game.Run();
        }