Jump to content

Zoom in, Zoom out - center canvas and Zoom ?


rossi46
 Share

Recommended Posts

I want to zoom in zoom out. In game, I set this.scale.pageAlignVertically = true;         this.scale.pageAlignHorizontally = true;  and in config I set: scaleMode: Phaser.ScaleManager.SHOW_ALL.when I zoom in browser. It scales game, however when i zoom out browser, it not scale game and not center of screen. I don't know why. How to do that

normal.png

zoom-in.png

zoom-out.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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