Example code for cocos2d-x on linux