mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-13 17:52:03 +00:00
feat(audio): wire menu click feedback
This commit is contained in:
@@ -15,3 +15,13 @@ func test_countdown_frequency_has_bounded_monotonic_mapping() -> void:
|
||||
assert_eq(AudioManager.countdown_frequency(3), 605.0, "countdown tone is deterministic")
|
||||
assert_eq(AudioManager.countdown_frequency(99), 935.0, "large countdown values are capped")
|
||||
assert_true(AudioManager.countdown_frequency(2) < AudioManager.countdown_frequency(3), "countdown tones rise predictably")
|
||||
|
||||
|
||||
func test_button_binding_is_idempotent() -> void:
|
||||
var manager := AudioManager.new()
|
||||
var button := Button.new()
|
||||
manager.bind_button(button)
|
||||
manager.bind_button(button)
|
||||
assert_eq(button.pressed.get_connections().size(), 1, "UI click hook is not duplicated")
|
||||
button.free()
|
||||
manager.free()
|
||||
|
||||
Reference in New Issue
Block a user