Dec 212010
 

Although it has gotten better with the new generation of the iPhone, programmers must continue to be vigilant when it comes to memory usage if they want to avoid their applications crashing mysteriously. The best way to avoid the didReceiveMemoryWarning is to minimize memory usage from the get-go. Safest sex being abstinence and all that… … [READ THE FULL ARTICLE]

 Posted by at 9:50 am
Dec 172010
 

While playing around with various sample codes downloaded from the interwebs, I noticed that the addAnimation method of CCSprite has been deprecated. Though it continues to compile and run without a hitch, my OCD comes to the rescue. If you refer to the API reference for version 0.99.5 of Cocos2D (here if anyone is interested), … [READ THE FULL ARTICLE]

 Posted by at 2:01 pm  Tagged with:
Dec 162010
 
Part 2 of 2: Cocos2D Animation Using a Texture Sheet / Texture Atlas

This is a continuation of yesterday’s entry Animation in Cocos2D (running across the screen). I want to achieve the same animation but use a texture atlas instead of loading individual sprites. What is it? A texture atlas (sometimes called a texture sheet) is simply a single image which contains all (or some) of the sprites … [READ THE FULL ARTICLE]

 Posted by at 9:13 pm  Tagged with:
Dec 152010
 
Part 1 of 2: Cocos2D Animation (running across the screen)

Introduction I have always been mesmerized by video games and have wanted to make games since I started programming. The kind of games that I wanted to make were the kinds that were being produced by big studios with multi-million dollar budgets. So every time I tried to venture into it, I let myself get … [READ THE FULL ARTICLE]

 Posted by at 9:09 pm  Tagged with:
Dec 112010
 
Unknown class CLASS NAME in Interface Builder file

Every now and then I run into a issue that ends up taking disproportionately inordinate amount of time to the simplicity of the problem. I ran into such an issue a couple days ago. I checked and rechecked but I continued to get an error message in my console whenever I ran the project. The … [READ THE FULL ARTICLE]