In 2013, Apple released SpriteKit, its 2D game engine, in order to compete with all the two-dimensional frameworks that were existing in the market and retain their developers in its own technological ecosystem. Since then, SpriteKit has become one of the most powerful tools that are used to develop 2D games for iOS. In this chapter, we will have a look at the elements that are a part of game development, and we'll study how to use them with SpriteKit.
In this chapter, we will explore the following topics:
Understanding game engines
Creating and understanding a new SpriteKit project
Understanding the
SKNode
classStudying the
SKScene
classHow to add a sprite and background to a scene