Example #1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            app.SetStatusBarHidden(true, true);

            // configure our Flurry and SGAgent bits
            var flurryKey = "FLURRYKEY";
            // these can be useful if you have this info
            // FA.Flurry.SetAppVersion("app_version");
            // FA.Flurry.SetUserID("user_id");
            Flurry flurry = new IOSFlurry();

            try {
                Console.WriteLine("Initializing Flurry [vers=" + FA.Flurry.GetFlurryAgentVersion() + "]");
                FA.Flurry.StartSession(flurryKey);
            } catch (Exception e) {
                Console.WriteLine("Failed to init Flurry [key=" + flurryKey + "]");
                Console.WriteLine(e);
            }

            // initialize PlayN and start the game
            var pconfig = new IOSPlatform.Config();

            // use pconfig to customize iOS platform, if needed
            IOSPlatform.register(app, pconfig);
            PlayN.run(new FlurryExample(flurry));
            return(true);
        }
Example #2
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     IOSPlatform.Config config = new IOSPlatform.Config();
     config.orients = IOSPlatform.SupportedOrients.LANDSCAPES;
     IOSPlatform.register(app, config);
     PlayN.run(new TestsGame());
     return(true);
 }
Example #3
0
File: Main.cs Project: elemel/playn
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     IOSPlatform.Config config = new IOSPlatform.Config();
       config.orients = IOSPlatform.SupportedOrients.LANDSCAPES;
       IOSPlatform.register(app, config);
       PlayN.run(new TestsGame());
       return true;
 }
Example #4
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     app.SetStatusBarHidden(true, true);
       var pconfig = new IOSPlatform.Config();
       // use pconfig to customize iOS platform, if needed
       IOSPlatform.register(app, pconfig);
       PlayN.run(new MyGame());
       return true;
 }
Example #5
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     app.SetStatusBarHidden(true, true);
     IOSPlatform.Config config = new IOSPlatform.Config();
     config.orients = IOSPlatform.SupportedOrients.PORTRAITS;
     IOSPlatform.register(app, config);
     PlayN.run(new PerfTest());
     return(true);
 }
Example #6
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     app.SetStatusBarHidden(true, true);
       IOSPlatform.Config config = new IOSPlatform.Config();
       config.orients = IOSPlatform.SupportedOrients.PORTRAITS;
       IOSPlatform.register(app, config);
       PlayN.run(new PerfTest());
       return true;
 }
Example #7
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            app.SetStatusBarHidden(true, true);
            var pconfig = new IOSPlatform.Config();

            // use pconfig to customize iOS platform, if needed
            IOSPlatform.register(app, pconfig);
            PlayN.run(new Mygame());
            return(true);
        }
Example #8
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     app.SetStatusBarHidden(true, true);
       IOSPlatform.Config config = new IOSPlatform.Config();
       config.orients = IOSPlatform.SupportedOrients.LANDSCAPES;
       IOSPlatform platform = IOSPlatform.register(app, config);
       IOSTPPlatform.register(platform);
       PlayN.run(new TripleDemo());
       return true;
 }
Example #9
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            app.SetStatusBarHidden(true, true);
            IOSPlatform.Config config = new IOSPlatform.Config();
            config.orients = IOSPlatform.SupportedOrients.LANDSCAPES;
            IOSPlatform platform = IOSPlatform.register(app, config);

            IOSTPPlatform.register(platform);
            PlayN.run(new TripleDemo());
            return(true);
        }
Example #10
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     var pconfig = new IOSPlatform.Config();
       pconfig.iPadLikePhone = true;
       var platform = IOSPlatform.register(app, pconfig);
       // prior to iOS 7 we need to say that we want to extend under the status bar
       if (!UIDevice.CurrentDevice.CheckSystemVersion(7,0)) {
     platform.rootViewController().WantsFullScreenLayout = true;
       }
       var iPad = (MonoTouch.UIKit.UIScreen.MainScreen.Bounds.Width >= 768);
       PlayN.run(new Pokeros(iPad ? 0.3f : 0.5f));
       return true;
 }
Example #11
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            var pconfig = new IOSPlatform.Config();

            pconfig.iPadLikePhone = true;
            var platform = IOSPlatform.register(app, pconfig);

            // prior to iOS 7 we need to say that we want to extend under the status bar
            if (!UIDevice.CurrentDevice.CheckSystemVersion(7, 0))
            {
                platform.rootViewController().WantsFullScreenLayout = true;
            }
            var iPad = (MonoTouch.UIKit.UIScreen.MainScreen.Bounds.Width >= 768);

            PlayN.run(new Pokeros(iPad ? 0.3f : 0.5f));
            return(true);
        }
Example #12
0
    public override bool FinishedLaunching (UIApplication app, NSDictionary options) {
      app.SetStatusBarHidden(true, true);

      // configure our Flurry and SGAgent bits
      var flurryKey = "FLURRYKEY";
      // these can be useful if you have this info
      // FA.Flurry.SetAppVersion("app_version");
      // FA.Flurry.SetUserID("user_id");
      Flurry flurry = new IOSFlurry();
      try {
        Console.WriteLine("Initializing Flurry [vers=" + FA.Flurry.GetFlurryAgentVersion() + "]");
        FA.Flurry.StartSession(flurryKey);
      } catch (Exception e) {
        Console.WriteLine("Failed to init Flurry [key=" + flurryKey + "]");
        Console.WriteLine(e);
      }

      // initialize PlayN and start the game
      var pconfig = new IOSPlatform.Config();
      // use pconfig to customize iOS platform, if needed
      IOSPlatform.register(app, pconfig);
      PlayN.run(new FlurryExample(flurry));
      return true;
    }