Adjust barrel vertical alignment to deck surface

- Move barrels from deckBottomY + 40 to deckBottomY - 10
- Barrels now sit on deck surface instead of below it
- Better vertical alignment with deck planks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Richter
2025-12-17 04:05:49 +01:00
parent b1db1c1402
commit db41410983

View File

@@ -105,7 +105,7 @@ export default class ShipDeckScene extends Phaser.Scene {
const groupWidth = (Math.min(barrelCount, barrelsPerRow) * horizontalSpacing);
const leftHalfCenter = this.deckLeftX + (this.deckWidth / 4);
const baseX = leftHalfCenter - (groupWidth / 2) + (horizontalSpacing / 2);
const baseY = this.deckBottomY + 40;
const baseY = this.deckBottomY - 10;
// Create barrels in stacking pattern
for (let i = 0; i < barrelCount; i++) {
@@ -156,7 +156,7 @@ export default class ShipDeckScene extends Phaser.Scene {
const groupWidth = (Math.min(barrelCount, barrelsPerRow) * horizontalSpacing);
const rightHalfCenter = this.deckCenterX + (this.deckWidth / 4);
const baseX = rightHalfCenter - (groupWidth / 2) + (horizontalSpacing / 2);
const baseY = this.deckBottomY + 40;
const baseY = this.deckBottomY - 10;
// Create barrels in stacking pattern
for (let i = 0; i < barrelCount; i++) {