Inheritance cleared

This commit is contained in:
Rendo 2025-07-30 02:21:11 +05:00
commit 76ab2727de
18 changed files with 3396 additions and 763 deletions

View file

@ -1,10 +1,13 @@
[gd_scene load_steps=31 format=3 uid="uid://k5aj2slxar7w"]
[gd_scene load_steps=34 format=3 uid="uid://k5aj2slxar7w"]
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_8ui1h"]
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_o12iv"]
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_6e60l"]
[ext_resource type="Texture2D" uid="uid://b06e8xhdy77d1" path="res://assets/sprites/atlases/plants/nerdus.png" id="2_614v4"]
[ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="3_6e60l"]
[ext_resource type="Script" uid="uid://dcokqes5wwo3k" path="res://scripts/entities/plants/NerdusReturnAttack.cs" id="3_614v4"]
[ext_resource type="Resource" uid="uid://dme4nvp28otq6" path="res://assets/effects/NerdusEffect.tres" id="4_ga4vy"]
[ext_resource type="Script" uid="uid://btkmd86pn828y" path="res://scripts/entities/plants/behaviours/HpBasedBehaviour.cs" id="5_o1ggp"]
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="7_v7ffp"]
[sub_resource type="Animation" id="Animation_ga4vy"]
length = 0.001
@ -251,46 +254,61 @@ radius = 24.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ga4vy"]
size = Vector2(73, 48)
[node name="Nerdus" instance=ExtResource("1_8ui1h")]
GetInternalID() = "nerdus"
[node name="Nerdus" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
script = ExtResource("1_o12iv")
MaxHP = 200.0
_player = NodePath("AnimationPlayer")
_tree = NodePath("AnimationTree")
[node name="Sprite2D" parent="." index="0"]
[node name="Sprite2D" type="Sprite2D" parent="."]
material = ExtResource("2_6e60l")
texture = ExtResource("2_614v4")
hframes = 7
vframes = 6
[node name="AnimationPlayer" parent="." index="1"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_o1ggp"),
&"nerdus": SubResource("AnimationLibrary_pddnl")
}
[node name="AnimationTree" parent="." index="2"]
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
tree_root = SubResource("AnimationNodeBlendTree_6a4q1")
advance_expression_base_node = NodePath("../Hurtbox")
anim_player = NodePath("../AnimationPlayer")
parameters/TimeScale/scale = 1.0
parameters/Tree/Attack/blend_position = 1.0
parameters/Tree/Idle/blend_position = 1.0
script = ExtResource("3_6e60l")
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, 3)
shape = SubResource("CircleShape2D_8ui1h")
[node name="Hurtbox" type="Area2D" parent="." index="4"]
[node name="Hurtbox" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 8
script = ExtResource("3_614v4")
returnEffect = ExtResource("4_ga4vy")
bitesToPeas = 1.6
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox" index="0"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
position = Vector2(3.5, 3)
shape = SubResource("RectangleShape2D_ga4vy")
[node name="Behaviour" type="Node" parent="." index="5"]
[node name="Behaviour" type="Node" parent="."]
script = ExtResource("5_o1ggp")
parameters = Array[String](["parameters/Tree/Attack/blend_position", "parameters/Tree/Idle/blend_position"])
[node name="FlashController" type="Node" parent="."]
script = ExtResource("7_v7ffp")
shaderMaterial = ExtResource("2_6e60l")
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]
[connection signal="OnHPChanged" from="." to="Hurtbox" method="OnHPChanged"]
[connection signal="OnHPChanged" from="." to="Behaviour" method="OnHPChanged"]