library from cocos2dx