123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #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 : UIApplicationDelegate
- {
- private PlatformerGame game;
-
- public override bool FinishedLaunching (UIApplication app, NSDictionary options)
- {
- // Fun begins..
- game = new PlatformerGame();
- game.Run();
-
- return true;
- }
-
- static void Main (string [] args)
- {
- UIApplication.Main (args,null,"AppDelegate");
- }
- }
- #else
- static class Program
- {
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main(string[] args)
- {
- using (PlatformerGame game = new PlatformerGame())
- {
- game.Run();
- }
- }
- }
- #endif
- }
|