Demo for Cocos2dx 3.x version