Jump to content

Resize Resolution for different Devices?


Zackorz
 Share

Recommended Posts

Hello,

 

i want to create a browsergame, that runs in the Browser on PC, Mac, Android Tablet and Ipad. 

 

These systems have different screen sizes / resolutions.

 

Is it possible to create one file for all of them, and make phaser/the system resize the game automatically?

Link to comment
Share on other sites

Hi, some time ago I wrote tutorial on this topic here: http://sbcgamesdev.blogspot.cz/2015/04/phaser-tutorial-manage-different-screen.html

 

There are generally two problems:

 - letterboxing/pillaring, when you have black bars in top and bottom or on left and right,

 - stretching: no letterbox / pillars as graphics is stretched, but it may look ugly,

 

Solution described at link above is somewhere between. It eliminates boxing to some extent without stretching, but if screen size is really wierd then comes stretching. I am happy with it and I use it for all my games.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...