Introduction to Sprite Kit with Swift 3

Dive into game development with Xcode and Sprite Kit! A fun, hands-on course to create your own games using Swift.

  • Overview
  • Curriculum
  • Instructor
  • Review

Brief Summary

This course is all about jumping into game dev with Xcode! You’ll learn the ropes of using Sprite Kit, creating your game scenes, and making cool stuff happen with a bunch of playful, hands-on activities. It’s like playing a game while you learn how to create one—fun, right?

Key Points

  • Hands-on learning with Xcode and Sprite Kit
  • Basic physics properties and game mechanics
  • Gesture recognizers for interactive gameplay

Learning Outcomes

  • Ability to create a basic game using Xcode and Sprite Kit
  • Comfortable use of Swift programming language in game projects
  • Understanding of game physics and interactions

About This Course

Learn the basics of game development using Xcode

Jump right into game development with this hands-on style approach to learning Sprite Kit.

Lecture 1 - This video is a quick tour of the general settings in Xcode 8, and the GameScene.sks file. We'll tinker a bit with some physics properties and run the Simulator a few times to experiment. If you already have some experience with Xcode, you can skip this intro video.

Lecture 2 - In this video tutorial we'll jump right in by adding player art assets to the game, then use them in our Sprite Kit Scene file by setting physics properties on an SKSpriteNode. We'll tinker with some of the physics, then look at how to declare / cast an SKSpriteNode variable in the GameScene.swift which equals the child node setup in the Scene (.sks file).  Sounds like a lot, but its a quick and painless introduction to the power of Sprite Kit and the Scene Editor.

Lecture 3 - In this video tutorial, we'll continue where we left off in the last video and run SKActions on our player. We'll work both with programmatically setup SKActions as well as Actions created using the Timeline in the Scene Editor. Then we'll work with detecting touch locations as well as using the update function to check on the player's location.

Lecture 4 - In this video, we'll continue working with SKActions, by changing the previous lesson's walk actions into a sequence of actions. This will allow you to run code at the end of a sequence. In this example, when the player begins walking we'll make gravity affect him (creating an effect like wind is pushing him), then when the player has stopped walking, gravity will no longer be in affect. We'll also look at create a speed variable for movements and frame animations of the player.

Lecture 5 - We'll take a short break from the previous project and explore the Cross Platform Sprite Kit template included with Xcode. This is a project that has an iOS, tvOS, WatchOS and MacOS Target. The neat thing about this template is all four device types use the same GameScene.swift and GameScene.sks files. So ideally, you can code once and deploy to all those devices. We'll also look at how to add files to a particular device Target after they've already been imported or created (this is done in Xcode's Build Phases tab)

Lecture 6 - In this video tutorial we'll add Swipe, Tap and Rotation gestures recognizers to the scene. We'll discuss properties and related functions for each, as well as converting radians to degrees and removing all gestures from the scene.

Lecture 7 - In this video tutorial, we'll add an SKPhysicsContactDelegate to the class, then add a didBegin contact statement to listen out for physics notifications from bodies. This requires setting the categoryBitMask and contactTestBitMask on the player and a hypothetical building object that we add this lesson.

Lecture 8 - In this final video, we'll use the update method to check where the player is and then change the zPosition (layering) of buildings based on that value. This will make it look like the player is visually in front of or in back of a particular building. Then finally we'll create a Castle class, or subclass of SKSpriteNode, and demonstrate how this custom class can have it's own functions and properties.

  • Continue working with intermediate level Sprite Kit games

  • Understand the basics of a Sprite Kit based project

  • Use Swift 3 comfortably in a Sprite Kit project

Instructor

Profile photo of Justin Dike
Justin Dike

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...

Review
4.9 course rating
4K ratings
ui-avatar of Kirk Inman
Kirk I.
5.0
9 months ago

It is some great information that he presents in a friendly way.

  • Helpful
  • Not helpful
ui-avatar of Vanda Savkina
Vanda S.
5.0
1 year ago

Because in quality of an aspirational Udemy instructor I think it is very important to leave a feedback which could help instructor understand if their work has been done appropriately.

  • Helpful
  • Not helpful
ui-avatar of Kiel Robinson
Kiel R.
5.0
4 years ago

good stuff 👍

  • Helpful
  • Not helpful
ui-avatar of Greg Bushta
Greg B.
5.0
5 years ago

I liked this set of videos. I learned a lot, but couldn't download the files to my computer. I used other files for the animation. I liked learning about collisions and sprites touching each other. I am ready to apply things I learned into my own app to see how much I learned.

  • Helpful
  • Not helpful
ui-avatar of Charles Peterson
Charles P.
3.5
5 years ago

I did learn some new things, and would recommend watching this course, if you already have some swift and SpriteKit experience.

I liked that this course focused mainly on moving a character, instead of making the whole game and overwhelming the viewer. I wish the instructor was a little more focused, than this course would have been better.

The project files are on the cartoonSmart website, and if you open the project, Xcode 11 will not run the app because it is written in Swift 3. You have to select the image folders from the assets.xcassets folder, and drag and drop them in your new Xcode project assets folder.

I used Xcode 11 and Swift 5 for this course. With only a few problems, I was able to follow only with the lesson. I was able to solve the problems I had too!

  • Helpful
  • Not helpful
ui-avatar of Jamesbutler
Jamesbutler
4.5
5 years ago

Awesome :D

  • Helpful
  • Not helpful
ui-avatar of Yourboye Thestudent
Yourboye T.
3.5
5 years ago

This was a good course. You definitely need prior experience with swift in order to understand this course. Downsides - The course is outdated, the instructor/community seems to be silent when it comes to chatting or answering questions. The Upside - you can tell the instructor knows his stuff, and the course is free!

  • Helpful
  • Not helpful
ui-avatar of Anonymized User
Anonymized U.
5.0
5 years ago

So far so good

  • Helpful
  • Not helpful
ui-avatar of Neil Wiseman
Neil W.
3.0
5 years ago

The course has good content. A pity the graphics are not available from Udemy to download.

  • Helpful
  • Not helpful
ui-avatar of Mercedes Yvonne Cantu
Mercedes Y. C.
4.5
5 years ago

Easy to follow but I felt like he was having some trouble with Xcode and fixing some code off screen.

  • Helpful
  • Not helpful
Leave A Reply

Your email address will not be published. Required fields are marked *

Ratings

Courses You May Like

Lorem ipsum dolor sit amet elit
Show More Courses