HappinessSam Posted April 29, 2016 Share Posted April 29, 2016 I've been trying to build a simple test game built on the full screen mobile template. I've got it to the point where it's buggy and incomplete but playable and I've only just uploaded it and tested it on my phone. It works fine on desktop but on my phone (a onePlus 2) using chrome it doesn't display. If I select request desktop site it does show up, but then of course it has the desktop setting and so it doesn't scale properly. Is this something anyone has come across? My game is here. Link to comment Share on other sites More sharing options...
VitaZheltyakov Posted April 30, 2016 Share Posted April 30, 2016 Try: var game = new Phaser.Game(window.screen.availWidth * window.devicePixelRatio, window.screen.availHeight * window.devicePixelRatio, Phaser.CANVAS, 'game'); Link to comment Share on other sites More sharing options...
HappinessSam Posted April 30, 2016 Author Share Posted April 30, 2016 Thanks, but I need me Game to be 600x400. It's the display that needs to scale. I haven't had time to look under the hood to see how Phaser deals with scaling the game display. Link to comment Share on other sites More sharing options...
rgk Posted May 2, 2016 Share Posted May 2, 2016 It depends on the browser, some don't allow fullscreen unless its a ssl domain. Link to comment Share on other sites More sharing options...
HappinessSam Posted May 2, 2016 Author Share Posted May 2, 2016 It turns out it's just that I'm an idiot (or just too sleep deprived and rushed to do good work) and I had a typo in the mobile side of the init function. It's working now, though I still need to fiddle to get the scaling right. Sorry and thanks for trying to help. Link to comment Share on other sites More sharing options...
Recommended Posts