toto88x Posted January 24, 2014 Share Posted January 24, 2014 Hello, I'm starting to port one of my Phaser desktop game to smartphones. And I'd like to know how to make the game look great on different smartphones with different screen resolutions. I've seen this question a few time on this forum, but couldn't find a definite answer. So let's try to make things simple with an example: - The game is 800x500px in landscape. It's made with Phaser, and can use cocoonjs if it helps.- The game should look great on an iPhone 5 (1136x640), and on a galaxy S3 (1280x720)- The game should't be cropped- The game should be fullscreen- We can add black borders around the game to keep the original aspect ratio (or even better, extend the background of the game) How would you do that? I have a hard time grasping everything related to stage.scale, stage.scaleMode, window.devicePixelRatio, window.innerWidth, etc. Thanks for your help! Link to comment Share on other sites More sharing options...
toto88x Posted January 25, 2014 Author Share Posted January 25, 2014 Anyone can help me on this? Or send me to relevant links? Thanks! Link to comment Share on other sites More sharing options...
Ryuuke Posted January 25, 2014 Share Posted January 25, 2014 Hi, you can read this, i think it's what you are looking for : http://www.html5gamedevs.com/topic/2273-phaser-cocoonjs-vs-webgl-scaling-finally-solved/ Link to comment Share on other sites More sharing options...
Recommended Posts