Inheritance cleared
This commit is contained in:
parent
38dc6ec4d2
commit
76ab2727de
18 changed files with 3396 additions and 763 deletions
|
|
@ -1,21 +1,15 @@
|
|||
[gd_scene load_steps=21 format=3 uid="uid://bg7lomiorxo2c"]
|
||||
[gd_scene load_steps=22 format=3 uid="uid://bg7lomiorxo2c"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_bikjn"]
|
||||
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_yyn2e"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3tuidu8dag8u" path="res://assets/sprites/atlases/plants/sunflower.png" id="2_fwcda"]
|
||||
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_qpvbo"]
|
||||
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_yyn2e"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://yjytiuj4u7oh" path="res://assets/animations/plants/sunflower.res" id="3_btsik"]
|
||||
[ext_resource type="Script" uid="uid://b71gebny84s81" path="res://scripts/entities/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" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="5_7omaw"]
|
||||
[ext_resource type="Script" uid="uid://bth7gah4tn7uj" path="res://scripts/entities/plants/behaviours/SunflowerBehaviour.cs" id="5_26je0"]
|
||||
[ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="7_rlkb7"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_mdjfv"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("2_qpvbo")
|
||||
shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961)
|
||||
shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353)
|
||||
shader_parameter/selected = false
|
||||
shader_parameter/blend = 0.0
|
||||
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="10_w3e3c"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_bfx6v"]
|
||||
length = 0.001
|
||||
|
|
@ -73,56 +67,67 @@ node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4xs4g"]
|
||||
size = Vector2(26, 48)
|
||||
|
||||
[node name="Sunflower" instance=ExtResource("1_bikjn")]
|
||||
GetInternalID() = "sunflower"
|
||||
[node name="Sunflower" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
|
||||
script = ExtResource("1_yyn2e")
|
||||
MaxHP = 30.0
|
||||
_player = NodePath("AnimationPlayer")
|
||||
_tree = NodePath("AnimationTree")
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_mdjfv")
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
material = ExtResource("2_yyn2e")
|
||||
texture = ExtResource("2_fwcda")
|
||||
hframes = 9
|
||||
vframes = 2
|
||||
frame = 2
|
||||
frame = 4
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_ek2al"),
|
||||
&"sunflower": ExtResource("3_btsik")
|
||||
}
|
||||
|
||||
[node name="AnimationTree" parent="." index="2"]
|
||||
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
|
||||
tree_root = SubResource("AnimationNodeBlendTree_rlkb7")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/TimeScale/scale = 1.0
|
||||
parameters/Tree/conditions/produce = false
|
||||
script = ExtResource("5_7omaw")
|
||||
entity = NodePath("..")
|
||||
|
||||
[node name="PlantSunSpawner" type="Node2D" parent="." index="3"]
|
||||
[node name="PlantSunSpawner" type="Node2D" parent="."]
|
||||
position = Vector2(-2, 0)
|
||||
script = ExtResource("3_te0pl")
|
||||
_sunScene = ExtResource("4_b8hls")
|
||||
_amountPerSun = 25
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="4"]
|
||||
[node name="Behaviour" type="Node" parent="."]
|
||||
script = ExtResource("5_26je0")
|
||||
|
||||
[node name="Timer" type="Timer" parent="Behaviour" index="0" node_paths=PackedStringArray("entity")]
|
||||
[node name="Timer" type="Timer" parent="Behaviour" node_paths=PackedStringArray("entity")]
|
||||
wait_time = 24.25
|
||||
script = ExtResource("7_rlkb7")
|
||||
entity = NodePath("../..")
|
||||
|
||||
[node name="StartTimer" type="Timer" parent="Behaviour" index="1" node_paths=PackedStringArray("entity")]
|
||||
[node name="StartTimer" type="Timer" parent="Behaviour" node_paths=PackedStringArray("entity")]
|
||||
wait_time = 12.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
script = ExtResource("7_rlkb7")
|
||||
entity = NodePath("../..")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2(0, 4)
|
||||
shape = SubResource("RectangleShape2D_4xs4g")
|
||||
|
||||
[node name="FlashController" parent="." index="6"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_mdjfv")
|
||||
[node name="FlashController" type="Node" parent="."]
|
||||
script = ExtResource("10_w3e3c")
|
||||
shaderMaterial = ExtResource("2_yyn2e")
|
||||
|
||||
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]
|
||||
[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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue