I think people here hate to see "Collision Detection", because this keyword has been asked frequencily.
I am a noobie in Cocos2D. I don't know how to read the Objective-C code. I begin at the google's Cocos2D - Android source code. Use it to write my first card game. I use Sprite to load the cards, CCRect for Collision Detection. But there is some problem when I detect the cards' clicking method.
I use CCRect to define the card size, use position to get the card location, as same as space shooter - "simple game of Cocos2D". Also implement the CCRect for the clicking area, then check their collision. But the card is Rectangle with different width and height, not the SQUARE! And my card will be ROTATE and put in the different location in the screen.
So the problem is, when I rotate the card and put them in the screen, waiting user click them and turn back, the rotated card's detection is very strange. Although I can set a variable to record if the card is rotate and change the CCRect's size to fit the image, THAT IS VERY COMPLEX!
Then I am now reviewing the Box2D classes in the source code. Can I use the Box2D's collision detection class in the Cocos2D game? And how to implement it in JAVA?