To Collide or Not to Collide When you create simple Box2d objects, they will collide with each other. But what if you do not want an object colliding with all other objects? What if you want certain objects colliding with only certain other objects? How do we achieve this finer grained control? Say that our … [READ THE FULL ARTICLE]

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]

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]

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]

Beginning Box2D Physics Engine

What Is It? Cocos2d comes with two physics engines. One is called Chipmunk and the other is called Box2d. Chipmunk sounds cuter and is written in C, whereas Box2D is written in C++. I chose to learn Box2d because it seems to be the more popular and mature of the two. Instead of trying to … [READ THE FULL ARTICLE]

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]

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]

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]

I told myself that I would keep this blog updated, but I’ve been derelict in keeping my self-made promise. So I am putting forth the effort to post more regularly. Even before the iPhone was released to the public, I saw a demo video of the iPhone and one of the things that blew me … [READ THE FULL ARTICLE]

Getting SVN to work with SCM

If you don’t have someone that you’re collaborating with in your software project, this post does not apply to you.  But then again, if you’re writing software and you’re doing it by yourself, your probably should find someone.  You can only lay so many bricks in your lifetime.  So go get yourself a teammate and … [READ THE FULL ARTICLE]

© 2012 Uchidacoonga Suffusion theme by Sayontan Sinha