11. Making Games with Physics
SpriteKit makes it easier than ever to make physics-based games. In this chapter we will create our own physics-based game, without any extra math needed. SpriteKit will do all the physics-based animations and take care of everything needed to make a fully functional game in Swift. We are going to make a game similar to Peggle. You drop a ball and it hits other balls, and each ball it hits gets removed at the end of the ball’s journey to the bottom. This game will be the basis for any other ball-dropping game you want to make. In the process of making this simple game, you will understand how you can take this game further and make your own game. We will cover collision detection again, but this time we will go deeper. ...
Get Learning Swift 2 Programming, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.