/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new Game1(); SetContentView((View)g.Services.GetService(typeof(View))); g.Run(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Game1.Activity = this; var g = new Game1(); SetContentView(g.Window); g.Run(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var game = new Game1(); var frameLayout = new FrameLayout(this); frameLayout.AddView((View)game.Services.GetService(typeof(View))); this.SetContentView(frameLayout); //SetContentView(game.Window); game.Run(GameRunBehavior.Asynchronous); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Game1.Activity = this; var game = new Game1(); var frameLayout = new FrameLayout(this); frameLayout.AddView(game.Window); this.SetContentView(frameLayout); //SetContentView(game.Window); game.Run(GameRunBehavior.Asynchronous); }
static void Main() { using (var game = new Game1()) game.Run(); }
public override void FinishedLaunching (UIApplication app) { // Fun begins.. game = new Game1(); game.Run(); }
internal static void RunGame() { game = new Game1(); game.Run(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); #if OUYA Ouya.Console.Api.OuyaFacade.Instance.Init(this, "XXXXXXXXXXXXXX"); // Our UUID dev ID #endif Game1.Activity = this; var game = new Game1(); var frameLayout = new FrameLayout(this); frameLayout.AddView(game.Window); this.SetContentView(frameLayout); //SetContentView(game.Window); game.Run(GameRunBehavior.Asynchronous); }
static void Main() { game = new Game1(); game.Run(); }