Useful scripts for cocos2d-x