Tuesday Discount - Lifetime Access for $20!!!! - Click Here!

Card and Board Games Tutorials for iOS and tvOS – Index

    Login               Join          





Card Games Tutorials for iOS and tvOS

Learn how to program Swift and Sprite Kit based card games and board games.

Created by: Justin

😍 1   👍 1   😐 0




Get full access...


Lifetime Access!

Get access to everything forever. Yes, everything. Yes, forever. Our best deal for sure! Need a coupon? Skip googling for one...

Activate a 24hr promo for first time visitors


Subscribe Yearly

Yearly subscribers get access to everything! Auto-cancels after two billings, at which point you qualify for a free Lifetime Membership!
Compare All Options



Want to feel warm and fuzzy??

If found us through one of our creator's links they'll get 50% of the sale!! That's how much we love our contributers!



Section 1

Initial Setup and Card Data

In this section we'll be setting up the project and giving the game scene some card data.



Initial Project Setup

Login to Mark Progress

Prototyping a Deck of Cards with the Property List

Login to Mark Progress

Creating an Array of each Card’s Dictionary

Login to Mark Progress

Drawing a Card and Adding to the Used Card Deck

Login to Mark Progress

Creating the Card Class and using an SKReferenceNode to Hold the Card Data

Login to Mark Progress

Showing the Amount and Name on the Card and Discussing Round Order and Rules

Login to Mark Progress

Establishing a Round Order (an array of events to framework gameplay)

Login to Mark Progress

Evaluating a Winner Based on the Values of Cards

Login to Mark Progress

Card and Boards Games Project Files – End of Session 1

Login to Mark Progress


Section 2

Making the Game Engine

In this session, we'll really begin to connect together the Property List with an Event based system for determining what does what.



Card and Board Games Tutorial – Introduction to Session 2

Login to Mark Progress

Storing Event Dictionaries for the Main Turn Order and Before / After Rounds

Login to Mark Progress

Creating an SKAction Array Sequence for Turn Events

Login to Mark Progress

Drawing Cards from Specific Decks

Login to Mark Progress

Dealing Hands with a Move Action

Login to Mark Progress

Adding Events Before and After the Round

Login to Mark Progress

Card and Boards Games Project Files – End of Session 2

Login to Mark Progress


Section 3

Continuing to Build the Card Game Engine

This session we will continue making a card game engine by adding more options / properties, and specifically functions to score based on card combinations (like if the player has 4 Aces, 3 queens, etc)



Parsing the Property List for Rules and Settings

Login to Mark Progress

Matching Combinations of Cards Part 1

Login to Mark Progress

Matching Combinations of Cards Part 2

Login to Mark Progress

Hiding and Moving Offscreen Hands of Non-Playing Players

Login to Mark Progress

Card and Boards Games Project Files – Middle of Session 3

Login to Mark Progress

Adding Property List Driven Images to the Card Class

Login to Mark Progress

New Properties and Other Odds and Ends

Login to Mark Progress

Allowing for Multiple Combos (like 3 of a Kind plus 2 of a Kind)

Login to Mark Progress

Scoring and Showing Which Combinations Matched

Login to Mark Progress

Card and Boards Games Project Files – End of Session 3

Login to Mark Progress


Section 4

Cameras, More Players, and More Code!

This section continues the fun, by adding up to 8 players, a camera with GUI that moves between hands, and plenty more.



Moving a Camera Between Hands

Login to Mark Progress

More Operational Functions to Accomadate Adding More Players

Login to Mark Progress

Evaluating Scores for Up to 8 Players

Login to Mark Progress

Tweaking More Code for 8 Players

Login to Mark Progress

Fine-Tuning the Combination Code

Login to Mark Progress

Repeating Events in the Turn Order

Login to Mark Progress

Creating GUI to Accept or Decline Prompts to the User

Login to Mark Progress

Coding the Accept or Decline Buttons and Transitioning in and out the GUI

Login to Mark Progress

Card and Boards Games Project Files – End of Session 4

Login to Mark Progress


Section 5

Starting with a Home Menu, Adding Buttons and Setting up External Controllers

The title says it all! We'll spend this session switching the app to begin with a home menu, adding menu buttons (and a Button class) then working with External Controllers for iOS or tvOS.



Switching the App to Begin with a Home Menu instead of the Game Scene

Login to Mark Progress

Creating a Button Class to Change Number of Players and Load the Game

Login to Mark Progress

Loading the Main Game or Another Menu

Login to Mark Progress

Setting up a Selection Order for Buttons

Login to Mark Progress

Swiping to Select Buttons – Also used for the External Game Controllers

Login to Mark Progress

Adding External Game Controller Support

Login to Mark Progress

Playing Sounds, Buttons that go to URLS, and More

Login to Mark Progress

Card and Boards Games Project Files – End of Session 5

Login to Mark Progress


Section 6

Session 6 - Card wrap up

In this session we'll begin wrapping up the card gameplay



Session 6 Introduction

Login to Mark Progress

Card and Boards Games Project Files – Beginning of Session 6

Login to Mark Progress

Differences Between the End of Session 5 and Beginning of 6

Login to Mark Progress

Setting Label Text When a Card is Drawn or from an Event

Login to Mark Progress

Pinch Gestures to Zoom Out and Double Tap Gestures to Reset Zoom on iOS

Login to Mark Progress

Adding Enums for PlayMode and UseCardMode

Login to Mark Progress

Prompting the Player to Use Cards

Login to Mark Progress

Odds and Ends Catch Up

Login to Mark Progress

Adding or Subtracting Player Currency when a Card is Drawn or Used

Login to Mark Progress

Duplicating Cards in the Deck

Login to Mark Progress

Card and Boards Games Project Files – Session 6

Login to Mark Progress





Category: Game Development  -   Primary Software: Xcode  -  
Tags:   card game - card app - Xcode - iOS - tvOS - iPhone - iPad - Swift - Sprite Kit











Get a Free account...

Sign up for a FREE user account below. No payment info required.
We'll even send a Limited Time Discount Code for half off our Lifetime Membership!















Know what an affiliate program is? You make money just by sharing links to our site! Win. Win.

Earn when you refer any buyer here! 30 day tracking. Commissions are 33%-50% and recur on subscription products!