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 ...

Get Learning Swift™ Programming 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.