Source Code Example: Creating A Destructible Environment With Cocos2D iPhone

Destructible ground is a staple feature of many games, and if you’ve ever wondered how it’s done here’s a great example showing created using Cocos2D.

Jean-Phillipe Sarda has created a source code example using Cocos2D where he uses the CCMutableTexture class created by Lam Pham (a Cocos2D texture class allowing you to easily modify individual pixels).

Here’s a video showing the code in action:

You can find the example on Github here.

You can find an in-depth writeup on the Cocos2D blog explaining the steps taken to improve performance.

A great starting point if you’re interested in creating a destructible environment in your Cocos2D games.

DeliciousTwitterFacebookRedditLinkedInEmail

Original article: Source Code Example: Creating A Destructible Environment With Cocos2D iPhone

©2012 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.


Leave a Reply

Your email address will not be published. Required fields are marked *