// Use v3's new fixed size screen mode to make it easier to support multiple device scales and resolutions.
// It sets up Cocos2D with a 568x384 point "design size".
// On iPhone 4 you see the middle 480x320 of it and the rest is cropped.
// On iPhone 5 you see the middle 568x320 of it.
// On iPad you see the middle 512x384 of that. (It sets the iPad's content scale to 2 or 4 for retina)
CCSetupScreenMode: CCScreenModeFixed,cocos2d v3 fixed size screen mode
最新推荐文章于 2022-03-14 22:56:57 发布
文章介绍了如何利用Cocos2D的固定尺寸屏幕模式来简化对不同设备规模和分辨率的支持过程。通过设置设计大小为568x384点,该模式在iPhone 4上显示中间的480x320区域,并在iPhone 5上显示整个屏幕。对于iPad,内容比例调整为2或4以适应Retina显示屏。
1269

被折叠的 条评论
为什么被折叠?



