DavidRkoder404 Posted October 10, 2017 Share Posted October 10, 2017 Hi everyone!, I've just started to use Phaser's framework, so I don't have enought knowledge about it. I did a game (test it here), it works well on pc's browser. The problem were when I tried to do it mobile friendly. I tried to do that (on boot's state): if (!game.device.desktop) { game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.pageAlignHorizontally = true; game.scale.pageAlignVertically = true; game.scale.refresh(); } When I test it in my phone (portrait mode) it works good . The problem is when I rotate the screen (landscape mode), it doesn't scale well(I can't see the bottom). Portrait view: Landscape view: (I can't see the bottom) What is the problem ?? Thanks!! Link to comment Share on other sites More sharing options...
3man7 Posted October 11, 2017 Share Posted October 11, 2017 In boot.js you've set some limits regarding the game scale: game.scale.minWidth = 250;game.scale.minHeight = 170; <-- lower this or delete the line entirely. game.scale.maxWidth = 1000; game.scale.maxHeight = 680; Link to comment Share on other sites More sharing options...
Recommended Posts