From 8552f179ccfb59f44aa399c77b852d46e1880bd5 Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Wed, 17 Dec 2025 03:56:55 +0100 Subject: [PATCH] Fix barrel positioning to stay within deck boundaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reduce barrel size from 60x80 to 50x70 - Lower base position from y=420 to y=450 - Increase fuel barrels per row from 4 to 5 - Adjust spacing to prevent overflow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/scenes/ShipDeckScene.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/scenes/ShipDeckScene.js b/src/scenes/ShipDeckScene.js index dba662d..7369c32 100644 --- a/src/scenes/ShipDeckScene.js +++ b/src/scenes/ShipDeckScene.js @@ -83,13 +83,13 @@ export default class ShipDeckScene extends Phaser.Scene { const barrelCount = Math.ceil(this.inventory.fuel / 10); if (barrelCount === 0) return; - const baseX = 150; - const baseY = 420; - const barrelWidth = 60; - const barrelHeight = 80; - const horizontalSpacing = 70; - const verticalSpacing = 85; - const barrelsPerRow = 4; + const baseX = 120; + const baseY = 450; + const barrelWidth = 50; + const barrelHeight = 70; + const horizontalSpacing = 60; + const verticalSpacing = 75; + const barrelsPerRow = 5; // Create barrels in stacking pattern for (let i = 0; i < barrelCount; i++) { @@ -130,12 +130,12 @@ export default class ShipDeckScene extends Phaser.Scene { const barrelCount = Math.ceil(this.inventory.whaleOil / 10); if (barrelCount === 0) return; - const baseX = 300; - const baseY = 420; - const barrelWidth = 60; - const barrelHeight = 80; - const horizontalSpacing = 70; - const verticalSpacing = 85; + const baseX = 380; + const baseY = 450; + const barrelWidth = 50; + const barrelHeight = 70; + const horizontalSpacing = 60; + const verticalSpacing = 75; const barrelsPerRow = 3; // Create barrels in stacking pattern