#region File Description //----------------------------------------------------------------------------- // Program.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion using System; #if IPHONE using MonoTouch.Foundation; using MonoTouch.UIKit; #endif using Microsoft.Xna.Framework; namespace Platformer { #if IPHONE [Register ("AppDelegate")] class Program : MonoGameProgram { public override bool FinishedLaunching (UIApplication app, NSDictionary options) { // Fun begins.. MonoGameGame = new PlatformerGame(); MonoGameGame.Run(); return true; } static void Main (string [] args) { UIApplication.Main (args,null,"AppDelegate"); } } #else static class Program { /// /// The main entry point for the application. /// static void Main(string[] args) { using (PlatformerGame game = new PlatformerGame()) { game.Run(); } } } #endif }