/// <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); // Create our OpenGL view, and display it Game1.Activity = this; var g = new Game1 (); SetContentView (g.Window); g.Run (); }
public override void FinishedLaunching (UIApplication app) { // More shameless hacking to bypass AOT //var hHack = new ReflectiveReader<CCBMFontConfiguration>(); //var hFoo = new PlistDocument.PlistDocumentReader (); // Fun begins.. game = new Game1(); game.Run(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); #if OUYA Ouya.Console.Api.OuyaFacade.Instance.Init(this, "f3366755-190b-4b95-af21-ca4a01a99478"); // 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); }