コード例 #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);
        }
コード例 #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);
 }
コード例 #3
0
ファイル: Main.cs プロジェクト: 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;
 }
コード例 #4
0
ファイル: Main.cs プロジェクト: piyanatsuriwong/game01_bui
 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;
 }
コード例 #5
0
ファイル: Main.cs プロジェクト: kalimaul/playn-perf
 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);
 }
コード例 #6
0
ファイル: Main.cs プロジェクト: playn/playn-perf
 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;
 }
コード例 #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);
        }
コード例 #8
0
ファイル: Main.cs プロジェクト: tomfisher/tripleplay
 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;
 }
コード例 #9
0
ファイル: Main.cs プロジェクト: tomfisher/tripleplay
        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);
        }
コード例 #10
0
ファイル: Main.cs プロジェクト: samskivert/mashups
 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;
 }
コード例 #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);
        }
コード例 #12
0
ファイル: Main.cs プロジェクト: livingblast/playn-samples
    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;
    }