Jump to content

Incorrect Scaling


VeryGoodDog
 Share

Recommended Posts

I'm trying to make a pixel style game. However, for some reason Phaser wants to scale the entire game down 2 or 3 times, making it unusable.

When I try to scale the stage up with the state's scale manager it just increases the number of pixels, to around 4000 x 7000 pixels.

let game = new window.Phaser.Game({
  width: 1920,
  height: 1080,
  renderer: window.Phaser.WEBGL,
  parent: 'game-div',
  antialias: false
})

and

boot.init = function () {
  this.stage.smoothing = false
  this.stage.scale = new window.PIXI.Point(4,4)
  this.game.renderer.roundPixels = true
  window.Phaser.Canvas.setImageRenderingCrisp(this.game.canvas)
}

I have no idea what is happening.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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