Jul 032011
 

Hello everyone! A few months have passed since I posted Simple Platformer Using Cocos2d and Box2d with Collision Detection. I have received many positive feedbacks and interest on the tutorial. I am glad that it has been helpful for so many in the community! Also, I would like to share the good news that the … [READ THE FULL ARTICLE]

 Posted by at 9:35 am  Tagged with:
Mar 172011
 

I received a few requests for a simple Mario-like platformer tutorial. So I am keeping my promise. The sample is far from a full fledged Mario clone, but I hope it it can at least start you off in the right direction. This tutorial builds upon concepts covered in “Beginning Box2d Physics Engine” and “Side … [READ THE FULL ARTICLE]

Mar 112011
 

Life has once again conspired to keep me away from updating the blog as frequently as I promised. I meant to write a simple platformer tutorial, but I had an interview with Google that seriously threw a monkey wrench into my plans. So I am just catching up on the backlog of tasks I need … [READ THE FULL ARTICLE]

Jan 132011
 
Side Scrolling the Background in Box2D and Cocos2D

I could not find a simple tutorial that demonstrated a Box2D side scroller with the camera fixed on the player. Meaning, it would give the appearance of the background scrolling while the player remains stationary in one spot on the screen. So for this article, I am going go through a simple tutorial to do … [READ THE FULL ARTICLE]

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: