Ray Wenderlich, again, wrote an interesting article about cocos2d and box2d.
This time, the article is about how to make a simple Breakout game.
The article includes:
- How to setup Box2d (gravity, bodies, etc…)
- How to handle collision detection in Box2d
- How to add and destroy Box2d bodies
- How to link a CCSprite with a Box2d body
- Uses touches to move the paddle
- Plays music and sound effects using CocosDenshion
- It has a You Win and a You lose scene
- The Xcode project





0 Responses to “cocos2d and Box2d encore”