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

@@ -56,6 +56,11 @@ class FarmingSystem {
this.scene.terrainSystem.tilledSprites.set(key, sprite);
}
// Play dig sound
if (this.scene.soundManager) {
this.scene.soundManager.playDig();
}
console.log(`✅ Tilled soil at (${gridX}, ${gridY})`);
return true;
}
@@ -98,6 +103,11 @@ class FarmingSystem {
this.scene.farmStats.cropsPlanted++;
}
// Play plant sound
if (this.scene.soundManager) {
this.scene.soundManager.playPlant();
}
console.log(`🌱 Planted ${cropType} at (${gridX}, ${gridY})`);
return true;
}
@@ -164,6 +174,11 @@ class FarmingSystem {
if (crop.sprite) crop.sprite.destroy();
this.crops = this.crops.filter(c => c !== crop);
// Play harvest sound
if (this.scene.soundManager) {
this.scene.soundManager.playHarvest();
}
console.log(`🌾 Harvested ${crop.type}! (+${goldEarned} gold)`);
// Show floating text