From 834be56557f43f6d4352ed55bd51de970b76249c Mon Sep 17 00:00:00 2001 From: Brian Fertig Date: Fri, 4 Sep 2026 13:33:23 -0600 Subject: [PATCH] Move tether toast to center of screen - Reposition the tether toast from top-center (y=26) to ~75 px above screen center so it doesn't overlap the discovery toast. - Update comments to reflect the new placement. --- js/scenes/GameScene.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/scenes/GameScene.js b/js/scenes/GameScene.js index aab4add..adeabe1 100644 --- a/js/scenes/GameScene.js +++ b/js/scenes/GameScene.js @@ -746,7 +746,7 @@ export class GameScene extends Phaser.Scene { this.tetherToast(); } - /** Top-center console warning (below the discovery toast, magenta). */ + /** Top-center console warning (magenta). */ tetherToast() { if (Array.isArray(this.tetherToastG)) { for (const g of this.tetherToastG) g.destroy(); @@ -944,7 +944,7 @@ export class GameScene extends Phaser.Scene { onComplete: () => ring.destroy(), }); - // Top-center HUD toast, in the console language. + // Center HUD toast (~75 px above screen center), in the console language. if (Array.isArray(this.toast)) { for (const g of this.toast) g.destroy(); } @@ -967,8 +967,9 @@ export class GameScene extends Phaser.Scene { .setScrollFactor(0); // UI — pinned to the screen, not the world const total = g1.width + 10 + g2.width; const x0 = this.scale.width / 2 - total / 2; - g1.setPosition(x0, 26).setDepth(45).setAlpha(0); - g2.setPosition(x0 + g1.width + 10, 26).setDepth(45).setAlpha(0); + const y = this.scale.height / 2 - 75; // ~75 px above the screen center + g1.setPosition(x0, y).setDepth(45).setAlpha(0); + g2.setPosition(x0 + g1.width + 10, y).setDepth(45).setAlpha(0); this.toast = [g1, g2]; this.tweens.add({ targets: this.toast, alpha: 1, duration: 180, ease: 'Sine.easeOut' }); this.time.delayedCall(2400, () => {