From 9e1058ab6c7464e73e6d06af412fb585dbf9fafd Mon Sep 17 00:00:00 2001 From: Steven Wroblewski Date: Sun, 10 May 2026 21:13:04 +0200 Subject: [PATCH] feat(sfx): wire interactive object SFX to AudioManager.play_sfx --- scripts/objects/ambulance.gd | 1 + scripts/objects/cradle.gd | 1 + scripts/objects/delivery_bed.gd | 1 + scripts/objects/gift_box.gd | 1 + scripts/objects/interactive_object.gd | 1 + scripts/objects/tea_pot.gd | 1 + scripts/objects/xray_machine.gd | 1 + 7 files changed, 7 insertions(+) diff --git a/scripts/objects/ambulance.gd b/scripts/objects/ambulance.gd index 5bb5829..2db71db 100644 --- a/scripts/objects/ambulance.gd +++ b/scripts/objects/ambulance.gd @@ -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() diff --git a/scripts/objects/cradle.gd b/scripts/objects/cradle.gd index b8de782..9f9496b 100644 --- a/scripts/objects/cradle.gd +++ b/scripts/objects/cradle.gd @@ -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) diff --git a/scripts/objects/delivery_bed.gd b/scripts/objects/delivery_bed.gd index b95de9f..536a10c 100644 --- a/scripts/objects/delivery_bed.gd +++ b/scripts/objects/delivery_bed.gd @@ -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: diff --git a/scripts/objects/gift_box.gd b/scripts/objects/gift_box.gd index c84cd99..d76ba80 100644 --- a/scripts/objects/gift_box.gd +++ b/scripts/objects/gift_box.gd @@ -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: diff --git a/scripts/objects/interactive_object.gd b/scripts/objects/interactive_object.gd index 8abfada..f2430ea 100644 --- a/scripts/objects/interactive_object.gd +++ b/scripts/objects/interactive_object.gd @@ -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") diff --git a/scripts/objects/tea_pot.gd b/scripts/objects/tea_pot.gd index de23f06..0b75338 100644 --- a/scripts/objects/tea_pot.gd +++ b/scripts/objects/tea_pot.gd @@ -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) diff --git a/scripts/objects/xray_machine.gd b/scripts/objects/xray_machine.gd index 492b380..46d0616 100644 --- a/scripts/objects/xray_machine.gd +++ b/scripts/objects/xray_machine.gd @@ -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: