I use the Game Closure browser simulator, which states that this is a 600x800 sized window.
I print the size of the device when the application starts:
console.log(device.width);
console.log(device.height);
It displays this as 320 x 480 (this is width x height):
320
480
The journal also says the following:
LOG platforms.browser.doc resize 320 480
The same thing happens when I use the facebook simulator.
The problem is that I am trying to use device.width and device.height to scale my game to full screen size, regardless of the system.
If this is a known bug, is there a known job?
Thanks!
source
share