code test based on cocos2dx