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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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