Jump to content

phaser game scaling problem


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.pageAlignHorizontally = true;
        this.scale.pageAlignVertically = 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?


Link to comment
Share on other sites

  • 5 months later...

  • Recently Browsing   0 members

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