예제 #1
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            // Set windows size for comfort playing
            MyGameView.Window.SetFrame(new CoreGraphics.CGRect(0, 0, 1600, 1000), true, true);

            // Getting GameScene for presenting on the window
            var scene = SKNode.FromFile <MenuScene>("GameScenes/MenuScene");


            // Set the scale mode to scale to fit the window
            scene.ScaleMode = SKSceneScaleMode.ResizeFill;


            // Enable debug information
            MyGameView.ShowsPhysics   = true;
            MyGameView.ShowsFPS       = true;
            MyGameView.ShowsNodeCount = true;

            // SpriteKit applies additional optimizations to improve rendering performance
            MyGameView.IgnoresSiblingOrder = true;


            // Present scene on the window
            MyGameView.PresentScene(scene);
        }
예제 #2
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            var scene = SKNode.FromFile <GameScene>("GameScene");

            // Set the scale mode to scale to fit the window
            scene.ScaleMode = SKSceneScaleMode.AspectFill;

            MyGameView.PresentScene(scene);

            // SpriteKit applies additional optimizations to improve rendering performance
            MyGameView.IgnoresSiblingOrder = true;

            ProcessName.StringValue = "New Process";
        }
예제 #3
0
        public override void DidFinishLaunching(NSNotification notification)
        {
            var scene = new StartScene
            {
                ScaleMode       = SKSceneScaleMode.ResizeFill,
                BackgroundColor = NSColor.White
            };

            MyGameView.PresentScene(scene);

            // SpriteKit applies additional optimizations to improve rendering performance
            MyGameView.IgnoresSiblingOrder = true;

            MyGameView.ShowsFPS       = true;
            MyGameView.ShowsNodeCount = true;
            MyGameView.ShowsPhysics   = true;
        }