Add RulesComponent, GameRulesResource, and BeeDeath state. Update Bee entity with death animation. Include new textures for particles. Add Highlight animation to Beehive.
This commit is contained in:
parent
1da411cacd
commit
d879ca30bd
222 changed files with 3980 additions and 149 deletions
|
|
@ -1,12 +1,35 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://dyu4mucawjlu6"]
|
||||
[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")
|
||||
|
||||
|
|
@ -24,5 +47,17 @@ drop_shadow_distance = 20
|
|||
[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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue