Add data-driven fish selection and catch showcase

This commit is contained in:
Alexander Sellite 2026-07-25 15:15:24 -04:00
parent ae2f724fe2
commit bd2768b676
39 changed files with 1226 additions and 58 deletions

View file

@ -2,6 +2,7 @@ class_name FishingPresentation
extends Node3D
signal cast_completed
signal outcome_completed(outcome: StringName)
enum VisualMode {
NONE,
@ -304,7 +305,7 @@ func play_outcome(outcome: StringName) -> void:
_:
_active_tween.tween_property(_bobber, "scale", Vector3.ZERO, 0.18)
_active_tween.finished.connect(cleanup)
_active_tween.finished.connect(_on_outcome_finished.bind(outcome))
func cleanup() -> void:
@ -323,6 +324,11 @@ func cleanup() -> void:
set_line_mode(LineMode.HIDDEN)
func _on_outcome_finished(outcome: StringName) -> void:
cleanup()
outcome_completed.emit(outcome)
func _set_cast_sample(
progress: float,
start: Vector3,