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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user