pollen-not-included/entities/Beehive.tscn
2024-05-07 15:51:31 +01:00

28 lines
1.2 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://dyu4mucawjlu6"]
[ext_resource type="Script" path="res://entities/scripts/beehive.gd" id="1_ej1r1"]
[ext_resource type="Texture2D" uid="uid://dijxeckxe7trv" path="res://resources/textures/beehive.png" id="2_2xhre"]
[ext_resource type="PackedScene" uid="uid://6w1nq8lhq3tq" path="res://components/DropShadowComponent.tscn" id="3_uglsl"]
[sub_resource type="CircleShape2D" id="CircleShape2D_h6wmc"]
radius = 250.0
[node name="Beehive" type="Node2D"]
script = ExtResource("1_ej1r1")
[node name="BeehiveSprite" type="Sprite2D" parent="."]
position = Vector2(-3, 1)
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_2xhre")
[node name="DropShadowComponent" parent="." node_paths=PackedStringArray("parent_sprite") instance=ExtResource("3_uglsl")]
parent_sprite = NodePath("../BeehiveSprite")
drop_shadow_distance = 20
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_h6wmc")
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
[connection signal="area_exited" from="Area2D" to="." method="_on_area_2d_area_exited"]