Game Development Reference
In-Depth Information
3. And finally, we implement our new method to retrieve the radius of our sprite,
which we determine to be half its texture's width:
float GameSprite::radius() {
return getTexture()->getContentSize().width *
0.5f;
}
Search WWH ::




Custom Search