Summary

Great job—we have covered a lot of ground in this chapter. You learned about Xcode's new scene editor, used the scene editor to lay out sprites with custom classes, and interpreted the scene data to spawn game objects in our game world. Then, you created a system to loop encounters for our endless flyer game.

Congratulate yourself; the encounter system you built in this chapter is the most complex system in our game. You are officially in a great position to finish your first SpriteKit game!

Next, we will look at creating custom events when game objects collide. We will add health, damage, coin pick-up, invincibility, and more in Chapter 7, Implementing Collision Events.

Get Swift Game Development - Third Edition 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.