summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Enemies/Flowers.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-05-01 09:41:02 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-05-01 09:41:02 +0200
commitd192b1546ab39180cdc28d2621c117539e3d26d6 (patch)
treebfe040b5fa56aab1cf1161aab4883ba6ca3510df /Scenes/Entities/Enemies/Flowers.tscn
parent81cc6f1d22677dd4a60aa9377c91b291bf10e523 (diff)
update
Diffstat (limited to 'Scenes/Entities/Enemies/Flowers.tscn')
-rw-r--r--Scenes/Entities/Enemies/Flowers.tscn29
1 files changed, 29 insertions, 0 deletions
diff --git a/Scenes/Entities/Enemies/Flowers.tscn b/Scenes/Entities/Enemies/Flowers.tscn
new file mode 100644
index 0000000..91c54d4
--- /dev/null
+++ b/Scenes/Entities/Enemies/Flowers.tscn
@@ -0,0 +1,29 @@
+[gd_scene load_steps=4 format=3 uid="uid://cplelcvju50xj"]
+
+[ext_resource type="Script" path="res://Scenes/Entities/Enemies/Flowers.gd" id="1_a4wuh"]
+[ext_resource type="Texture2D" uid="uid://bbo73owb43h0e" path="res://icon.svg" id="2_womd7"]
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_2a0s2"]
+radius = 64.0
+
+[node name="Flowers" type="CharacterBody2D"]
+motion_mode = 1
+script = ExtResource("1_a4wuh")
+
+[node name="DetectionArea" type="Area2D" parent="."]
+collision_layer = 64
+collision_mask = 2
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="DetectionArea"]
+shape = SubResource("CircleShape2D_2a0s2")
+
+[node name="Sprite2D" type="Sprite2D" parent="."]
+scale = Vector2(0.0625, 0.0625)
+texture = ExtResource("2_womd7")
+
+[node name="Timer" type="Timer" parent="."]
+autostart = true
+
+[connection signal="body_entered" from="DetectionArea" to="." method="_on_detection_area_body_entered"]
+[connection signal="body_exited" from="DetectionArea" to="." method="_on_detection_area_body_exited"]
+[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]