ft: player attacking logic

This commit is contained in:
2026-01-17 14:20:54 +01:00
parent 5811658c64
commit 18ce1716e4
8 changed files with 92 additions and 61 deletions

View File

@@ -22,6 +22,7 @@ GameManager="*res://game_manager.gd"
[global_group]
player="All scenes that constitute players should be added here."
prey="any passive killable entities belong in this group"
[input]
@@ -45,6 +46,11 @@ move_down={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
]
}
try_attack={
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null)
]
}
[layer_names]