Chapter 4
Working with Physics and Collision Detection

In the previous chapter, you added the drop collectible items and learned how to chain actions together so that the gloop drops appear to be dripping from the top of the scene. You also got your feet wet with the iterative and incremental development process by adding your code in smaller chunks and modifying the way the player moves.

In this chapter, you’ll get your first look at using the SpriteKit physics engine. The SpriteKit physics engine makes it possible for your SpriteKit games to simulate physics and detect collisions.

When you attach physical properties to your game objects, they can interact with each other in the game world as they would outside of it. But don’t worry; you won’t need to be a rocket scientist or astrophysicist to play with the SpriteKit physics engine.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset