Learning how to write a game with Cocos2d-X