diff --git a/src/scenes/ShipDeckScene.js b/src/scenes/ShipDeckScene.js index dfb67f3..a90f684 100644 --- a/src/scenes/ShipDeckScene.js +++ b/src/scenes/ShipDeckScene.js @@ -159,14 +159,23 @@ export default class ShipDeckScene extends Phaser.Scene { }); this.fuelBarrels.push(interactiveZone); - // Debug: Draw center lines for fuel barrel group - const centerLines = this.add.graphics(); - centerLines.lineStyle(2, 0xFF0000, 0.8); - // Horizontal center line - centerLines.lineBetween(zoneX - zoneWidth / 2, deckVerticalCenter, zoneX + zoneWidth / 2, deckVerticalCenter); - // Vertical center line - centerLines.lineBetween(zoneX, zoneY - zoneHeight / 2, zoneX, zoneY + zoneHeight / 2); - this.fuelBarrels.push(centerLines); + // Debug: Draw border lines for fuel barrel group + const borderLines = this.add.graphics(); + borderLines.lineStyle(2, 0xFF0000, 0.8); + + const left = zoneX - zoneWidth / 2; + const right = zoneX + zoneWidth / 2; + const top = zoneY - zoneHeight / 2; + const bottom = zoneY + zoneHeight / 2; + + // Horizontal lines (top and bottom) + borderLines.lineBetween(left, top, right, top); + borderLines.lineBetween(left, bottom, right, bottom); + // Vertical lines (left and right) + borderLines.lineBetween(left, top, left, bottom); + borderLines.lineBetween(right, top, right, bottom); + + this.fuelBarrels.push(borderLines); } createOilBarrels() {