added sounds to ui and game, prepared interaction with character

This commit is contained in:
Luca 2024-10-12 14:30:39 +02:00
parent b5ace17da9
commit 21d7cf417a
42 changed files with 450 additions and 155 deletions

View file

@ -27,9 +27,11 @@ func _process(delta: float) -> void:
save_timer += delta
func _on_menu_button_pressed() -> void:
SoundManager.play_sound_effect("ui_click", "UI")
menu_button_clicked.emit()
func _on_settings_button_pressed() -> void:
SoundManager.play_sound_effect("ui_click", "UI")
settings_button_clicked.emit()
# the save function should work as follows:
@ -38,10 +40,12 @@ func _on_settings_button_pressed() -> void:
# during holding down, the percentage increases until 100%
# a finishing animation plays, the game is saved and the countdown disappears again
func _on_save_button_button_down() -> void:
SoundManager.play_sound_effect("ui_click", "UI")
save_button_held_down = true
save_button_clicked.emit()
func _on_save_button_button_up() -> void:
SoundManager.play_sound_effect("ui_click", "UI")
save_button_held_down = false
save_button_released.emit()
save_timer = 0.0