LANAK Posted March 19, 2019 Share Posted March 19, 2019 Hello, help me please, how to stretch background image on full screen? I use game.add.image. Example: game.add.image(game.world.centerX, game.world.centerY, 'map').anchor.set(0.5); Link to comment Share on other sites More sharing options...
rdcastro Posted April 22, 2019 Share Posted April 22, 2019 Hi Lanak, Try this: var windowWidth = window.innerWidth; var widnowHeight = window.innerHeight; this.bg = this.add.image(windowWidth / 2, widnowHeight / 2, 'sky'); this.bg.setDisplaySize(windowWidth, widnowHeight); Good Luck, Roy Link to comment Share on other sites More sharing options...
Recommended Posts