cocos2dx getContentSize

前端之家收集整理的这篇文章主要介绍了cocos2dx getContentSize前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

假如使用一张图创建了一个精灵,图片的大小120*120,缩放先后通过getContentSize获取的大小不变,所以如果

使用相对位置,需要考虑到缩放。

before scale getContentSize: width = 120 before scale getContentSize: height = 120 after scale getContentSize: width = 120 after scale getContentSize: height = 120

原文链接:https://www.f2er.com/cocos2dx/343970.html

猜你在找的Cocos2d-x相关文章