Hi Jitendra ,
When you targeting multiple devices with one build you need to do these
things
1. dpi caluculation
2. scaling the content depends upon the screen resolutions
dpi caluculations:
var widthScale:Number = screenWidth/TARGET_WIDTH;
// on which resolution you made the assets (target_width-1024 * 768 )
var heightScale:Number = screenHeight/Constants.TARGET_HEIGHT;
var minScale:Number = Math.min(widthScale,heightScale);
var maxScale:Number = Math.max(widthScale,heightScale);
asset.x = maxScale;
asset.y = minScale;
contentScalefactor :
var scaleFactor:Number =
Math.max(TARGET_WIDTH/_screenWidth ,
TARGET_HEIGHT/_screenHeight);
Thanks,
Raju.M
Sr.GameDeveloper.
On Fri, Sep 13, 2013 at 10:51 AM, Jitendra Jain <
[email protected]> wrote:
> Hi Group,
>
> I have few skins for Iphone 5 and now i want to target for all ios
> devices. Is there any way to do that or else i have to manually calculate
> dpi, resolutions and do the scaling stuff?
>
> --
> Thanks and Regards,
> JJain,
>
> If you have knowledge, let others light their candles in it --Margaret
> Fuller:
>
>
>
> --
> Thanks and Regards,
> JJain,
>
> If you have knowledge, let others light their candles in it --Margaret
> Fuller:
>