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?