Reputation: 15639
I have worked with cocos2d before, that was simple game with moving objects (CCSprite), but now I want to make a bubbleshooter game , Can anyone briefly give me idea how it will work, the flow of game and what should I use, like as I think there will be on layer, and CCSprite over it, but still not clear idea in mind
I would be thankful if someone will describe the whole flow, and classes, more briefly I will specify some major points
I would be thankful if someone provide the related task tutorials or source codes, so that I would get better idea about it.
Upvotes: 0
Views: 1699
Reputation: 787
collision detection as usual.In scheduler method find if the Moving ball is collide with other ball.
-(void)checkCollision
{
for(CCSprite *ball In ballArray)
{
if(CGRectIntersectRect([ball boundingBox],[movingBall boundingBox]))
{
CCLOG(@"collision Occurs");
}
}
}
Upvotes: 1