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 hit points

Okay, let's add a point floating from the bird we hit with an arrow:

  1. The first thing we need to do is to add the fonts to the Xcode project. We're going to add all fonts at once, not only the points font. There are a lot of files, so it would be better to create a group for them. Go ahead and create a subgroup called Fonts in the Resources group.
  2. Add all the font files that we've created to that group. You should have a total of 12 files: two files (.png and .fnt) per font, 2 font variations (Retina and non-Retina), and total of 3 fonts. This gives us 2 * 2 * 3 = 12.

    Note

    If you have the trial version of Glyph Designer or some issues with exporting files, you can just take all the font files from the Chapter_06/Assets/BitmapFont ...

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