Some utility for cocos2d-x