Resolution - acidsound/MellowJingle GitHub Wiki

해상도

  1. iPhone 5는 640:1136 = 1:1.775
  2. iPhone 4,4s,3gs는 640:960 = 1:1.5
  3. iPad1,2,3,4,mini는 768x1024 = 1.333

비율기준

iPhone 5를 기준으로 Board는 고정해상도

배경은 iPhone용 iPad용으로 각각 다른 해상도를 쓸 수 있음.

단, 긴쪽을 기준으로 정방형 해상도가 필요.

배경해상도

  1. 1136x1136 (iPhone5)
  2. 2048x2048 (iPad4)

기기별 OS, 해상도 및 DPI정보

    trace("os: " + os);
    trace("DPI: " + Capabilities.screenDPI);
    trace("width/height: " + width + "/" + height);
    trace("x/y: " + x + ":" + y);
    trace("stage.fullScreenWidth/Height: " + stage.fullScreenWidth + "/" + stage.fullScreenHeight);
    trace("stage.width/height: " + stage.width + "/" + stage.height);
    trace("stage.stageWidth/stage.stageHeight: " + stage.stageWidth + "/" + stage.stageHeight);

위의 코드로 뽑아낸 Android/iOS 기기별 정보

:: 3GS
os: iPhone OS 6.1 x86_64
DPI: 163
width/height: 2048/2048
x/y: 0:0
stage.fullScreenWidth/Height: 320/480
stage.width/height: 2048/2048
stage.stageWidth/stage.stageHeight: 640/960
after x/y: 160:240

:: 4/4s
os: iPhone OS 6.1 x86_64
DPI: 326
width/height: 2048/2048
x/y: 0:0
stage.fullScreenWidth/Height: 640/960
stage.width/height: 2048/2048
stage.stageWidth/stage.stageHeight: 1280/1920
after x/y: 0:0

:: 5
os: iPhone OS 6.1 x86_64
DPI: 326
width/height: 2048/2048
x/y: 0:0
stage.fullScreenWidth/Height: 640/1136
stage.width/height: 2048/2048
stage.stageWidth/stage.stageHeight: 1280/1920
after x/y: 0:0

:: iPad
os: iPhone OS 6.1 x86_64
DPI: 132
width/height: 2048/2048
x/y: 0:0
stage.fullScreenWidth/Height: 768/1024
stage.width/height: 2048/2048
stage.stageWidth/stage.stageHeight: 640/960
after x/y: 384:512

:: iPad Retina
os: iPhone OS 6.1 x86_64
DPI: 264
width/height: 2048/2048
x/y: 0:0
stage.fullScreenWidth/Height: 1536/2048
stage.width/height: 2048/2048
stage.stageWidth/stage.stageHeight: 1280/1920
after x/y: 0:0

:: Xperia Ray
os: Linux 2.6.32.9-perf
DPI: 240
width/height: 2048/2048
x/y: 0:0
stage.fullScreenWidth/Height: 480/854
stage.width/height: 2048/2048
stage.stageWidth/stage.stageHeight: 480/854