How to add seperate iPad and iPhone images in spritebuilder- Cocos2d 3.2(如何在 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 图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 spritebuilder-Cocos2d 3.2 中添加单独的 iPad 和 iPhone 图像


- android 4中的android RadioButton问题 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01