According to this tutorial and this question https://stackoverflow.com/a/50300726/2107253 I am using window.innerWidth and window.innerHeight to define the area in my Phaser 2 CE game.
But, when i display the proportions of my canvas on desktop and on a mobile device there are two different pairs of values, what is the right values I have to use in the new Phaser(...)
instruction, and do I have to use SHOW_ALL
or another scale value to scale the game on both desktop and mobile?
var game = new Phaser.Game(window.innerWidth, window.innerHeigh, Phaser.AUTO, 'game', { preload: preload, create: create, update: update });
The one on a desktop bellow :
The one on a mobile device is the same but the Width and Height values are :