Game Development Reference
In-Depth Information
In the viewDidLoad method of GameViewController a piece of code is written
that converts its view to SKView and a scene that is, GameScene is presented on the
SKView as shown below. The unarchiveFromFile method is implemented by the
project itself to fetch the GameScene.sks file, which we can see in the project created.
For not showing the FPS and nodes, comment both the lines as shown in the following
code:
- (void)viewDidLoad
{
[super viewDidLoad];
// Configure the view.
SKView * skView = (SKView *)self.view;
// skView.showsFPS = YES;
// skView.showsNodeCount = YES;
/* Sprite Kit applies additional optimizations to
improve rendering performance */
Search WWH ::




Custom Search