This commit is contained in:
2026-01-29 03:04:24 +08:00
parent 6949e20a1f
commit e66ba7542c
12 changed files with 687 additions and 549 deletions
+10
View File
@@ -46,6 +46,16 @@ func _process(delta):
if target_position != player.current_position:
movement_manager.simple_move_to(target_position)
# Targeting Inputs (1, 2, 3, 4)
if Input.is_key_pressed(KEY_1):
player.attempt_target_action(0)
elif Input.is_key_pressed(KEY_2):
player.attempt_target_action(1)
elif Input.is_key_pressed(KEY_3):
player.attempt_target_action(2)
elif Input.is_key_pressed(KEY_4):
player.attempt_target_action(3)
func handle_unhandled_input(event):
# Early return if not authorized human player
if not player.is_multiplayer_authority() or player.is_bot or player.is_in_group("Bots"):