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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.