Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Cocos2d Cross-Platform Game Development
  • Table Of Contents Toc
  • Feedback & Rating feedback
Mastering Cocos2d Cross-Platform Game Development

Mastering Cocos2d Cross-Platform Game Development

By : Alex Ogorek
4.5 (4)
close
close
Mastering Cocos2d Cross-Platform Game Development

Mastering Cocos2d Cross-Platform Game Development

4.5 (4)
By: Alex Ogorek

Overview of this book

If you are a developer who is experienced with Cocos2d and Objective-C, and want to take your game development skills to the next level, this book is going to help you achieve your goal.
Table of Contents (10 chapters)
close
close
9
Index

Learning about OALSimpleAudio

If you've ever wanted an easy way to play sound files, OALSimpleAudio is the thing you need. It can very easily load a large variety of sound files, play effects, loop background music, and a lot more. Its existence and integration with Cocos2d makes it much easier to bring your game to life with the immersive capabilities of sound and music.

Tip

If you've programmed in Cocos2d before and are wondering where SimpleAudioEngine is, starting in Cocos2d v3.0, OALSimpleAudio is the new way to play sound effects. It's basically everything that SimpleAudioEngine was.

Preloading effects

If you try to play an effect using OALSimpleAudio, there will be a slight freeze, or delay, as the device tries to quickly load the effect into the memory and then play it right away. Luckily, there's a way to load the sound effects and music such that it doesn't freeze in front of your users when you try to play an effect.

OALSimpleAudio allows preloading of effects...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Cocos2d Cross-Platform Game Development
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon