Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(CGRect) getBounds:(CCSprite *)sprite
- {
- CGSize s = [sprite contentSize];
- s.width *= scaleX_;
- s.height *= scaleY_;
- return CGRectMake(
- position_.x – s.width * anchorPoint_.x,
- position_.y – s.height * anchorPoint_.y,
- s.width,
- s.height);
- }
Add Comment
Please, Sign In to add comment