Hey ,
im trying to port simple game in cocos2d to cocos2d-X
i have this line of code that checks if button is touched
if (CGRectContainsPoint([backButton boundingBox],
convLoc)) {
return true;
}
how do i convert it to c++ , i can’t find any CGRectContainsPoint .
and if i look at CCRect , i see :
containsPoint
and
bool intersectsRect(const CCRect & rect)const
but im not sure how to use them in my CCLayer extended class that in one of the methods i check if i touched the button