learn cocos2dx 3,  practice code