© James Goodwill and Wesley Matlock 2017

James Goodwill and Wesley Matlock, Beginning Swift Games Development for iOS, 10.1007/978-1-4842-2310-9_15

15. SceneKit Interaction with SpriteKit

James Goodwill and Wesley Matlock2

(1)Highlands Ranch, Colorado, USA

(2)Kansas City, Missouri, USA

In the previous chapters, you’ve worked within the SceneKit paradigm; however, Apple has created a way for you to add a 2D scene to overlay on your 3D scenes. In this chapter, you’ll add a 2D scene that will be used for your timer so it can track how long it will take you and your friends to find and capture the enemy.

SpriteKit Integration

SceneKit gives you a property to add a SpriteKit scene:

var overlaySKScene: SKScene! { get set }

This property can render a 2D scene ...

Get Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit 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.