Adjusted background

This commit is contained in:
Brian Fertig 2026-02-27 19:51:34 -07:00
parent bf4bfdfad8
commit 94e631ecba
1 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,11 @@ export default class GameScene extends Phaser.Scene {
// Background image — stretched to fill the canvas // Background image — stretched to fill the canvas
this.add.image(800, 450, 'bg-gates').setDisplaySize(1600, 900); 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 // Title above the machine — left aligned with padding
this.add.text(40, 150, 'VIRTUE SLOTS', { this.add.text(40, 150, 'VIRTUE SLOTS', {
fontSize: '42px', fontSize: '42px',