RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Wednesday, October 30, 2013
Cocos2D Cropping Sprites
Useful trick for features like graphical health bars etc.
theSprite->setTextureRect(CCRectMake(x,y,w,h));
Reference:
http://www.cocos2d-x.org/forums/6/topics/32721
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment