Saturday, November 16, 2013

Feathers 小問題

http://stackoverflow.com/questions/14079070/how-do-i-make-normal-sized-components-in-starlings-feather-framework-when-wor

第一次使用 Feathers 一定會遇到的問題:手機上看起來正常,但在桌面上看起來超小... 。官方網頁上的 Sample 用桌機看是正常大小,下載範例檔回來輸出卻變小...



http://forum.starling-framework.org/topic/xscreendpi-and-web-applications-without-air

You should also override the screenPixelWidth and screenPixelHeight values. These will will be combined with the dpi value to determine if it's a phone or tablet.

As an example, the following code simulates an iPhone Retina (and will result in a scale value of 1.0):

DeviceCapabilities.dpi = 326;
DeviceCapabilities.screenPixelWidth = 960;
DeviceCapabilities.screenPixelHeight = 640;


No comments: