My game has three sizes of Images. Multi-resolutions, multi-size resources

My game has three sizes of Images. Multi-resolutions, multi-size resources
0.0 0

#1

Hi,

There are 3 sizes of images in my game. 1x , 2x, 3x.

In my previous game with cocos2d-x, I used 1x as design size, so I used 1x images in cocostudio.
Then I can just set different folder to load 2x or 3x images and setContentScaleFactor to make it right for larger screens.

But how to do the same thing in cocos creator? Canvas seems to only solve the aspect ratio issue, but not for different set of images.
What size should I put in cocos creator, 1x? 3x? or all?

Thanks,
Jo


#2

Hi:

I’m trying to do it too. Have you had any luck, @joappdev?

Maybe an alternative is to use dynamically load in some way.

Could you help us with this @slackmoehrle, @pandamicro, please?

Thanks and best!


#3

Sorry
I don’t have any luck.
Still using cocos2d-x.

It is based on cocos2d-x, so I think it should just support it via some binding function.
Or maybe I just haven’t got it.


#4

Sorry it’s not supported in Cocos Creator yet, but it’s definitely a feature that we will add to creator, you can refer to the reply of @nantas in this post:


#5

I’ll continue suggested post.

Thanks for reply, @pandamicro.