Port of cocos2d-iphone in C++