1
votes

i have ported my cocos2d game to cocos2d-x in portrait mode , specially for android devices . i want to support my game for almost all android devices , i have used 960*640 resource . I have followed this :

http://www.cocos2d-x.org/wiki/Multi_resolution_support.

Now , i am using Design Resolution 960*640 & policy is kResolutionExactFit. i have tested on this Resolutions 480*320,768*1024,800*1280 , 720*1280. In all of these Devices ,My all images & background Images Scaled & fit perfectly But i am getting problem with my circled images. They seems like they stretched height-wise means rounded shape looks like oval shaped. I don't understand why Even i am Confused With my KResolutionExactFit Policy . Any Help would be appreciated a lot.

1
i m going through the same problem :-/shaqir saiyed

1 Answers

0
votes

kResolutionExactFit will stretch the image on both axes, so the image looks stretched,

As you have mentioned, the aspect ratio for which you have designed the resources is completely different from the one you are loading it..

If you want the circles to remain circles they should be scaled with the same aspect ratio..

If you are not interested in the theory :P just use one of the below policy,

kResolutionShowAll - Shows the entire stuff, you might have small borders on either side of the screen,

kResolutionNoBorder - if you dont want the border..

I would personally prefer kResolutionShowAll and add a color so that those borders are not seen...