O'Reilly logo

iOS 7 Game Development by Dmitry Volevodz

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

Nodes

The methods that create SKLabelNode are self-explanatory and it is used to represent text in a scene.

The main building block of every scene is SKNode. Most things you can see on the screen of any given Sprite Kit game is probably a result of SKNode.

Node types

There are different node types that serve different purposes:

  • SKNode: This is a parent class for different types of nodes
  • SKSpriteNode: This is a node that draws textured sprites
  • SKLabelNode: This is a node that displays text
  • SKShapeNode: This is a node that renders a shape based on a Core Graphics path
  • SKEmitterNode: This is a node that creates and renders particles
  • SKEffectNode: This is a node that applies a Core Image filter to its children

Each of them has their own initializer methods—you ...

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