Swift 3, Spritekit, iOS 10: Program an iPhone Memory game

Detailed video lectures that take you step by step through the process of creating a pro game using Swift and Spritekit
4.5 (22 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.
240 students enrolled
$19
$20
5% off
Take This Course
  • Lectures 51
  • Length 3.5 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 2/2015 English

Course Description

Update: Code updated for Swift 3 and the latest iOS 10

Our iOS courses teaches the complete process needed to develop a complete professional iPhone game using Swift language and SpriteKit . Along our journey, you will learn the syntax of Swift, the latest most-efficient language used to develop for iOS, as well as important design patterns and best practices. By the end of the course, you should be able to understand and recreate many of the features seen on popular iOS games and extend that knowledge to making apps of your own.

We believe students learn by building. That's why we have you build an entire game from scratch during the course, with the final app being a full featured memory card matching game.

Every single step in show to you in video lectures. We even provide you with the image and sound assets, and the final completed source code of the fully working iPhone memory game.

Topics Covered:

Swift: Learn the language used to develop all native iOS and Mac apps

GameKit: Learn how to create world leaderboard, authenticate the user to the Apple Game Center, and submit best scores.

iOS8 and XCode 6: Learn the latest technology platforms from Apple

Rate & Review App: learn how to use a third party Objective-C library that let the user rate and review your app, by creating a bridge from Objective-C to Swift.

Storyboard: Learn how to create custom launch screens using Apple’s graphical interface builder

Internal data storage: Learn how to store game data settings on your device and how to retrieve them.

iAD: Learn how to monetize your app or game using their advertising banner.

icons: learn how to add your very own icons

sounds: learn how to add sound files and play them

What are the requirements?

  • a MAC computer or a MAC virtual machine

What am I going to get from this course?

  • Program using Swift: Learn the language used to develop all native iOS and Mac apps
  • Learn how to create world leaderboard, authenticate the user to the Apple Game Center, and submit best scores.
  • Learn the latest technology platforms from Apple - iOS 8 and xcode 6
  • learn how to use a third party Objective-C library that let the user rate and review your app, by creating a bridge from Objective-C to Swift.
  • Learn how to write code to ask players to rate and review the app.
  • Learn how to create custom launch screens using Apple’s graphical interface builder, the storyboard.
  • Learn how to store game data settings on your device and how to retrieve them.
  • Learn how to monetize your app or game using Apple iAD advertising banner
  • learn how to add your very own app icons
  • learn how to add sound files and play them

What is the target audience?

  • programming students
  • people who want to make mobile games
  • people who want to learn swift while building a real professional app

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: Getting started
02:10

Learn how to create the project using xcode.

02:19

Learn how to add image files to the xcasset images folder in xcode.

Note: Please go to the download tab and download all the necessary project files.

Addendum: We have modified the code for the newer xcode v6.3. Download the Memory Game Xcode6 3.zip file as well.

00:40

Learn how to add sound files to the xcode project.

01:09

In this lecture, we will clean up the default project off unecessary code and files.

03:15

In this lecture, you will learn how to create constant variables to reference asset files.

Section 2: Coding the game main menu
04:05

Learn how to add and display a background image using Spritekit and swift.

03:28

Learn how to adjust the default frame settings to render images correctly.

13:00

Learn how to create the in-game menu

06:57

Learn how to trigger a piece of code whenever a menu item is pressed by the player.

03:10

Learn how to use the fade in and out skactions to hide or show the menu items.

Section 3: Create the card board
05:26

In order to create the card board, we need to declare variables.

13:22

Learn how to create a dynamic card board using spritekit and swift

06:36

Learn how to create a dynamically generated random card sequence so that every game is a new and unique one.

01:15

Bugs are part of the programming process. You need to learn how to find them and fix them.

02:37

We want the player to be able to touch the cards. We are adding variables to prepare to do so.

04:29

Learn how to capture a reference to the card that the user just touched with his or her finger.

Section 4: Core logic to match cards
07:06

Learn how to code the logic to select 2 cards.

09:07

Learn how to program the logic to find out if 2 selected cards match or do not match.

Section 5: Score Board
02:23

We need a way to display score. Learn how to add variables that will be used to create the score board.

11:14

Now that we've created the variables, we can create the scoreboard

01:57

Learn how to retrieve game data from the nsuserdefault using swift

04:28

Learn how to program the code that checks if the game is completed.

03:00

Learn how to create a debug mode, also called a developer mode, in order to test the game without having to play the entire game, which would take too long

03:01

Once a game is over, we need to reset the cards statuses.

01:18

Learn how to the the game over functionality using the iPhone simulator.

05:35

Learn how to shift the location of the scoreboard.

03:25

Learn how to update and save the best score value to the default storage.

Section 6: Program extra functionalities
05:52

Program the logic to show or hide the finished flag that appears when the game is finished.

02:30

Learn how to find the flag display bug and how to fix it.

01:24

Get to program the logic to increase the attempt try count when both cards don't match.

05:48

Learn how to code the logic to display the reset button.

05:35

In this lecture, you will learn how to code the rest button logic in order to bring back the default settings prior to restarting a new game.

02:13

Learn how to write logic when user plays game again using swift

Section 7: Sounds
08:56

Learn how to add sound effects using SKActions with Swift language.

Section 8: Leaderboard and Game Center
00:35

Learn necessary information about the leaderboard, the rate app functionality and the iAD banner.

Note: If you want to do the publishing process to the itunes app store and use real settings, please refer to section 12: Optional: Setup iTunes Connect

06:20

Learn how to set up the leaderboard using some swift code

Note: If you want to do the publishing process to the itunes app store and use real settings, please refer to section 12: Optional: Setup iTunes Connect

06:08

Learn how to code the authentication of the player to the game center.

Note: If you want to do the publishing process to the itunes app store and use real settings, please refer to section 12: Optional: Setup iTunes Connect

01:58

Get to learn how to code the logic to show game center leaderboard using swift

02:47

Learn how to program the piece of code that is used to submit the best score to the game center leaderboard.

03:00

In this lecture, you will learn how to test the leaderboard authentication and how to show the leaderboard world's best scores.

Section 9: iAD advertising banner
03:57

Learn how to write the piece of code that will display the iAD banner.

Note: If you want to do the publishing process to the itunes app store and use real settings, please refer to section 12: Optional: Setup iTunes Connect

Section 10: Rate the Application
04:14

Learn the way to add the functionality to have the player rate and write a review for your game.

Note: If you want to do the publishing process to the itunes app store and use real settings, please refer to section 12: Optional: Setup iTunes Connect

03:10

Learn how to create a bridge from Objective-C to Swift in order to execute obj-C code in a Swift project.

Section 11: Icons and launch images
02:45

Learn how to add iPhone app icons of multiple sizes for each home screen sizes.

02:01

Learn how to modify the launch screens by adding your very own logo into them.

Section 12: Optional: Setup iTunes Connect
03:55

Learn how to take screenshots within the iPhone/iPad simulator.

02:47

Learn how to create the app in the itunes connect online portal

02:27

Learn how to add the app icon, the screenshots and the app details in itunes connect.

00:41

learn how to get the bundle app ID from itunes connect and use it to ask user to rate the app

03:31

Learn how to create the itunes connect leaderboard, add settings and connect it to the code

NOTE: the final completed project is located within the download tab of this lecture

BONUS
Article

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Yohann Taieb, Apps Games Unity iOS Android Apple Watch TV Development

Yohann holds a Bachelor of Science Degree in Computer Science from FIU University. He has been a College instructor for over 7 years, teaching iPhone Development, iOS 10, Apple Watch development, Swift 3, Unity 3D, Pixel Art, Photoshop for programmers, and Android. Yohann also has plenty of ideas which naturally turned him into an entrepreneur, where he owns over 100 mobile apps and games in both the Apple app store and the Android store.

Yohann is one of the leading experts in mobile game programming, app flipping and reskinning. His teaching style is unique, hands on and very detailed. Yohann has enabled more than 20000 students to publish their own apps and reach the top spots in iTunes App Stores, which has been picked up by blogs and medias like WIRED magazine, Yahoo News, and Forbes Online. Thanks to him, thousands of students now make a living using iOS 9, Swift 2, Objective C ( ObjC ), Android, Apple Watch ( watchOS ), Apple TV ( TVOS ), Unity 3D, and Pixel art animation

Ready to start learning?
Take This Course