Learn to draw shapes in SpriteKit while making a fun and tense slicing game.
I don't want to put you off, but this is by far the longest project in the series. It's not the most complicated, but it's long, coming in just short of 500 lines in total. That said, I hope it'll be worth it, because the end result is great: we're going to make a Fruit Ninja-style game, where slicing penguins is good and slicing bombs is bad. I think I must unconsciously have something against penguins…
Anyway, in this project you're going to be creating your own enums for the first time, you're going to meet SKShapeNode and AVAudioPlayer, you're going to create SKAction groups, you're going to create shapes with UIBezierPath, learn about default parameters, and more. So, it's the usual recipe: make something cool, and learn at the same time.
This is the second of two projects that are hard – not because I'm trying to set you back, just because they are more complex than the others. This project is hard because you need to write a lot of code before you can start to see results, which I personally find frustrating. I much prefer it when I can write a few lines, see the result, write a few lines more, see the result again, and so on. That isn't possible here, so I suggest you make some coffee before you begin.
Hacking with Swift Project 17 - Swifty Ninja
📄 Viewing lite version
Full site ›
Price not listed
🛒 Buy New on Amazon 🇺🇸
Book Details
Author(s)Paul Hudson
ISBN / ASINB00S0AQS0S
ISBN-13978B00S0AQS02
Sales Rank2,527,952
MarketplaceUnited States 🇺🇸