Summary
In this chapter, you worked with SpriteKit, a powerful framework for building games in Swift. When it comes to customization, SpriteKit places you, the programmer, in the driver’s seat. After you import graphics, you can make them available as SKNode objects in a game. SpriteKit lets you fine-tune almost any node property. In this chapter, you created a game in which you adjusted the positions, colors, and rotation settings of some nodes. You positioned the hero and barrier blocks flat against the ground to create an illusion of gravity. You used an instance of the UIColor class to make the background look like a blue sky.
Unlike the tic-tac-toe example from Chapter 5, this game involves multiple views: a start screen and a main play ...
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