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
96
entities/VegetablePatch.tscn
Normal file
96
entities/VegetablePatch.tscn
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://clomllso36j02"]
|
||||
|
||||
[ext_resource type="Script" path="res://entities/scripts/vegetable_patch.gd" id="1_0gto5"]
|
||||
[ext_resource type="Texture2D" uid="uid://s673b25l7g3k" path="res://resources/textures/veg.png" id="1_xnay0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dn35q8nkyy8q2" path="res://resources/particles/light_03.png" id="2_og86v"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_j5a63"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 1.4, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_am1ne"]
|
||||
offsets = PackedFloat32Array(0.789238, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_qfjud"]
|
||||
radius = 85.57
|
||||
height = 669.91
|
||||
|
||||
[node name="VegetablePatch" type="Node2D"]
|
||||
script = ExtResource("1_0gto5")
|
||||
|
||||
[node name="Veg" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_xnay0")
|
||||
offset = Vector2(1, 18)
|
||||
|
||||
[node name="Outline" type="Sprite2D" parent="Veg"]
|
||||
visible = false
|
||||
modulate = Color(0.882353, 0, 0, 1)
|
||||
show_behind_parent = true
|
||||
scale = Vector2(1.05, 1.025)
|
||||
texture = ExtResource("1_xnay0")
|
||||
offset = Vector2(1, 18)
|
||||
|
||||
[node name="PesticideClouds" type="Node2D" parent="."]
|
||||
|
||||
[node name="PesticideCloud_1" type="CPUParticles2D" parent="PesticideClouds"]
|
||||
position = Vector2(2, -63)
|
||||
amount = 6
|
||||
lifetime = 3.0
|
||||
texture = ExtResource("2_og86v")
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 20.0
|
||||
gravity = Vector2(0, 0)
|
||||
scale_amount_min = 0.1
|
||||
scale_amount_max = 0.4
|
||||
scale_amount_curve = SubResource("Curve_j5a63")
|
||||
color = Color(0.94902, 0.184314, 0.27451, 0.27451)
|
||||
color_ramp = SubResource("Gradient_am1ne")
|
||||
|
||||
[node name="PesticideCloud_2" type="CPUParticles2D" parent="PesticideClouds"]
|
||||
position = Vector2(-1, -236)
|
||||
amount = 6
|
||||
lifetime = 3.0
|
||||
texture = ExtResource("2_og86v")
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 20.0
|
||||
gravity = Vector2(0, 0)
|
||||
scale_amount_min = 0.1
|
||||
scale_amount_max = 0.4
|
||||
scale_amount_curve = SubResource("Curve_j5a63")
|
||||
color = Color(0.94902, 0.184314, 0.27451, 0.27451)
|
||||
color_ramp = SubResource("Gradient_am1ne")
|
||||
|
||||
[node name="PesticideCloud_3" type="CPUParticles2D" parent="PesticideClouds"]
|
||||
position = Vector2(2, 110)
|
||||
amount = 6
|
||||
lifetime = 3.0
|
||||
texture = ExtResource("2_og86v")
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 20.0
|
||||
gravity = Vector2(0, 0)
|
||||
scale_amount_min = 0.1
|
||||
scale_amount_max = 0.4
|
||||
scale_amount_curve = SubResource("Curve_j5a63")
|
||||
color = Color(0.94902, 0.184314, 0.27451, 0.27451)
|
||||
color_ramp = SubResource("Gradient_am1ne")
|
||||
|
||||
[node name="PesticideCloud_4" type="CPUParticles2D" parent="PesticideClouds"]
|
||||
position = Vector2(6, 269)
|
||||
amount = 6
|
||||
lifetime = 3.0
|
||||
texture = ExtResource("2_og86v")
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 20.0
|
||||
gravity = Vector2(0, 0)
|
||||
scale_amount_min = 0.1
|
||||
scale_amount_max = 0.4
|
||||
scale_amount_curve = SubResource("Curve_j5a63")
|
||||
color = Color(0.94902, 0.184314, 0.27451, 0.27451)
|
||||
color_ramp = SubResource("Gradient_am1ne")
|
||||
|
||||
[node name="DeathBox" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DeathBox"]
|
||||
position = Vector2(2, 14)
|
||||
shape = SubResource("CapsuleShape2D_qfjud")
|
||||
Loading…
Add table
Add a link
Reference in a new issue