O'Reilly logo

iOS 7 Game Development by Dmitry Volevodz

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

Adding a background image to our game

First we need to add the background file to our project. Xcode 5 offers new ways to handle your assets. Find background.png in resource files for this chapter. Find images.xcassets in the project navigator on the left-hand side of the screen. Click on it and you will see a list of resources currently in your application. Drag-and-drop background.png into the left-hand list near Appicon and LaunchImage. Background will be added to the list of available resources. Select it and drag it from the 1x box to the 2x box, as this is a high-resolution image to use on retina devices.

Next, we should utilize this image somehow. The first thing that comes to mind is to make SKSpriteNode out of the image and move it in ...

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