Exemplo n.º 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 Example08RenderTarget2DGame();

            game.Run();
        }
 static void Main(string[] args)
 {
     using (var game = new Example08RenderTarget2DGame())
     {
         game.Run();
     }
 }
Exemplo n.º 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 Example08RenderTarget2DGame();

            game.Run();
        }