NEW! Master Swift design patterns with my latest book! >>

< Previous: Game over, man: SKTexture   Next: Project 18 >

Wrap up

You've just finished two hard projects back to back, and regardless of how much you have learned you deserve kudos for all your patience. This project required you to follow several long steps before you could see your code run. I hope it was worth it, and I hope in retrospect that you can see why all the code was needed.

Along the way, you've learned all about SKShapeNode, AVAudioPlayer, UIBezierPath, custom enums, default method parameters, and more, so you're several steps closer to your goal of being an experienced Swift developer. Well done!

If you're looking to improve this project some more, and you're able to steer yourself away from the particle editor for a few minutes, why not have a go at removing the magic numbers in the createEnemy() method. Instead, define them as constant properties of your class, giving them useful names. You could also try adding a new and fast-moving type of enemy that awards the player bonus points if they hit it.

You did it! Now what?

You finished another project, and I'm glad Hacking with Swift helped you. Now I need your help. Please take just a moment out of your day to tell others about Hacking with Swift so they can benefit too.

You can click below to post a tweet straight to this project. Or if you're feeling particularly generous, you can click here to link to Hacking with Swift on your website and help spread the word.

Thank you. Your support is what keeps me going!

 

About the author

Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and Mario Kart world champion. OK, so that last part isn't true. If you're curious you can learn more here.

Upgrade to the premium experience

Get all 40 projects in PDF and ePub, plus exclusive content that will take your Swift learning to the next level – buy the Hacking with Swift book today!

< Previous: Game over, man: SKTexture   Next: Project 18 >
MASTER SWIFT NOW
Buy Practical iOS 12 Buy Pro Swift Buy Swift Design Patterns Buy Practical iOS 11 Buy Swift Coding Challenges Buy Server-Side Swift (Vapor Edition) Buy Server-Side Swift (Kitura Edition) Buy Hacking with macOS Buy Advanced iOS Volume One Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with Swift Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code

Was this page useful? Let me know!

Click here to visit the Hacking with Swift store >>