pollen-not-included/entities/Beehive.tscn

64 lines
2.1 KiB
Text

[gd_scene load_steps=8 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"]
[ext_resource type="Texture2D" uid="uid://dhf4dessaw5p5" path="res://resources/particles/twirl_01.png" id="4_4biie"]
[sub_resource type="CircleShape2D" id="CircleShape2D_h6wmc"]
radius = 250.0
[sub_resource type="Animation" id="Animation_41718"]
resource_name = "Highlight"
length = 5.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("AreaHighlight:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [6.28319, 0.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qs4pr"]
_data = {
"Highlight": SubResource("Animation_41718")
}
[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 = 25
[node name="Area2D" type="Area2D" parent="."]
visible = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_h6wmc")
[node name="AreaHighlight" type="Sprite2D" parent="."]
visible = false
self_modulate = Color(1, 1, 0.117647, 0.352941)
rotation = 6.28319
texture = ExtResource("4_4biie")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_qs4pr")
}
autoplay = "Highlight"
[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"]