Hello,
Right now I’m using this:
window.onload = function () {
var gameConfig = {
...
width: 1920,
height: 1080,
...
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
},
};
}
If the Image size is 2688 * 1536
This is how it looks when you run the game
Top and bottom is proper but at the sides it shows white color but I need images to be displayed.
width should FIT but height should not
this is the whole image is
Is there a way to do it?
Thank you.