Jump to content

Problem with picture quality on USER_SCALE


Wins
 Share

Recommended Posts

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 size

Is there a way to have a good picture quality with USER_SCALE method?

 

post-6783-0-19215600-1441807842.png

post-6783-0-64063300-1441807853.png

Link to comment
Share on other sites

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

 Share

  • Recently Browsing   0 members

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