protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new PlatformerGame(); SetContentView((View)g.Services.GetService(typeof(View))); g.Run(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new PlatformerGame(); SetContentView((View)g.Services.GetService(typeof(View))); g.Run(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); PlatformerGame.Activity = this; var g = new PlatformerGame(); SetContentView(g.Window); g.Run(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); PlatformerGame.Activity = this; var g = new PlatformerGame(); SetContentView(g.Window); g.Run(); }
// Constructor public GamePage() { InitializeComponent(); _game = XamlGame <PlatformerGame> .Create("", this); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
public GamePage() { this.InitializeComponent(); // Create the game. var launchArguments = string.Empty; _game = MonoGame.Framework.XamlGame <PlatformerGame> .Create(launchArguments, Window.Current.CoreWindow, swapChainPanel); }
// Constructor public GamePage() { InitializeComponent(); _game = XamlGame<PlatformerGame>.Create("", this); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
/// <summary> /// The main entry point for the application. /// </summary> private static void Main() { #if WINDOWS || LINUX || PSM using (var game = new PlatformerGame()) game.Run(); #else var factory = new MonoGame.Framework.GameFrameworkViewSource<PlatformerGame>(); Windows.ApplicationModel.Core.CoreApplication.Run(factory); #endif }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new PlatformerGame(); // With Protobuild, content is included directly under "Assets" // on Android, and not under a "Content" subdirectory. g.Content.RootDirectory = string.Empty; SetContentView((Android.Views.View)g.Services.GetService(typeof(Android.Views.View))); g.Run(); }
public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) { game = new PlatformerGame(); game.Run(); }
public override void DidFinishLaunching(NSNotification notification) { game = new PlatformerGame(); game.Run(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main() { using (var game = new PlatformerGame()) game.Run(); }
public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { game = new PlatformerGame(); game.Run(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main() { using (var game = new PlatformerGame()) game.Run(); }