In the last chapter, we learnt about how to use sprites in a game in various ways. We discussed about the physical properties of sprites, textures of sprites, and various other properties, such as color property, lighting, shader, and so on. We also learned about working with texture objects and had an introduction to texture atlases.
In the previous chapter, we implemented the
SKSprite class which is a subclass of the
SKNode class; that's why
SKSprite is a node itself, inheriting
SKNode properties. In this chapter, we will study about nodes, which play an important role in understanding the tree structure of a game. Further, we will discuss about types of nodes in the Sprite Kit and their uses in detail.