如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像 [英] How to add seperate iPad and iPhone images in spritebuilder- Cocos2d 3.2

查看:13
本文介绍了如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢 Spritebuilder 采用视网膜 iPad 图像并自动制作缩小的 iPhone 图像.

I love that Spritebuilder takes the retina iPad image and automatically makes the scaled down iPhone images.

我制作一张图片(ipad 视网膜),然后 spritebuilder 自动制作 iPhone:

I make one image (ipad retina), And spritebuilder makes the iPhone ones automatically:

但对于某些按钮/精灵,我想自己制作 iPad 和 iPhone 图像.如何为可在 Spritebuilder UI 中使用的图像添加自定义 iPhone 和 iPad 版本?

But for certain buttons/sprites, I wanted to make both the iPad and iPhone images myself. How do I add custom iPhone AND iPad versions for an image that can be used in the Spritebuilder UI?

例如.为 iPad(视网膜)使用一张图片,但为 iPhone 使用另一张图片.

Eg. Use one image for iPad (retina), But use another one for iPhone.

另外,如何在我的 Spritebuilder XCode 项目中添加外部 spritesheet 之类的东西?(添加 -hd 或 -ipadhd 后缀不再起作用,它总是选择没有后缀的那个)-我听说这与资源电话"有关?

Also, how do I add something like an external spritesheet into my Spritebuilder XCode project? (Adding the -hd or -ipadhd suffix no longer works, it just always chooses the one with no suffix) -I heard is has something to do with 'resources-phone'?

推荐答案

如果您在 SB 中选择一个图像,您可以在文件视图的上半部分看到它的预览图像.图片下方是 4 个标记为 auto 的较小按钮,每个平台(手机、phonehd、平板电脑、tablethd)一个.

If you select an image in SB you can see its preview image in the top half of the file view. Below the image are 4 smaller buttons labelled auto, one for each platform (phone, phonehd, tablet, tablethd).

例如,选择您的 ipad 图像,然后将另一个图像拖放到该图像的手机和 phonehd auto 按钮.这样,当应用在手机或 phonehd 设备上运行时,它们会覆盖原始图像.

For instance, select your ipad image, then drag and drop another image to that image's phone and phonehd auto buttons. That way they override the original image when the app is run on a phone or phonehd device.

这篇关于如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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