marlene

Members
  • Content Count

    7
  • Joined

  • Last visited


Reputation Activity

  1. Like
    marlene got a reaction from Ralph in Help with a responsive game   
    Hello, 
    Use the Phaser scale manager. Below is just an example of what I mean. 
    this.input.maxPointers = 1; if (this.game.device.desktop) { // If you have any desktop specific settings, they can go in here this.scale.pageAlignHorizontally = true; } else { // Same goes for mobile settings. // In this case we're saying "scale the game, no lower than 480x260 and no higher than 1024x768" this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.scale.minWidth = 568; this.scale.minHeight = 600; this.scale.maxWidth = 2048; this.scale.maxHeight = 1536; this.scale.forceLandscape = true; this.scale.pageAlignHorizontally = true; this.scale.setScreenSize(true); }