Chapter    1

Setting Up Your Game Scene and Adding Your First Sprites

Sprite Kit is Apple’s exciting 2D game framework released in September 2013 with iOS 7. It is a graphics rendering and animation framework that gives you the power to easily animate textured images, play video, render text, and add particle effects. It also includes an integrated physics library. Sprite Kit is the first-ever game engine formally built into the iOS SDK.

In this chapter you will learn what Sprite Kit is and how you create a new Sprite Kit game using Xcode. You will then move on and create the beginnings of a Sprite Kit game starting from scratch. You’ll learn about SKNodes and their subclasses, and you’ll also use an SKSpriteNode to add both a background node ...

Get Beginning Swift Games Development for iOS 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.