Box2D – Cocos2d – ObjC Complex Code Design

I got lost with a few kinks added in C10 and the vector stuff and c++ stuff in Ch11.   So Id like to review what is happening by the time we get to the cart that you can move via the accelerometer. 1. Before we only needed to add a cocos2d scene and then a layer to make a screenful of action.   With Box2D we must still create a Scene and Layer but we add the C++ format of Class.h & Class.mm  instead of just .m. We also added a query callback C++ Class that serves the specific purpose of  cycling through all bodies in the [b]box2d world?… Read More

Continue Reading