Fix barrel positioning to stay within deck boundaries
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user