Sign in to follow this  
tinagallegos

Where can I learn about device scaling for Phaser?

Recommended Posts

I downloaded Phaser and the Phaser examples but I am looking for the section which talks about how you can develop the game to handle all sorts of devices/screen/resolutions.  Can someone help with linking me the section or mentioning the Phaser subject which goes over this part? Thanks

Share this post


Link to post
Share on other sites

Hi,

 

I've got some scaling in my Phaser Boilerplate https://github.com/appsbu-de/phaserBoilerplate/blob/master/src/js/states/Boot.js

 

It is not easy to find, but Phaser has some project blueprints which are aware of scaling on mobile and desktop: https://github.com/photonstorm/phaser/blob/master/resources/Project%20Templates/Full%20Screen%20Mobile/src/Boot.js

Share this post


Link to post
Share on other sites

If you're working with the full screen mobile template that comes with Phaser (resources/Project Templates/Full Screen Mobile/), everything scaling is taken care of within the Boot state (Boot.js).

 

Additionally you may find some interesting approaches in this thread: http://www.html5gamedevs.com/topic/1380-how-to-scale-entire-game-up/

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.