cocos2d-x game common utils.