Chapter    11

Audio and Labels

In this chapter, you will learn how to play audio, both sound effects and music. Sound effects can be played via the Timeline, but most of it will have to be programmed using ObjectAL, the audio engine used by Cocos2D and SpriteBuilder.

The second half of the chapter is dedicated to labels—specifically, TrueType font effects as well as why and how to use bitmap font labels. You will also find an introduction on localizing label texts, and how to ensure a localized label can be changed to embed numeric information at runtime, such as score and other counters.

Introducing ObjectAL

Cocos2D includes the ObjectAL audio framework to play back sound effects and music. ObjectAL is a framework built around the low-level ...

Get Learn SpriteBuilder for iOS Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.