#40 correction son et musique
This commit is contained in:
parent
90d5e92740
commit
22797a9ba3
@ -3,7 +3,9 @@
|
||||
[ext_resource type="AudioStream" uid="uid://dnskjv3wty2ms" path="res://common/music/assets/niveau_forestier_phase_1.ogg" id="1_hmej1"]
|
||||
|
||||
[node name="Music" type="Node"]
|
||||
process_mode = 3
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("1_hmej1")
|
||||
volume_db = -10.0
|
||||
autoplay = true
|
||||
|
||||
@ -82,6 +82,7 @@ volume_db = -12.5
|
||||
[node name="AudioStreamPlayer_harvest" type="AudioStreamPlayer" parent="Audio"]
|
||||
stream = SubResource("AudioStreamRandomizer_gt4e4")
|
||||
volume_db = -10.0
|
||||
pitch_scale = 1.5
|
||||
|
||||
[node name="AudioStreamPlayer_pick_up" type="AudioStreamPlayer" parent="Audio"]
|
||||
stream = SubResource("AudioStreamRandomizer_24ehl")
|
||||
|
||||
@ -107,7 +107,7 @@ func drop_item():
|
||||
var item_to_drop = inventory.pop_item()
|
||||
planet.drop_item(item_to_drop, global_position)
|
||||
remove_action_area()
|
||||
play_sfx("pick")
|
||||
play_sfx("drop")
|
||||
|
||||
func delete_item():
|
||||
inventory.set_item(null)
|
||||
@ -158,5 +158,7 @@ func play_sfx(sound : String):
|
||||
$Audio/AudioStreamPlayer_harvest.play()
|
||||
"pick":
|
||||
$Audio/AudioStreamPlayer_pick_up.play()
|
||||
"drop":
|
||||
$Audio/AudioStreamPlayer_drop.play()
|
||||
"move":
|
||||
$Audio/AudioStreamPlayer_movement.play()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user