Guest User

Untitled

a guest
May 17th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(CGRect) getBounds:(CCSprite *)sprite
  2. {
  3.     CGSize s = [sprite contentSize];
  4.     s.width *= scaleX_;
  5.     s.height *= scaleY_;
  6.     return CGRectMake(
  7.                       position_.x – s.width * anchorPoint_.x,
  8.                       position_.y – s.height * anchorPoint_.y,
  9.                       s.width,
  10.                       s.height);
  11.  
  12. }
Add Comment
Please, Sign In to add comment