Discussion of the restructuring framework

I like cocos2d-x

but framework will need to change the structure of the project

Now create a project manually, or add to an existing nearly impossible

I see the structure of the project

cocos2d

  • cocos2d. h

  • android
    —- cocos2d_android. h
    —- cocos_denshion. h
    —- extenshions. h

  • windows
    —- cocos2d_windows. h

  • ios

  • blackbary

  • custom

in project it will connect a single line

MyProject.h

  1. define _ BOX2D_

  2. define _ COCOS_DENSHION_

  3. define WEBP

  4. define _ UI_BUTTONS_

  5. include cocos2d.h

….

and add to the project only files that we need

  1. ifdef _ BOX2D_

  2. include "android/box2d/box2d.h

  3. endif