feat(sfx): wire interactive object SFX to AudioManager.play_sfx

This commit is contained in:
Steven Wroblewski
2026-05-10 21:13:04 +02:00
parent 21628c21fd
commit 9e1058ab6c
7 changed files with 7 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@ func _input(event: InputEvent) -> void:
func _drive_in() -> void:
AudioManager.play_sfx("ambulance_siren")
_is_animating = true
_is_parked = false
var tween: Tween = create_tween()
+1
View File
@@ -28,6 +28,7 @@ func _input(event: InputEvent) -> void:
func _start_rocking() -> void:
AudioManager.play_sfx("cradle_rock")
_state = State.ROCKING
var tween: Tween = create_tween()
tween.set_ease(Tween.EASE_IN_OUT)
+1
View File
@@ -44,6 +44,7 @@ func _input(event: InputEvent) -> void:
func _start_arrival() -> void:
AudioManager.play_sfx("delivery_cheer")
_state = State.MAMA_ARRIVING
var mama: Node2D = get_node_or_null("Mama") as Node2D
if mama == null:
+1
View File
@@ -33,6 +33,7 @@ func _input(event: InputEvent) -> void:
func _start_opening() -> void:
AudioManager.play_sfx("gift_open")
_state = State.OPENING
var lid: Node2D = get_node_or_null("Lid") as Node2D
if lid == null:
+1
View File
@@ -39,6 +39,7 @@ func _on_area_input_event(_viewport: Node, event: InputEvent, _shape_idx: int) -
func _trigger_interaction() -> void:
AudioManager.play_sfx("object_tap")
_set_state(State.ACTIVE)
object_interacted.emit(self)
GameState.set_object_state(object_id, "active")
+1
View File
@@ -27,6 +27,7 @@ func _input(event: InputEvent) -> void:
func _start_pouring() -> void:
AudioManager.play_sfx("tea_pour")
_state = State.POURING
var tween: Tween = create_tween()
tween.set_ease(Tween.EASE_IN_OUT)
+1
View File
@@ -39,6 +39,7 @@ func _input(event: InputEvent) -> void:
func _start_scan() -> void:
AudioManager.play_sfx("xray_scan")
_state = State.SLIDING_IN
var plate: Node2D = get_node_or_null("Plate") as Node2D
if plate == null: