通用cocos2d游戏支持iPad3 [英] Universal cocos2d game to support iPad3

查看:117
本文介绍了通用cocos2d游戏支持iPad3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

图像资源如何命名为ipad&

How would the image resources be named for the ipad & ipad HD versions in a universal app?

当支持iPhone的正常和高清图像时,我们使用 imageName.png imageName-hd.png 。但如果我做一个普遍的我是正确的,假设我必须重命名的图像,并使用 imageNameiPad.png & imageNameiPad-hd.png

When supporting normal and HD images for iphone we use imageName.png & imageName-hd.png. But if I make an universal am I right in assuming that I would have to rename the images and use imageNameiPad.png & imageNameiPad-hd.png?

请告诉我命名惯例的工作原理。

Please let me know how the naming convention works.

感谢
Abhinav

Thanks Abhinav

推荐答案

cocos2d 1.1beta)是这样的:

The correct way in cocos2d (version 2.0 or 1.1beta) is this:

正常iPhone:

image.png

image.png

Retina iPhone:

image-hd.png

image-hd.png

正常iPad:

image-ipad.png

image-ipad.png

Retina iPad:

image-ipadhd.png

image-ipadhd.png

必须在代码中调用image.png,然后代码将检测到什么设备,并正确使用该文件。

You must just call image.png in your code, then the code will detect what device is and use the file properly.

这篇关于通用cocos2d游戏支持iPad3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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