Adjusted background
This commit is contained in:
parent
bf4bfdfad8
commit
94e631ecba
|
|
@ -13,6 +13,11 @@ export default class GameScene extends Phaser.Scene {
|
|||
// Background image — stretched to fill the canvas
|
||||
this.add.image(800, 450, 'bg-gates').setDisplaySize(1600, 900);
|
||||
|
||||
// Gradient backdrop behind title — opaque on left, fades to transparent
|
||||
const titleBg = this.add.graphics();
|
||||
titleBg.fillGradientStyle(0x000000, 0x000000, 0x000000, 0x000000, 0.62, 0, 0.62, 0);
|
||||
titleBg.fillRect(0, 110, 700, 120);
|
||||
|
||||
// Title above the machine — left aligned with padding
|
||||
this.add.text(40, 150, 'VIRTUE SLOTS', {
|
||||
fontSize: '42px',
|
||||
|
|
@ -59,7 +64,7 @@ export default class GameScene extends Phaser.Scene {
|
|||
}).setOrigin(0.5, 0.5);
|
||||
|
||||
this.lordVial = new VialDisplay(this, 1193, 258, 'The Lord', 0xffd700, 0xc8a87e);
|
||||
this.sinVial = new VialDisplay(this, 1398, 258, 'Sin', 0xff4444, 0xff6666);
|
||||
this.sinVial = new VialDisplay(this, 1398, 258, 'Sin', 0xff4444, 0xff6666);
|
||||
|
||||
// Keyboard: Space to spin
|
||||
this.input.keyboard.on('keydown-SPACE', () => this._triggerSpin());
|
||||
|
|
|
|||
Loading…
Reference in New Issue