I am following the fruit ninja tutorial at http://www.raywenderlich.com/14302/how-to-make-a-game-like-fruit-ninja-with-box2d-and-cocos2d-part-1 .
I don’t know whether I could be successful but , I have started the project .
// Add inside the initWithPoints: andTexture: usingTriangulator: method
self.shaderProgram = [[CCShaderCache sharedShaderCache] programForKey:kCCShader_PositionTexture];
1.what is shaderProgram it not present when I pressed this~~> …
2.And I think properties are not present in c*+ hence I left over the properties
// Add after the
property(nonatomic,readwrite)BOOL original;propertyb2Vec2 centroid;
Is this ok ?
3. What about these methods
// Add before the @end~~initWithTexture:texture body:body original:original;
~~initWithFile:filename body:body original:original;
spriteWithFile:filename body:body original:original;
+spriteWithTexture:texture body:body original:original;
~~createBodyForWorld:world position:position rotation:rotation vertices:vertices vertexCount:count density:density friction:friction restitution:restitution;
These are not understandable by me , please answer ..