52 lines
1.6 KiB
Plaintext
52 lines
1.6 KiB
Plaintext
|
[gd_scene load_steps=7 format=3 uid="uid://ci2qx1cctt27p"]
|
||
|
|
||
|
[ext_resource type="Script" uid="uid://vxnx03ef25s8" path="res://scripts/Enemy.gd" id="1_7jlpp"]
|
||
|
[ext_resource type="Texture2D" uid="uid://b8x6okhfoufpx" path="res://assets/enemy.png" id="2_41oev"]
|
||
|
|
||
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_7jlpp"]
|
||
|
friction = 0.0
|
||
|
bounce = 0.3
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_223my"]
|
||
|
radius = 28.0
|
||
|
|
||
|
[sub_resource type="Gradient" id="Gradient_7jlpp"]
|
||
|
colors = PackedColorArray(1, 0, 0, 1, 1, 1, 0, 1)
|
||
|
|
||
|
[sub_resource type="Gradient" id="Gradient_41oev"]
|
||
|
colors = PackedColorArray(0.265048, 8.43251e-05, 0.922038, 1, 0.676137, 0.000581419, 0.724855, 1)
|
||
|
|
||
|
[node name="Enemy" type="RigidBody2D" groups=["Enemy"]]
|
||
|
collision_layer = 2
|
||
|
collision_mask = 15
|
||
|
physics_material_override = SubResource("PhysicsMaterial_7jlpp")
|
||
|
lock_rotation = true
|
||
|
linear_damp = 1.0
|
||
|
script = ExtResource("1_7jlpp")
|
||
|
movement_force = 250.0
|
||
|
max_speed = 100.0
|
||
|
path_give_up_theshold = 128.0
|
||
|
stuck_speed = 50.0
|
||
|
|
||
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||
|
texture = ExtResource("2_41oev")
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
shape = SubResource("CircleShape2D_223my")
|
||
|
|
||
|
[node name="PathDebugLine" type="Line2D" parent="."]
|
||
|
visible = false
|
||
|
default_color = Color(1, 0, 0, 1)
|
||
|
gradient = SubResource("Gradient_7jlpp")
|
||
|
joint_mode = 2
|
||
|
begin_cap_mode = 2
|
||
|
end_cap_mode = 2
|
||
|
|
||
|
[node name="ForceDebugLine" type="Line2D" parent="."]
|
||
|
visible = false
|
||
|
points = PackedVector2Array(0, 0, 0, 200)
|
||
|
default_color = Color(0.27964, 0.000166725, 0.903432, 1)
|
||
|
gradient = SubResource("Gradient_41oev")
|
||
|
begin_cap_mode = 2
|
||
|
end_cap_mode = 2
|