#40 developpement de l'enclenchement des sfx

This commit is contained in:
2025-08-21 14:56:48 +02:00
parent 49e16d12f8
commit 5d0104d029
6 changed files with 48 additions and 23 deletions

View File

@@ -22,4 +22,5 @@ func can_use(player : Player) -> bool:
func use(player : Player) -> bool:
if not can_use(player):
return false
player.play_sfx("dig")
return player.planet.plant(plant_type, player.global_position)