Time for action – creating a new scene

We will create an empty scene and display it on the screen using the following steps:

  1. Switch to Xcode and create a new Objective-C class. To do this, open the Xcode menu and navigate to File | New | File and select Cocoa Touch by navigating to iOS | Cocoa Touch on the left of the screen. Then, in the list of templates, select the Objective-C class item and click on the Next button. Refer to the following screenshot:
    Time for action – creating a new scene
  2. In the next dialog, name our new scene class FirstScene and make it a subclass of CCScene. After filling out fields in this dialog, as shown in the following screenshot, click on the Next button: ...

Get Learning iPhone Game Development with Cocos2D 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.