Cocos2d iphone 视网膜显示错误?(Cocos2d)

Cocos2d iphone 视网膜显示错误?(Cocos2d),cocos2d-iphone,Cocos2d Iphone,我在我的项目中使用了enableRetinaDisplay,除了使用此代码外,它工作得非常好 //+++VRope //create batchnode to render rope segments CCSpriteBatchNode *ropeSegmentSprite = [CCSpriteBatchNode batchNodeWithFile:@"rope.png" ]; [game addChild:ropeSegmentSprite]; //Creat

我在我的项目中使用了
enableRetinaDisplay
,除了使用此代码外,它工作得非常好

//+++VRope
    //create batchnode to render rope segments
    CCSpriteBatchNode *ropeSegmentSprite = [CCSpriteBatchNode batchNodeWithFile:@"rope.png" ];
    [game addChild:ropeSegmentSprite];
    //Create two cgpoints for start and end point of rope
    CGPoint pointA = ccp(73, 330); //Top
    CGPoint pointB = ccp(self.position.x +5, self.position.y +30); //Bottom
    //create vrope using initWithPoints method
    verletRope = [[VRope alloc] initWithPoints:pointA pointB:pointB spriteSheet:ropeSegmentSprite];

这段代码不是绘制绳子的一个高分辨率图像,而是绘制两个绳子图像。我知道是视网膜显示导致了这种情况,因为我在iPhone3GS和模拟器上进行了测试,效果非常好。。。直到我在我的iPhone4上测试它,它才从一根绳子变为两根绳子。我做错什么了吗?

我知道现在已经太晚了,但我在搜索谷歌时在第一页找到了这个问题,所以我将在以后发布这个答案供其他人查找

在VRope.mm中搜索

[[[spriteSheet textureAtlas]纹理]像素]

并替换为

[[[spriteSheet textureAtlas]纹理]像素高]/CC\u内容\u比例\u因子()

就这样