added attacks

This commit is contained in:
2024-02-14 07:09:32 -06:00
parent 8fc0ed9218
commit e6d1f5a8df
12 changed files with 251 additions and 20 deletions

View File

@@ -7,6 +7,7 @@
radius = 6.0
[node name="Enemy" type="CharacterBody2D"]
collision_layer = 2
script = ExtResource("1_a6qhu")
[node name="Sprite2D" type="Sprite2D" parent="."]
@@ -14,3 +15,9 @@ texture = ExtResource("2_jkluv")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_c7wcn")
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
target_desired_distance = 16.0
path_postprocessing = 1
avoidance_enabled = true
radius = 8.0