/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (PlatformerGame game = new PlatformerGame()) { game.Run(); } }
/// <summary> /// The main entry point for the application. /// </summary> private static void Main(string[] args) { using (PlatformerGame game = new PlatformerGame()) { game.Run(); } }
internal static void RunGame() { game = new PlatformerGame(); game.Run(); #if !__IOS__ && !__TVOS__ game.Dispose(); #endif }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { NSApplication.Init(); //using (var game = new Game1()) using (PlatformerGame game = new PlatformerGame()) { game.Run(); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); _game = new PlatformerGame(); _view = _game.Services.GetService(typeof(View)) as View; SetContentView(_view); _game.Run(); }
internal static void RunGame() { game = new PlatformerGame(); game.Run(); }
static void Main() { using (var game = new PlatformerGame()) game.Run(); }