O'Reilly logo

iOS Game Development By Example by Samanyu Chopra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Nodes in Sprite Kit

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.

All you need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required