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

< Previous: Whack to win: SKAction sequences   Next: Project 15 >

Wrap up

You have another game under your belt, and I hope your brain is already starting to bubble up ideas for things you can do to improve it. Plus, you learned more skills, not least SKCropNode, SKTexture, GCD's asyncAfter(), the *= and -= operators, forcing method labels, plus lots of new SKAction types, so it's all time well spent.

If you're looking to improve this project, you could start by adding a smoke-like particle effect to be used when the penguins are hit, and perhaps a separate mud-like effect when they go into or come out of a hole. You could also record your own voice saying "Game over!" and have it play when the game ends.

Try experimenting with the difficulty and see what you come up with – is it easier or harder if the penguin show/hide animation happens at random speeds?

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.

Go from iOS to macOS the easy way!

If you like Hacking with Swift, you'll love Hacking with macOS – learn to build macOS apps today, using 18 real-world projects!

< Previous: Whack to win: SKAction sequences   Next: Project 15 >
Click here to visit the Hacking with Swift store >>