Archive for the ‘Programming’ Category
For those of you that have gotten a chance to use CocosDenshion, it is the sound engine written by Steve Oldmeadow.
It’s great since loading audio effects and music for us was quite a task beforehand.
Here’s a little demo of what we are going to make in this article shown running on the iPhone simulator.
Well today what we’ll look at is the CDAudioManager class of the CocosDenshion package itself and see if we can produce some neat effects to spice up our games.
Read the rest of this entry »
Posted in cocos2d • 8 Comments »
Memory Management in Objective-C
Looking at memory management in Objective-C for the first time can be a little bit strange whether you have programming experience or not. Some memory seems to be auto-magically handled for you; other times you need to comb through code looking for allocations and releases. I’ll attempt in this tutorial to concisely go over key starting points in memory management and focus on the Objective-C beginner. One major thing I will leave out or gloss over is retain count for this tutorial, I find it’s much easier to begin without thinking about retain count and just following some more general rules. Make sure you do eventually learn about retain count though as it can be important in programming and debugging. Let’s get started!
Read the rest of this entry »
Tags: alloc, dealloc, memory management
Posted in Objective C, Programming • Break the silence... »
