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 – modifying the game to use spritesheets

Now that we've generated the spritesheet, let's modify our Cocohunt game to use it instead of the single sprites by performing the following steps:

  1. Let's remove the Birds and the Hunter groups with all their contents from the Resources group in Xcode.

    Tip

    You can either right-click on the group and select Delete or just select the group(s) and press the delete key on the keyboard.

  2. In the remove dialog, you can select Move to Trash, as we're not going to use those images anymore.
  3. After removing the images, let's add our spritesheet. Create a new group inside the Resources group and call it Spritesheets.
  4. Open the folder with the files that you've published from TexturePacker and add the following ...
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