How to make a single background (linear gradient) for all Scenes in Phaser 3?

Now the initial Scene in the method create() do the following to create a background:
this.background = this.add.graphics();
this.background.fillRect(0, 0, 180, 320);
this.background.fillGradientStyle(0x8e44ad, 0x8e44ad, 0x2980b9, 0x2980b9);

But this is valid only for the current Scene. How to make a shared background (linear gradient) for all Scenes?
In Phaser 3 is ready methods/solution for this or can you recommend an elegant solution?
April 19th 20 at 12:22
0 answer

Find more questions by tags JavaScript