Added projectiles timeouts. Added GatlingWeapon animation

This commit is contained in:
2025-11-29 19:09:17 +03:00
parent 16ba892f74
commit 1f82869e4f
13 changed files with 125 additions and 112 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ func _physics_process(delta: float) -> void:
func _input(event: InputEvent) -> void:
if event.is_action_pressed("blink"):
var input_direction := _get_input_direction()
blink.emit(input_direction)
if not input_direction.is_zero_approx():
blink.emit(input_direction)
func _get_input_direction() -> Vector2:
return Input.get_vector("move_left", "move_right", "move_up", "move_down")