ajout de panneaux de contrôles, de paramètres et refactorisation de la gestion de l'audio

This commit is contained in:
2025-11-22 15:10:41 +01:00
parent dbe8f03531
commit 435415363c
171 changed files with 2165 additions and 922 deletions

View File

@@ -40,5 +40,5 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
return true
func harvest(p : Plant, player: Player):
player.play_sfx("harvest")
AudioManager.play_sfx("Harvest")
p.harvest()

View File

@@ -64,7 +64,7 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
if player.planet == null:
return false
player.play_sfx("dig")
AudioManager.play_sfx("Dig")
return player.planet.plant(
plant_type,
zone.get_global_position(),
@@ -138,7 +138,7 @@ static func mutate(parent_mutation : Array[PlantMutation] = []) -> Array[PlantMu
]
if (
len(parent_mutation) > 2
len(parent_mutation) >= 2
):
possible_mutations = [
UpgradeMutation.new(),

View File

@@ -40,5 +40,5 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
return true
func dig(u: UndergroundLoot, player: Player):
player.play_sfx("dig")
AudioManager.play_sfx("Dig")
u.dig()

View File

@@ -17,5 +17,5 @@ func get_usage_zone_radius() -> int:
func harvest(p : Plant, player: Player):
ProduceSeedsEffect.new(1).effect(p)
player.play_sfx("harvest")
AudioManager.play_sfx("Harvest")
p.harvest()