main.cs 619 B

1234567891011121314151617181920212223242526272829
  1. using MonoTouch.Foundation;
  2. using MonoTouch.UIKit;
  3. using Microsoft.Xna;
  4. using Microsoft.Xna.Samples;
  5. using Microsoft.Xna.Samples.GameComponents;
  6. using Microsoft.Xna.Framework;
  7. namespace Microsoft.Xna.Samples.GameComponents
  8. {
  9. [Register ("AppDelegate")]
  10. class Program : UIApplicationDelegate
  11. {
  12. private Game1 game;
  13. public override void FinishedLaunching (UIApplication app)
  14. {
  15. // Fun begins..
  16. game = new Game1();
  17. game.Run();
  18. }
  19. static void Main (string [] args)
  20. {
  21. NSAutoreleasePool pool = new NSAutoreleasePool();
  22. UIApplication.Main (args,null,"AppDelegate");
  23. pool.Dispose();
  24. }
  25. }
  26. }