feat: 添加敌人并且追踪player,同时避免敌人重叠
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://devt2xbk78rej" path="res://assets/sprites/shadow.png" id="1_fvc8g"]
|
||||
[ext_resource type="Script" uid="uid://cwf3afjy6t6rg" path="res://scenes/unit/unit.gd" id="1_vh40f"]
|
||||
[ext_resource type="Texture2D" uid="uid://cproxhccob85g" path="res://assets/sprites/Players/Player_1.png" id="2_vh40f"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_bhlit"]
|
||||
length = 0.001
|
||||
@@ -224,7 +223,7 @@ _data = {
|
||||
&"move": SubResource("Animation_3po7s")
|
||||
}
|
||||
|
||||
[node name="Unit" type="Node2D" unique_id=2022554550]
|
||||
[node name="Unit" type="Area2D" unique_id=2092979720]
|
||||
script = ExtResource("1_vh40f")
|
||||
|
||||
[node name="Visuals" type="Node2D" parent="." unique_id=395976388]
|
||||
@@ -240,7 +239,6 @@ texture = ExtResource("1_fvc8g")
|
||||
[node name="Sprite" type="Sprite2D" parent="Visuals" unique_id=1925870318]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(0, -61)
|
||||
texture = ExtResource("2_vh40f")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=139786467]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user