Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
by
Lessons:22Length:2.6 hours
Outdated Course
This course uses Swift 1, which is now outdated. We've built a complete guide to help you learn Swift, whether you're just getting started with the basics or you want to explore more advanced topics: Learn Swift.

Next lesson playing in 5 seconds

Cancel

Free Preview: Game Development With Swift and SpriteKit

Welcome

02:23
  • Overview
  • Transcript

If you are anything like me, you were probably interested in computer games when you were younger. I can still remember spending a lot of time wondering how these games were made and dreaming about one day becoming a game developer. So I got into software development. Well, years went by and I found myself doing more and more enterprise-style applications, but always wondering what it would be like to get back to what made me interested in computers in the first place. Well, if you were like me, this is your chance. In this course we are going to reignite that passion for games by learning the basics of iOS game development with SpriteKit.

We've built a complete guide to help you learn Swift, whether you're just getting started with the basics or you want to explore more advanced topics: Learn Swift.

1. Introduction

1.1 Welcome

Hello. And welcome to another exciting course, brought to you by your friends here at tuts plus. My name is Derek Jenson. And throughout this course I'm gonna be taking you into the world of game development, targeting the IOS platform and specifically we're gonna be talking about Sprite Kit. Now you may be wondering what Sprite Kit is, if you've never heard of it or if you have heard of it before. You may wonder, what can we use it for? Well, we're gonna cover all of those basis throughout this course, but specifically as a little bit of an introduction Sprite Kit is basically a game framework that was built into IOS seven that we are now able to use to create some very nice graphical games. Using a very basic concepts in game creation such as game loops and things of that nature. So if you've never done any work with this before please don't worry about it. We're gonna cover all of the basics throughout this course. Now one thing to consider while we're going throughout this course is that I'm going to be using the Swift programming language. Now you can absolutely use Objective-C throughout this course, and still be able to follow along fairly easily. But I will be using Swift. So if you are unfamiliar with Swift, or you're interested in learning more about it, you can take a look at my previous course on the Swift programming language on tuts plus and learn a little bit more about the language before you start diving into this. But I promise you it's not gonna be very difficult content just because it's Swift. It's gonna be fairly simple to wrap your head around if this is the first time, first time you've ever seen it. Also I encourage you to head over to the IOS developer library and search for Sprite Kit, and you can start to read a little bit about it using the Sprite Kit programming guide. But there's a lot of information here and it's going to be very easy to get lost in a sea of confusion. So, take a look at it, read through it occasionally. Starts you to familiarize yourself with some, with some concepts like sprites and nodes and scenes and things of that nature. And I'm gonna be walking through all of those different things throughout this course. So this should be extremely fun, we're gonna have a good time, we're gonna build a game. From absolute beginning to a full more-or-less game that you can play yourself and either continue to evolve on or just kinda take it for what it's worth. But it should be a lot of fun and we're gonna learn a lot. So hang in there throughout this course. We should have a good time and let's go ahead and start building a game.

1.2 My Motivation

Now, I chose to do this specific course for a fairly interesting reason. And I think this tends to resonate with a lot of people that are in the software development field. Now, I think it's fairly safe to say that when I chose to go into software development, I didn't say to myself, you know what, I'd really like to create enterprise applications. That definitely was not the case. Early on in my life, when I first started to learn more about computers, and discover them, and, and tend to spend more time with them, it was typically around the realm of games. And the games really interested me. And there was one in particular that definitely struck a chord with me, and that was Breakout. Breakout was definitely one of my favorite games. I thought, thought it to be a relatively simple concept, but ultimately could get fairly challenging. And if you're not familiar with the concept of Breakout, it was quite simple. You had a little paddle down at the bottom of the screen here that you controlled. And this little ball would bounce back and forth off the walls, off these colored bricks at the top, and then ultimately down to you. And you had to stop the ball from getting below you, cuz if it got past you, then you lost. But if you were able to hit the ball, it would bounce back up and hit these bricks up here. And depending on the levels you were on, you had different configurations of bricks, different colors, you could maybe hit those bricks multiple times. And there's been several iterations and evolutions of Breakout over the years, but the sa, but the basic concept remains the same. And this is ultimately one of the reasons why, maybe not the specific reason why I got into software development, but it was definitely in the back of mind the entire time, is that I loved to play these types of games. And I think that concept resonates with a lot of other people out there. So, I wanted to take this opportunity to spend some time going over basic game building and writing concepts as it pertains to, in this case, the iOS platform, and specifically using Sprite Kit. And Sprite Kit really makes these types of things relatively simple. Obviously, you can get very complex as you go and create very complicated games. But we're gonna create a clone of this Breakout-style game throughout this course, from beginning, where we start with nothing, ultimately to where we get to the basic game and it's functionality. And then obviously, from that point you can continue to build onto it using the same basic concepts to make it more interesting, and make it more elaborate, and do anything you really want with it. But the basic idea here is to learn some of those basic game building concepts. Things like working with the sprites, and how to add a ball, and how to add animation, and detecting collisions, and the game loop, and several things like that which are not specific to iOS and Sprite Kit. You're gonna find them in several other game development arenas. But this is just a very easy way, I feel, to get back into this, especially if this is something that you maybe wanted to do or haven't done for a long time, and are interested in learning about on the mobile platform, specifically iOS. So that's really my motivation for doing this course, and I hope you can kind of relate. And if you can't, still, continue to follow along with me. You may notice that there's something in here that really strikes a chord with you that you're gonna wanna continue to do throughout your development career. And if that's the case, then great, and if not, you'll at least come out of this learning something a little bit new. And at the end of the day, that's definitely worth it.