Add OpenFeint failed. (resolve)

Add OpenFeint failed. (resolve)
0.0 0


Hi all

Today I try to add OpenFeint(IOS) to cocos2d-x. But failed.

The EAGLView can not receive the touch event after OpenFeint init.
And the OpenFeint view cannot be displayed.
But I try it in Cocos2d, and it is ok.
So I think it is something wrong in cocos2d-x.

I add a few codes to init OpenFeint in AppDelegate. There are only 3 lines. I never change another codes.

My codes:

bool AppDelegate::applicationDidFinishLaunching()
    // initialize director
    CCDirector *pDirector = CCDirector::sharedDirector();

    // enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices.
    // pDirector->enableRetinaDisplay(true);

    // sets landscape mode
    // pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);

    // turn on display FPS

    // set FPS. the default value is 1.0/60 if you don't call this
    pDirector->setAnimationInterval(1.0 / 60);

    // create a scene. it's an autorelease object
    CCScene *pScene = GameScene::scene();

    // run

    [[OpenFeintManager sharedManager] initProductKey:@"FK5Zpku5TDCzXgSscNA"                                    

    return true;

I have upload my project to my website.

Look forward to your reply.

replacement of game center ?

I have resolved the problem.

Sorry. I have forgot to add resource of Openfeint into my project.:stuck_out_tongue:


Oops… a careless guy…