Jump to content

phaser game scaling problem


khalsa777
 Share

Recommended Posts

i was experimenting with tilemap import in phaser. i used

game=new Phaser.Game(window.innerWidth,window.innerHeigth,Phaser.AUTO,'');

in my main.js

and following code to scale in init function:

this.scale.scaleMode=Phaser.ScaleManager.SHOW_ALL;
  this.scale.pageAlignHorizontally = true;
        this.scale.pageAlignVertically = true;
        this.scale.setScreenSize(true);

the game gets scaled and adjusts to various screen sized but there is a black area(as visible in screenshot) always underneath the tilemap which i imported. why is it there?

up.png

Link to comment
Share on other sites

  • 5 months later...
 Share

  • Recently Browsing   0 members

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