Exemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            var g = new UnitTestGame();

            SetContentView((View)g.Services.GetService(typeof(View)));
            g.Run();
        }
Exemplo n.º 2
0
        public MainPage()
        {
            this.InitializeComponent();

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

            _game = global::MonoGame.Framework.XamlGame <UnitTestGame> .Create(launchArguments, Windows.UI.Xaml.Window.Current.CoreWindow, swapChainPanel);
        }
Exemplo n.º 3
0
 internal static void RunGame()
 {
     game = new UnitTestGame();
     game.Run();
 }
Exemplo n.º 4
0
 static void Main()
 {
     using (var game = new UnitTestGame())
         game.Run();
 }