Shape Shape point chapter-list Group Group Group Group Group Shape Copy 12 Group Shape Shape Copy 3 Shape Shape dropdown editor editor Combined Shape grid Shape Copy 4 Shape Copy 7 Shape language language Shape megaphone paperback Shape platform noun_419259-2 copy play-icon Group BS-Question-Rounded-Circle quotes noun_610406 stacked-books-1 stacked-books-2 Group Group Group Group Group Group Group Group Group Group Group Path

2D Apple Games by Tutorials

  • Platform iOS 11
  • Language Swift 4
  • Editor Xcode 9

Learn how to make iOS, tvOS, macOS and watchOS games using Swift 4 and SpriteKit.

Developer Guide


For intermediate ios developers
2D Apple Games by Tutorials book cover

Learn how to make iOS, tvOS, macOS and watchOS games using Swift 4 and SpriteKit.

In this book, you will make 6 complete and polished mini-games, from an action game to a puzzle game to a classic platformer!

This book is for beginner to advanced iOS developers. Whether you are a complete beginner to making iOS games, or an advanced iOS developer looking to learn about SpriteKit, you will learn a lot from this book!

This book does require some basic knowledge of Swift.

Table of Contents

2D Apple by Tutorials is 25 chapters and 671 pages – yeah, it’s pretty huge. The book is split into five sections, moving from beginning to advanced topics. In each section, you will create a complete mini-game, from scratch! The book also includes some bonus chapters at the end that we think you’ll enjoy.

Section I: Getting Started



Get started by adding your first sprites to the game: the background and the zombie.


Manual Movement

You’ll make the zombie follow your touches around the screen and get a crash-course in basic 2D vector math.



You’ll add cats and crazy cat ladies to the game, as well as basic collision detection and gameplay.



You’ll add a main menu to the game, as well as win and lose scenes.



You’ll make the game scroll from left to right, and finally, add the conga line itself.



You’ll add a label to show the zombie’s lives and the number of cats in his conga line.


Scene Editor

You’ll begin by creating the first level of the game. By the end, you’ll have a better understanding of Xcode’s level designer, better known as the scene editor.

Section II: Physics and Nodes


Beginning Physics

In this chapter, you’re going to make a little detour in order to learn the basics of creating physics simulations for your games. As a bonus, you’ll learn how to prototype games inside an Xcode playground.


Intermediate Physics

You’ll learn about physics-based collision detection and create custom classes for your Sprite Kit nodes.


Advanced Physics

You’ll add two more levels to the game as you learn about interactive bodies, joints between bodies, composed bodies and more.


Crop, Video and Shape Nodes

You’ll add special new blocks to Cat Nap while learning about additional types of nodes that allow you to do amazing things—like play videos, crop images and create dynamic shapes.

Section III: Tile Maps


Beginning Tile Maps

You’ll learn the basics about tile maps in SpriteKit by creating a tile set and a background tile map.


Intermediate Tile Maps

You’ll take things a step further by learning how to access tile maps in code and how to create a tile map with randomly placed tiles.


Saving and Loading Games

You’ll finish up by adding a winning end state and a heads-up display. You’ll also learn how to automatically save the game when you leave it and then reload it from where you left off.

Section IV: Juice


Making Drop Charge

You’ll put together the basic gameplay using the scene editor and code, flexing the Sprite Kit muscles you’ve developed working through previous chapters.


Particle Systems

You’ll learn how to use particle systems to create amazing special effects.


Juice Up Your Game

You’ll trick out your game with music, sound, animation, more particles and other special effects, experiencing for yourself the benefits of mastering the details.

Section V: Other Platforms


macOS Games

You’ll take a complete iOS game and add a target for macOS. Along the way, you’ll learn some of the differences between the platforms, such as windows and mouse and keyboard events.


tvOS Games

Building from Chapter 18, you’ll add another target for tvOS. You’ll learn concepts such as Focus and parallax icons, Top Shelf and working with the Apple TV Remote.


watchOS Games

Lastly, you’ll add a target for watchOS, and you’ll learn about gestures, the Digital Crown and Haptic Feedback. You’ll also discover some of the design considerations when working with a small device.

Section VI: Advanced Topics


Game Center Achievements

Enable Game Center for your game and award the user achievements for accomplishing certain feats.


Game Center Leaderboards

Set up various leaderboards for your game and track and report the player’s scores.



You’ll learn how to allow players to record and share videos of their games with ReplayKit.

Section VI: Bonus Chapters


Augmented Reality & ARKit

Learn about the new ARKit framework by reworking the Pest Control game and turning it into an Augmented Reality game!


Making Art for Programmers

If you liked the art in these mini-games and want to learn how to either hire an artist or make some art of your own, look no further than this chapter! This chapter guides you through drawing a cute cat in the style of this book with Illustrator.

Meet the authors

Caroline Begbie Caroline Begbie RW Team Member
Mike Berg Mike Berg RW Team Member
Michael Briscoe Michael Briscoe RW Team Member
Ali Hafizji Ali Hafizji RW Team Member
Marin Todorov Marin Todorov RW Team Member
Ray Wenderlich Ray Wenderlich RW Team Member

Customer reviews

'2D Apple Games by Tutorials'

The book is well paced, giving you plenty of useful information but never overwhelming. It took me from absolute novice to releasing a game in a couple months!

Eddie S.

Hands down this book is THE best investment I have ever made to teach me how to code Apple games quickly and effortlessly.

Jamie S.

I was expecting a book with short tutorials. However, upon downloading and opening the book, I was blown away by the content and how detailed it was.

Mahdi H.
2D Apple Games by Tutorials book cover

Get 2D Apple Games by Tutorials

Learn how to make iOS, tvOS, macOS and watchOS games using Swift 4 and SpriteKit.