Wins Posted September 9, 2015 Share Posted September 9, 2015 Hello! In the game, build on Phaser, when I used scale USER_SCALE or EXACT_FIT image quality is too bad (look at pic 1) , but when I used a SHOW_ALL scale method, that image is good (look at pic 2), even on same window sizeIs there a way to have a good picture quality with USER_SCALE method? Link to comment Share on other sites More sharing options...
drhayes Posted September 9, 2015 Share Posted September 9, 2015 When it is set to USER_SCALE, how are you scaling the canvas? jdnichollsc 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted September 10, 2015 Share Posted September 10, 2015 Show the code! Link to comment Share on other sites More sharing options...
Wins Posted September 13, 2015 Author Share Posted September 13, 2015 This code:rootLayer = BlobGame.game.add.sprite(0,0,null); //create the main layer of the game.On resize game:var h = window.innerHeight;var w = window.innerWidth;var x2y = (h/BlobGame.game.world.height)/(w/BlobGame.game.world.width);rootLayer.scale.setTo(1,1/x2y);BlobGame.game.scale.setUserScale(w/BlobGame.game.world.width,h/BlobGame.game.world.height,0,0); Link to comment Share on other sites More sharing options...
Recommended Posts