Inheritance cleared

This commit is contained in:
Rendo 2025-07-30 02:21:11 +05:00
commit abd08661c4
18 changed files with 3343 additions and 710 deletions

View file

@ -1,19 +1,13 @@
[gd_scene load_steps=23 format=3 uid="uid://bw1w8jp0yeypy"]
[gd_scene load_steps=24 format=3 uid="uid://bw1w8jp0yeypy"]
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_n25yi"]
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_dm0tl"]
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_8fr1j"]
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_aimqk"]
[ext_resource type="Texture2D" uid="uid://b6tyoa5htapir" path="res://assets/sprites/atlases/plants/aloe.png" id="2_iup5p"]
[ext_resource type="AnimationLibrary" uid="uid://bgutjc3ruq27s" path="res://assets/animations/plants/aloe.res" id="3_3sp3b"]
[ext_resource type="Script" uid="uid://cljytsmqac0w7" path="res://scripts/entities/plants/behaviours/AloeBehaviour.cs" id="4_55asm"]
[ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="4_aimqk"]
[ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="5_gfy6j"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_8fr1j"]
resource_local_to_scene = true
shader = ExtResource("2_dm0tl")
shader_parameter/FLASH_COLOR = Color(1, 0.709804, 0.439216, 0.5)
shader_parameter/HIGHLIGHT_COLOR = Color(1, 0.709804, 0.439216, 0.5)
shader_parameter/selected = false
shader_parameter/blend = 0.0
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="7_vpcbp"]
[sub_resource type="Animation" id="Animation_vknky"]
length = 0.001
@ -103,43 +97,54 @@ node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_oe0dc"]
size = Vector2(22, 32)
[node name="Aloe" instance=ExtResource("1_n25yi")]
GetInternalID() = "aloe"
[node name="Aloe" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
script = ExtResource("1_8fr1j")
MaxHP = 30.0
_player = NodePath("AnimationPlayer")
_tree = NodePath("AnimationTree")
[node name="Sprite2D" parent="." index="0"]
material = SubResource("ShaderMaterial_8fr1j")
[node name="Sprite2D" type="Sprite2D" parent="."]
material = ExtResource("2_aimqk")
position = Vector2(9, -14)
texture = ExtResource("2_iup5p")
hframes = 8
vframes = 4
[node name="AnimationPlayer" parent="." index="1"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_wlien"),
&"aloe": ExtResource("3_3sp3b")
}
[node name="AnimationTree" parent="." index="2"]
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
tree_root = SubResource("AnimationNodeBlendTree_gfy6j")
anim_player = NodePath("../AnimationPlayer")
parameters/TimeScale/scale = 1.0
parameters/Tree/conditions/charged = false
parameters/Tree/conditions/heal = false
script = ExtResource("4_aimqk")
entity = NodePath("..")
[node name="Behaviour" type="Node" parent="." index="3"]
[node name="Behaviour" type="Node" parent="."]
script = ExtResource("4_55asm")
_hpTreshold = 0.5
[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 = 15.0
one_shot = true
script = ExtResource("5_gfy6j")
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"]
shape = SubResource("RectangleShape2D_oe0dc")
[node name="FlashController" parent="." index="5"]
shaderMaterial = SubResource("ShaderMaterial_8fr1j")
[node name="FlashController" type="Node" parent="."]
script = ExtResource("7_vpcbp")
shaderMaterial = ExtResource("2_aimqk")
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]
[connection signal="timeout" from="Behaviour/Timer" to="Behaviour" method="OnTimeout"]