Updated Sample Compatible with Cocos2dX3.1