generate binding code for cocos2d, not tested yet, but looks good