Exemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            aotImageSharp();

            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            gameView = new IOSGameView(new RectangleF(0.0f, 0.0f, (float)Window.Frame.Size.Width, (float)Window.Frame.Size.Height));
            host     = new IOSGameHost(gameView);

            Window.RootViewController = new GameViewController(gameView, host);
            Window.MakeKeyAndVisible();

            // required to trigger the osuTK update loop, which is used for input handling.
            gameView.Run();

            host.Run(CreateGame());

            return(true);
        }
Exemplo n.º 2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            aotImageSharp();

            Window   = new UIWindow(UIScreen.MainScreen.Bounds);
            gameView = new IOSGameView(new RectangleF(0.0f, 0.0f, (float)Window.Frame.Size.Width, (float)Window.Frame.Size.Height));

            GameViewController viewController = new GameViewController
            {
                View = gameView
            };

            Window.RootViewController = viewController;
            Window.MakeKeyAndVisible();

            gameView.Run();

            host = new IOSGameHost(gameView);
            host.Run(CreateGame());

            return(true);
        }
Exemplo n.º 3
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            aotImageSharp();

            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            gameView = new IOSGameView(new RectangleF(0.0f, 0.0f, (float)Window.Frame.Size.Width, (float)Window.Frame.Size.Height));
            host     = new IOSGameHost(gameView);

            Window.RootViewController = new GameViewController(gameView, host);
            Window.MakeKeyAndVisible();

            // required to trigger the osuTK update loop, which is used for input handling.
            gameView.Run();

            host.Run(CreateGame());

            // Watch for the volume button changing in order to change audio policy
            AVAudioSession audioSession = AVAudioSession.SharedInstance();

            audioSession.AddObserver(this, output_volume, NSKeyValueObservingOptions.New, IntPtr.Zero);

            return(true);
        }
Exemplo n.º 4
0
 public IOSStorage(string path, IOSGameHost host = null)
     : base(path, host)
 {
 }
Exemplo n.º 5
0
 public IOSStorage(string baseName, IOSGameHost host = null)
     : base(baseName, host)
 {
 }