Survival mode ready

This commit is contained in:
Rendo 2025-06-26 20:18:19 +05:00
commit 7614b12076
50 changed files with 586 additions and 81 deletions

View file

@ -3,9 +3,9 @@
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_bikjn"]
[ext_resource type="Texture2D" uid="uid://b3tuidu8dag8u" path="res://assets/sprites/atlases/plants/sunflower.png" id="2_fwcda"]
[ext_resource type="AnimationLibrary" uid="uid://yjytiuj4u7oh" path="res://resources/animations/plants/sunflower.res" id="3_btsik"]
[ext_resource type="Script" path="res://scripts/components/plants/PlantSunSpawner.cs" id="3_te0pl"]
[ext_resource type="Script" uid="uid://b71gebny84s81" path="res://scripts/components/plants/PlantSunSpawner.cs" id="3_te0pl"]
[ext_resource type="PackedScene" uid="uid://bpekho7leatr5" path="res://scenes/sun.tscn" id="4_b8hls"]
[ext_resource type="Script" path="res://scripts/components/plants/behaviours/SunflowerBehaviour.cs" id="5_26je0"]
[ext_resource type="Script" uid="uid://bth7gah4tn7uj" path="res://scripts/components/plants/behaviours/SunflowerBehaviour.cs" id="5_26je0"]
[sub_resource type="Animation" id="Animation_bfx6v"]
length = 0.001
@ -24,7 +24,7 @@ tracks/0/keys = {
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ek2al"]
_data = {
"RESET": SubResource("Animation_bfx6v")
&"RESET": SubResource("Animation_bfx6v")
}
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_lkpmx"]
@ -60,12 +60,12 @@ size = Vector2(26, 48)
texture = ExtResource("2_fwcda")
hframes = 9
vframes = 2
frame = 1
frame = 2
[node name="AnimationPlayer" parent="." index="1"]
libraries = {
"": SubResource("AnimationLibrary_ek2al"),
"sunflower": ExtResource("3_btsik")
&"": SubResource("AnimationLibrary_ek2al"),
&"sunflower": ExtResource("3_btsik")
}
[node name="AnimationTree" parent="." index="2"]
@ -82,7 +82,11 @@ _amountPerSun = 25
script = ExtResource("5_26je0")
[node name="Timer" type="Timer" parent="Behaviour" index="0"]
wait_time = 5.0
wait_time = 24.25
[node name="StartTimer" type="Timer" parent="Behaviour" index="1"]
wait_time = 12.0
one_shot = true
autostart = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
@ -90,3 +94,5 @@ position = Vector2(0, 4)
shape = SubResource("RectangleShape2D_4xs4g")
[connection signal="timeout" from="Behaviour/Timer" to="Behaviour" method="Timeout"]
[connection signal="timeout" from="Behaviour/StartTimer" to="Behaviour" method="Timeout"]
[connection signal="timeout" from="Behaviour/StartTimer" to="Behaviour/Timer" method="start"]