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

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

问题描述



我制作一张图片(ipad retina),而spritebuilder让iPhone的图片自动:



但对于某些按钮/ sprite,我想自己做iPad和iPhone图像。如何为可以在Spritebuilder UI中使用的图片添加自定义iPhone和iPad版本?



例如。使用一个图像为iPad(视网膜),但使用另一个iPhone。



此外,如何添加像外部spritesheet到我的Spritebuilder XCode项目? (添加-hd或-ipadhd后缀不再起作用,它总是选择没有后缀的那个) - 我听说有'resources-phone'有什么关系?

解决方案

如果在SB中选择图像,您可以在文件视图的上半部分看到其预览图像。图片下方是4个较小的按钮,标有 ,每个平台各一个(phone,phonehd,tablet,tablethd)。





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


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

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

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?

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

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'?

解决方案

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).

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天全站免登陆