protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new UnitTestGame(); SetContentView((View)g.Services.GetService(typeof(View))); g.Run(); }
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); }
internal static void RunGame() { game = new UnitTestGame(); game.Run(); }
static void Main() { using (var game = new UnitTestGame()) game.Run(); }