Jump to content

Scaling game with different screen ratio


divers
 Share

Recommended Posts

Hello, recently I made a game and now is the time to fit it to all screens.

game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;

 works well for me but only if the canvas is not in the div with id.

If I have:

new Phaser.Game(360,640,Phaser.CANVAS,'for example') 

scaling is freakin out.

How can I get it working within div?

Hope you can help me :)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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