My newbie question about SpriteKit. I’m trying to follow guidelines from https://developer.apple.com/library/ios/documentation/GraphicsAnimation/Conceptual/SpriteKit_PG/GettingStarted/GettingStarted.html#//apple_ref/doc/uid/TP40013043-CH2-SW3.
How to write following line into Oxygene?
SKView *spriteView = (SKView *) self.view;
I have written following:
uses
UIKit, SpriteKit;
…
SecondViewController = public class(UIViewController)
private
FSKView : SKView;
…
method SecondViewController.viewDidLoad;
begin
inherited viewDidLoad;
FSKView := new SKView;
//How can I connect FSKView with the view controller, that has Custom Class set to SKView.
//I also tried to make it as a IBoutlet, but could not connect it in xcode.
// [IBOutlet] property FSKView : SKView;
FSKView.showsDrawCount := true;
FSKView.showsNodeCount := true;
FSKView.showsFPS := true;
…