Chapter 3. Taking Games One Step Further

In Chapter 2, What Makes a Game a Game?, we learned some techniques that are used in almost every video game. In this chapter, we will talk about some techniques that are used to add complexity to games, such as creating our own SKNode subclasses or drawing geometrical primitives. We will also learn some other techniques that will provide a realistic look and feel to a game, such as animating sprites or implementing the parallax effect.

You will learn the following things in this chapter:

  • How to create classes that extend SKNode
  • How to implement the parallax effect
  • How to animate sprites
  • Drawing geometrical primitives

Extending the SKNode class

When designing games, you may need to provide some extra behavior ...

Get Getting Started with SpriteKit 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.