Time for action – creating GameScene
As we're going to work on this project for some time, let's keep everything clean and tidy by performing the following steps:
- First of all, let's remove the following files as we won't need them:
HelloWorldScene.h
HelloWorldScene.m
IntroScene.h
IntroScene.m
- We'll use groups to separate our classes. This will allow us to keep things organized. To create a group in Xcode, you should right-click on the root project folder in Xcode,
Cocohunt
in our case, and select the New Group menu option (command + alt + N). Refer to the following sceenshot: - Go ahead and create a new group and name it
Scenes
. After ...
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.