58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
[gd_scene format=3 uid="uid://dxx6mxv6x5yws"]
|
|
|
|
[ext_resource type="Script" uid="uid://su208qu0ehcs" path="res://scenes/enemy.gd" id="1_7p1mj"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_aqe1g"]
|
|
size = Vector2(168, 167)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yg5ta"]
|
|
size = Vector2(178, 168)
|
|
|
|
[node name="enemy" type="CharacterBody2D" unique_id=1471932521]
|
|
collision_layer = 4
|
|
collision_mask = 11
|
|
script = ExtResource("1_7p1mj")
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="." unique_id=519837051]
|
|
offset_right = 169.0
|
|
offset_bottom = 166.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1567529793]
|
|
position = Vector2(85, 82)
|
|
shape = SubResource("RectangleShape2D_aqe1g")
|
|
|
|
[node name="Timer" type="Timer" parent="." unique_id=356300230]
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=461696644]
|
|
collision_layer = 4
|
|
collision_mask = 11
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=72940614]
|
|
position = Vector2(84, 79)
|
|
shape = SubResource("RectangleShape2D_yg5ta")
|
|
|
|
[node name="ColorRect2" type="ColorRect" parent="." unique_id=797261471]
|
|
offset_left = 4.0
|
|
offset_top = -56.0
|
|
offset_right = 44.0
|
|
offset_bottom = -16.0
|
|
color = Color(0, 1, 0, 1)
|
|
|
|
[node name="ColorRect3" type="ColorRect" parent="." unique_id=76071947]
|
|
offset_left = 61.0
|
|
offset_top = -57.0
|
|
offset_right = 101.0
|
|
offset_bottom = -17.0
|
|
color = Color(0, 1, 0, 1)
|
|
|
|
[node name="ColorRect4" type="ColorRect" parent="." unique_id=526458105]
|
|
offset_left = 126.0
|
|
offset_top = -58.0
|
|
offset_right = 166.0
|
|
offset_bottom = -18.0
|
|
color = Color(0, 1, 0, 1)
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
|
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|