O'Reilly logo

Learning iOS 8 Game Development Using Swift by Siddharth Shekar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Advanced SpriteKit

In this chapter, we will cover some advanced features that are present in SpriteKit, such as lighting and physics, that will make the process of game development easier and will make our game looking prettier. With lighting, we can create a light source and make certain objects in the scene cast shadows and get affected by the light. Using a physics engine, we can make the game objects automatically get affected by gravity and forces applied externally.

We will also look at how to import classes, which are written in Objective-C, so that if you have already written some classes for the SpriteKit Objective-C, we can easily bring them into Swift without the need to rewrite the code again.

Using this new knowledge of importing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required