This commit is contained in:
2025-12-12 10:17:21 +01:00
parent 84b07bb433
commit a210638002
30 changed files with 3731 additions and 999 deletions

View File

@@ -94,6 +94,11 @@ class BuildSystem {
if (!this.buildings[buildingId]) return;
this.selectedBuilding = buildingId;
// Play UI click sound
if (this.scene.soundManager) {
this.scene.soundManager.playUIClick();
}
// Refresh preview
if (this.buildMode) {
this.destroyPreview();
@@ -319,6 +324,11 @@ class BuildSystem {
collision: building.collision
});
// Play build sound
if (this.scene.soundManager) {
this.scene.soundManager.playBuild();
}
console.log(`🏗️ Placed ${building.name} at (${gridX}, ${gridY})`);
// Update UI