VeryGoodDog Posted January 15, 2018 Share Posted January 15, 2018 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 More sharing options...
VeryGoodDog Posted January 15, 2018 Author Share Posted January 15, 2018 If I remove the this.stage.scale = new window.PIXI.Point(4,4) then it is actually around 500 pixels wide on the screen and the entire div it is contained in is claiming to be 7680 pixels wide when my monitor is only 1920. Link to comment Share on other sites More sharing options...
VeryGoodDog Posted January 16, 2018 Author Share Posted January 16, 2018 Welp, turns out I had electron scaled way down and the zoom was about 25% so good job me i guess Link to comment Share on other sites More sharing options...
Recommended Posts