I try to init an CCArray withthe following code
CCArray *spaceDusts = CCArray::initWithCapacity;
But i receive an error when compile:
cannot call menber function ‘bool cocos2d::CCArray::initWithCapacity(unsigned int)’ without object
I make a syntax error? or what?
Another thing, in cocos2d-x 0.12.0 version I use the CCMutableArray, but now it’s deprecated in cocos2d-version.
I have this code:
CCMutableArray<CCSprite > _asteroids ;
What I can use to replace it?