Files
rgb/scene/enemy.tscn
2024-02-14 07:09:49 -06:00

24 lines
758 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://beopqphfymjik"]
[ext_resource type="Script" path="res://scripts/enemy.gd" id="1_a6qhu"]
[ext_resource type="Texture2D" uid="uid://d32ory5gus4lm" path="res://assets/dot.png" id="2_jkluv"]
[sub_resource type="CircleShape2D" id="CircleShape2D_c7wcn"]
radius = 6.0
[node name="Enemy" type="CharacterBody2D"]
collision_layer = 2
script = ExtResource("1_a6qhu")
[node name="Sprite2D" type="Sprite2D" parent="."]
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