-(instancetype)init
{
if((self = [super init]))
{
// Enable touch handling on scene node
self.userInteractionEnabled = YES;
// Load the generated physics shapes into the PhysicsShapeCache
[[PhysicsShapeCache sharedShapeCache] addShapesWithFile:@"Shapes.plist"];
// Load background image
CCSprite *background = [CCSprite spriteWithImageNamed:@"background.png"];
background.anchorPoint = ccp(0,0);
[self addChild:background];
// Setup physics world
_physicsWorld = [CCPhysicsNode node];
_physicsWorld.gravity = ccp(0,-900);
//_physicsWorld.debugDraw = YES;
[self addChild:_physicsWorld];
// Add ground sprite (set as static in PhysicsEditor)
[self spawnSprite:@"ground" atPos:ccp(0,0)];
// Add a banana
[self spawnSprite:@"banana" atPos:ccp(self.contentSize.width/2,self.contentSize.height/2)];
}
return self;
}
I need to add the chipmunk plist file loaded in to my project … plss help!