Im learning the new version of cocos2d-x 2.1.4
im porting cocos2d to x version , i want to port this section :
@ spriteSheet = [CCSpriteBatchNode
"foo.gif"]; player = [CCSprite spriteWithBatchNode:spriteSheet rect:CGRectMake(0, 0, 30, 56)];
spritSheet = CCSpriteBatchNode::create("foo.gif"); player = CCSprite::??? which function here ???();
CCSprite::spriteWithBatchNode(…) is removed, please use: sprite = CCSprite::spriteWithTexture(batchNode~~>getTexture, CCRect*); batchNode~~>addChild(sprite); instead
but there is no spriteWithTexture in CCSprite
what is replacement ?