How to add seperate iPad and iPhone images in spritebuilder- Cocos2d 3.2

只谈情不闲聊 提交于 2019-12-24 03:07:04

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/26219884/how-to-add-seperate-ipad-and-iphone-images-in-spritebuilder-cocos2d-3-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!