Sprite Kit Swift 2 Tutorial for Beginners
// Ray Wenderlich
Note from Ray: This is a Swift 2 and iOS 9 update to a popular tutorial on our site, released as part of the iOS 9 Feast.
Like Batman and Robin or Superman and Lois Lane, Sprite Kit and Swift are an amazing combination:
- Sprite Kit is one of the best ways to make games on iOS. It’s easy to learn, powerful, and is fully-supported by Apple.
- Swift is an easy language to get started with, especially if you are a beginner to the iOS platform.
In this tutorial, you will learn how to create a simple 2D game using Apple’s 2D game framework, Sprite Kit – using Swift!
You can either follow along with this tutorial, or just jump straight to the sample project at the end. And yes. There will be ninjas.
Note: This tutorial has a special place in my heart, as the original version was one of the first tutorials ever released on our site. It was written in a completely different language (Objective-C) and a completely different game framework (Cocos2D). My, how times have changed! :]
2D iOS & tvOS Games by Tutorials Now Available!
// Ray Wenderlich
Note from Ray: Happy Wednesday – it’s book release day during the iOS 9 Feast!
Today we are happy to release our brand new book 2D iOS & tvOS Games by Tutorials.
In this book, you will learn how to make iOS and tvOS games in Swift using Apple’s built-in 2D game framework: Sprite Kit. Through a series of mini-games and challenges, you will go from beginner to advanced and learn everything you need to make your own game.
Keep reading to learn more about the history of the book, what’s inside, and how you can get your copy!
History of This Book
via Create Space Invaders with Swift and Sprite Kit – Tuts+ Code Tutorials.
In this series, I will be teaching you how to create a Space Invaders inspired game using Sprite Kit and the Swift programming language. Along the way, you will learn about Sprite Kit’s integrated physics engine, generate particles using Sprite Kit’s built-in particle editor, use the accelerometer to move the player, and much more. Let’s get started.
One of the most exciting new additions in iOS 7 is Apple’s brand new 2D game framework: Sprite Kit.
Sprite Kit makes it incredibly easy to make 2D games and comes with its own built in texture packer, particle designer, physics engine, action system, and much more. We have a bunch of tutorials covering this new game framework below!
If you like these tutorials, check out our book iOS Games By Tutorials, which includes tons of additional in-depth info and sample code!