Sample codes utilising cocos2dx frameworks