Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments