LuckieLordie Posted March 24, 2014 Share Posted March 24, 2014 Is there an easy way to change the resolution I want to use for my game? At the minute my game uses 1500x800 when I pass it to Phaser.Game. However on the mobile devices this is way too high. Is there a way I can change this value between devices easily? Link to comment Share on other sites More sharing options...
PeterPanen Posted March 24, 2014 Share Posted March 24, 2014 Im also listening here Also if anyone knows a fixed resolution that works across most SmartPhones in landscape mode, it would be highly appreciated. Link to comment Share on other sites More sharing options...
nunorfpt Posted March 24, 2014 Share Posted March 24, 2014 You can read the actual size of the window with javascript with window.innerWidth and window.innerHeight to get window's height and width (not including toolbars/scrollbars) and then use those values to pass to your Phaser.Game parameters Link to comment Share on other sites More sharing options...
LuckieLordie Posted March 25, 2014 Author Share Posted March 25, 2014 Is there a way to change it from within a phaser game though? I'd like to be able to detect the device and then set the resolution and resources I want. Link to comment Share on other sites More sharing options...
Recommended Posts