modify for Coco2dx using.