Your SceneKit Files
As you can see in Figure 11.5, these are the main components of your new SceneKit project:
■ AppDelegate.swift: This is where you will get system-level updates, such as applicationWillTerminate, which is called when an application is about to terminate. At that time, you need to save all your data so you don’t lose anything.
■ art.scnassets: This is where Apple expects you to put all your DAE files. It’s where you will put your assets in this chapter.
■ GameViewController.swift: This is where Apple has written all of its game logic for the demo app. It connects to the Main.storyboard SCNView so that you can display your code on the screen. You can separate the game logic into more than one file. In fact, unless this game ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access