add quick a star code from cocos2dx forum