Introduction to Sprite Kit with iOS7 and Xcode 5

Learn to program with Sprite Kit, Apple's 2d game engine for iOS7. Create incredible games with code already in Xcode 5.
4.1 (145 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
13,066 students enrolled
$20
Take This Course
  • Lectures 14
  • Contents Video: 4 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 9/2013 English

Course Description

Owner and lead instructor of CartoonSmart.com, Justin Dike teaches this course on Sprite Kit programming with Xcode 5 and iOS7. He brings his practical, easy style of teaching now to Sprite Kit, Apple's own 2D game engine. This introduction to Sprite Kit course is truly meant for beginners of all kinds. If you've never programmed before, be sure to watch the first section and get some of the basics under your belt. Following that, we will pick apart the Sprite Kit starting template, then move on in the final section to build a quick game.

What are the requirements?

  • Mac
  • Xcode 5 (free in the App Store)

What am I going to get from this course?

  • By the end of this course you will have learned the foundation of Sprite Kit
  • You will have created a quick Sprite Kit game

What is the target audience?

  • Anyone

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Xcode 5 Basics, Provisioning Profiles and Objective-C Primer
03:37

Introducing Sprite Kit, Apple's 2D game engine. This series of video tutorials will cover just about everything about Sprite Kit, and create useable projects that could be the foundation of countless games.

The Xcode project for this first section is contained in the Supplemental Materials Tab

16:19

Tour of the Xcode Interface In this video tutorial we will tour the Xcode 5 interface. We'll look at all the essential areas you should know about as a first time programmer. We will also look briefly at Asset Catalogs, a new way of adding your launch images and app icons in Xcode 5.

08:49

(Optional viewing) This video will teach you to add your Provisioning Profiles in Xcode 5 using the developer portal and Organizer. You need to be a registered developer to install your profiles and test on your actual device. Otherwise, you can test your project on the iOS Simulator.

20:32

(Optional viewing) If you aren't familiar with Objective-C or programming in general, you'll want to watch this first video on basic variable types. We'll look at int, float, NSString, bool and CGPoint variables and quickly test logging them in the update loop of the Sprite Kit template.

The project for this video (and the next) is in the Supplemental Materials tab.

22:56

(Optional viewing) This course continues teaching the very basics of Objective-C. If you aren't familiar with if statements, while and for loops, or creating methods (with non-void returns and parameters) then you will definitely want to watch this quick primer.

Section 2: The Sprite Kit Template
23:26

This video will look at the Sprite Kit template and play around some with what already exists. If you skipped past the optional Objective-C basics tutorial, this video is also intended to give you a quick reminder of some core concepts to programming (returning SKLabelNode from a method, adding children, setting properties, etc)

22:23

This second video examining the Sprite Kit Template will teach you how to enable multiple touches in the view controller, detect touches ended, use childNodeWithName, and enumerate through children during the update method.

Section 3: Creating a Boulder Jump Game with Sprite Kit
08:18

From here on out, the series will be building a sample Sprite Kit jumping game, where your goal is to avoid getting hit by boulders and timing a characters leap over them. This short first video will discuss importing images to an Asset Catalog (new to Xcode 5), using Retina Display images, and also show you tips on how to export images from a program such as Adobe Flash.

The image assets used in this project are included here.

09:50

This video discusses creating a Texture Atlas for Sprite Kit. If you are familiar with sprite sheets for optimizing game graphics, a texture atlas is exactly that. You can name a folder with .atlas extension and include your standard and retina images (with @2x.png extensions). This .atlas folder with get packaged as a texture atlas at compile time. (Code to use the atlas is discussed later).

19:31

In this video, we will add all of our children to the Sprite Kit scene, and create a method at a random interval to continuously add Boulder sprites. We will also look at the zPosition, xScale, name properties and more.

21:58

This video tutorial really gets the ball rolling with Sprite Kit. Pun intended. We'll be moving the boulder across the screen and detecting if it intersects with our character. We will also look at the enumerateChildNodesWithName method.

Check the Supplemental Materials for the Xcode project as it was at the end of this video.

10:51

This video discusses the concept of Casting in a Sprite Kit game. This is an important concept, and worthy of it's own video. We'll talking about when to cast an object, making sure it actually exists, and testing the kind of class that the cast object is.

23:54

In this video we will add our Sprite Kit Actions which will do all the work involved with making the character jump and use the texture atlas we imported earlier. We will look at adding a sequence of SKActions as well as declaring them in the header file for use every time we touch the screen. We will also use the SKAction performSelector method to control how often the character is able to jump (toggling on or off if the character can jump).

15:54

In this last video, we will test if the boulder has intersected with the character a certain number of times, and if so, we will transition to a new scene (actually the same scene over again) to restart the game.

The finished project has been uploaded to the Supplemental Materials page.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Justin Dike, CartoonSmart / Owner / Leader Developer and Instructor

Justin Dike is the founder of CartoonSmart one of the internet's first video training websites. He is a long-time illustrator and animator, focusing mostly on Adobe Flash, and experienced programmer with Swift, Sprite Kit, Actionscript 3, Objective C and Cocos2d. For CartoonSmart he has recorded hundreds of hours of video tutorials and recently published his first full length book titled iOS Programming with Xcode and Cocos2d available in the iBookstore. Justin has also developed many iOS games, including a side scrolling game engine.

Ready to start learning?
Take This Course