Refactor charge throw component; add minimum charge duration and improve charge handling

This commit is contained in:
2025-05-12 23:16:55 +02:00
parent 59c309409c
commit 3d65daf0c5
4 changed files with 21 additions and 13 deletions

View File

@@ -21,7 +21,6 @@ func _input(event: InputEvent) -> void:
if event.is_action_released("attack") and can_throw and charge_throw_component:
var power_multiplier: float = charge_throw_component.stop_charging()
print("Power Multiplier: ", power_multiplier)
throw_brick(power_multiplier)