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

Free Swift and Sprite Kit Tutorial from our Pinball Games Series – Part 7

Free Swift and Sprite Kit Tutorial from our Pinball Games Series – Part 7
May 18, 2016 Justin

Free Swift and Sprite Kit Tutorial

From our Pinball Games Tutorial Series – Part 7: Programming External Controllers – Extended GamePad

In this Swift video tutorial, we’ll begin programming code to connect external game controllers to the app. Yes, the Nimbus Steel Series included. This will allow bluetooth game controllers to play your pinball table, on both iOS or tvOS systems. We begin by adding controller observers, to listen for the controller connecting or disconnecting. We’ll then discuss setting the playerIndex, so player 1 might be assigned to one controller and player 2 is assigned to another. We’ll then program the extendedGamepad’s valueChangedHandler to actually listen out for specific buttons being pressed. This might be the dpad (directional pad), thumbstick (left or right), or other buttons.

Never lose your place.

Sign up for the newsletter to get a free CartoonSmart account and track your progress in every course.

I'm cool. Sign me up!




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!