© James Goodwill and Wesley Matlock 2017

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

7. Adding Points and Sound

James Goodwill and Wesley Matlock2

(1)Highlands Ranch, Colorado, USA

(2)Kansas City, Missouri, USA

In this chapter, we talk about using SKLabelNodes to add labels to your SpriteKit games. Specifically, we show you how to add a label that keeps up with the number of impulses remaining for the SuperSpaceMan to use, and then we show you how to add scoring to the game to keep up with the number of orbs the SuperSpaceMan has collected.

At the end of the chapter, you’ll get a chance to revisit SKActions when we show you how to use them to add simple game sounds.

Introducing SKLabelNodes ...

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.