cocos2d iphone 5 4 英寸显示器支持 [英] cocos2d iphone 5 4 inch display support

查看:14
本文介绍了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 英寸显示器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆