Added shooting

This commit is contained in:
2025-11-03 17:33:52 +03:00
parent 29bf133a6c
commit b22f6c44dd
8 changed files with 40 additions and 34 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ func _physics_process(delta: float) -> void:
for index : int in weapon_actions:
if index >= weapons.size(): break
if Input.is_action_pressed(weapon_actions[index][0], true):
if Input.is_action_pressed(weapon_actions[index][0]):
ship.shoot(weapons[index])
if Input.is_action_pressed(weapon_actions[index][1], true):
if Input.is_action_pressed(weapon_actions[index][1]):
ship.reload(weapons[index])