Posts Tagged ‘explosion’

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.




Download Source Code for this tutorial:
Bomb Demo Box2d & Cocos2d Example Source Code – 799k

Twitter Me