Skip to Main Content
Learning iPhone Game Development with Cocos2D 3.0
book

Learning iPhone Game Development with Cocos2D 3.0

by Kirill Muzykov
June 2014
Beginner to intermediate content levelBeginner to intermediate
434 pages
9h 49m
English
Packt Publishing
Content preview from Learning iPhone Game Development with Cocos2D 3.0

Time for action – adding the background sprite

We will start by adding a good-looking background image instead of a boring black screen by performing the following steps:

  1. Open the Cocohunt project in Xcode if you've closed it.
  2. Before we can add background sprite to our game scene, we need to add an image file with the background to our project.
  3. Right-click on the Resources group in the Xcode Project Navigator on the left of the screen and choose the New Group option in the menu to create a subgroup. Call this group Backgrounds.
  4. Open the Chapter_04/Assets/Backgrounds folder and drag the following files (all files in the folder) over to the Backgrounds group that you just created:
    • game_scene_bg.png
    • game_scene_bg-hd.png
    • game_scene_bg-iphone5hd.png

    Refer ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit

Beginning Swift Games Development for iOS: Develop 2D and 3D games Using Apple's SceneKit and SpriteKit

James Goodwill, Wesley Matlock

Publisher Resources

ISBN: 9781782160144Supplemental Content