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

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

4 Likes

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!

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.

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:

I’ll continue suggested post.

Thanks for reply, @pandamicro.

@pandamicro
any update for this feature?
Thx.

Any news on this? maybe the same ~~hd suffix which should work for fonts?