© James Goodwill and Wesley Matlock 2017

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

2. SpriteKit Scenes and SKNode Positioning

James Goodwill and Wesley Matlock2

(1)Highlands Ranch, Colorado, USA

(2)Kansas City, Missouri, USA

Chapter 1 talked about what SpriteKit was and how you can use it to create 2D games. It showed how to start working with the SKSpriteNode to create a background and player sprite and then showed how to add them to a game scene.

This chapter steps back a bit for a deeper look at SpriteKit scenes, including how scenes are built and why the order they are built in can change your game. We close the chapter with a discussion of SpriteKit coordinate systems and anchor ...

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.