cocos2d iphone 5 4 inch display support(cocos2d iphone 5 4 英寸显示器支持)
问题描述
我一直在到处寻找这个,但没有运气.
I have been looking everywhere for this but with no luck.
如何为更大的 4 英寸 iPhone 5 显示屏准备基于 cocos2d 的游戏?我的应用程序正在运行,但我想为更大的 4 英寸显示屏增强它.Cocos2d 为视网膜显示图像使用自己的后缀.对于 iPhone 4 和 4S 的视网膜显示,它是 image-hd.png
.iPhone 5 有后缀吗?我该如何做到这一点?
How do I prepare my cocos2d based game for bigger 4 inch display of the iPhone 5?
My app is working but i want to enhance it for the bigger 4 inch display.
Cocos2d uses its own suffixes for retina display images. For retina display of the iPhone 4 and 4S it is image-hd.png
. Is there a suffix for iPhone 5? How do I accomplish this?
干杯.
推荐答案
添加到 AppDelegate:
Add it to AppDelegate:
[CCFileUtils setiPadRetinaDisplaySuffix:@"your suffix"];
[CCFileUtils setiPadSuffix:@"your suffix"];
[CCFileUtils setiPhoneFourInchDisplaySuffix:@"your suffix"];
[CCFileUtils setiPhoneRetinaDisplaySuffix:@"your suffix"];
这篇关于cocos2d iphone 5 4 英寸显示器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:cocos2d iphone 5 4 英寸显示器支持


基础教程推荐
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01