I have submitted SpaceBubble to Google Code. Pick up a copy of the source code here!
I have submitted SpaceBubble to Google Code. Pick up a copy of the source code here!
Here is some example code based off my tutorial on how to implement orbital / radial gravity, but in reverse. This example pushes objects away instead of pulling inward. It makes for a nice explosion effect. Much work would need to be done to make it realistic, but you get the general idea of how to blow things up. You need to have Cocos2D and Box2D installed. Box2D comes packaged with the latest version if Cocos2D.

I am releasing the Objective-C source code to my iPhone game SpaceBubble to the public! It is released under the “Take a kid fishing or hunting license” which means in order to use this code in your project you must take a kid fishing or hunting, and give credit and a link back to the author (me) in some way or another such as on your product web page, about box, or legal agreement.
I hope this helps you take the leap into iPhone game development. Enjoy!
Download:
SpaceBubble Source Code – 938k