Join us today at 1pm for some more fun, playing with the new set of playgrounds from Apple, Swan’s Quest!
Swan’s Quest, Chapter 2
Have you seen the session for Swan’s Quest, Chapter 2?
It is an awesome playground and builds on the previous challenge, but boy oh boy, are we in deep!
There are some brand new concepts we haven’t covered yet, in our sessions. But we’re going to dive in, anyway, and try and explain and help you solve this new challenge.
First, you’ll want to grab the latest playground from the playground feed we mentioned yesterday.
There’s no VoiceOver setup this time, today we’ll be working with sound, though.
What we’re almost certainly going to want to do is open up the Developer app, either on our iPad or on a Mac.
The Developer page for many sessions (including the Swan’s Quest ones we care about) has a tab bar near the top: Overview, Transcript, and Code.
We’re going to tap on the Code tab if we get stuck.
This tab includes all the code mentioned in the videos. You can copy the code and paste it right into your playground.
This playground uses some advanced stuff. In addition to more advanced audio stuff than we’ve played with, so far, in The Code Hub classes, it includes concepts like
Timers, which have some interesting properties, and
guard statements, which is a handy control mechanism in Swift.
We’ll talk about all of that stuff today on the session.
In these cases, where the content is that bit more difficult or maybe just something you’re not familiar with (yet), it helps sometimes to copy and paste in code someone insists will work, try it, run it, then play around with it. You can learn a lot by copying someone else’s code and then breaking it!
For the advanced
If you’re blazing ahead, congratulations!
I’ve added the blank Quest Create playground book in the feed, too, so you can grab that and add it to your iPad. It gives you a really interesting starting point for building your own adventure based off this code.
We’ll see you at 1pm, bring some popcorn, patience, and your coding pants!