Chapter 6. Level select scene

Pencil Adventure is a big place so we need several different scenes to take us through the story of our hero Steve. To allow our player to see what levels exists, and what levels have been completed, and to select a level to play, we must create a level select scene.

You can read the full source code of our Pencil Adventure game here on Github.

In this chapter you will learn how to use Swift to programmatically create a scene, instead of using the scene editor in Xcode. This is useful for smaller, dynamic scenes that are not part of the actual game play. We will also deal with how to create a load progress indicator, which is useful to improve the user experience of the level select scene.

We will cover the following ...

Get Learning Swift: Building an iOS Game now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.