Inheritance cleared
This commit is contained in:
parent
38dc6ec4d2
commit
76ab2727de
18 changed files with 3396 additions and 763 deletions
|
|
@ -1,18 +1,12 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://bq7imkpr2yqyr"]
|
||||
[gd_scene load_steps=15 format=3 uid="uid://bq7imkpr2yqyr"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_fluxn"]
|
||||
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_bi7an"]
|
||||
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_mnh2m"]
|
||||
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_mnh2m"]
|
||||
[ext_resource type="Texture2D" uid="uid://dstqh1wc5dvmo" path="res://assets/sprites/atlases/plants/wallnut.png" id="2_o5tda"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://0bdesb8j2mbo" path="res://assets/animations/plants/wallnut.res" id="3_xl65q"]
|
||||
[ext_resource type="Script" uid="uid://btkmd86pn828y" path="res://scripts/entities/plants/behaviours/HpBasedBehaviour.cs" id="4_cjtyy"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ladjs"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("2_bi7an")
|
||||
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://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="5_2hmhw"]
|
||||
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="7_frxj2"]
|
||||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_y3tlf"]
|
||||
|
||||
|
|
@ -46,35 +40,47 @@ node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_khltr"]
|
||||
size = Vector2(33, 46)
|
||||
|
||||
[node name="Wallnut" instance=ExtResource("1_fluxn")]
|
||||
GetInternalID() = "wallnut"
|
||||
[node name="Wallnut" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
|
||||
script = ExtResource("1_mnh2m")
|
||||
MaxHP = 600.0
|
||||
_player = NodePath("AnimationPlayer")
|
||||
_tree = NodePath("AnimationTree")
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_ladjs")
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
material = ExtResource("2_mnh2m")
|
||||
texture = ExtResource("2_o5tda")
|
||||
hframes = 12
|
||||
vframes = 3
|
||||
frame = 10
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"wallnut": ExtResource("3_xl65q")
|
||||
}
|
||||
|
||||
[node name="AnimationTree" parent="." index="2"]
|
||||
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
|
||||
tree_root = SubResource("AnimationNodeBlendTree_bi7an")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/TimeScale/scale = 1.0
|
||||
parameters/Tree/blend_position = 1.0
|
||||
script = ExtResource("5_2hmhw")
|
||||
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(3.5, 5)
|
||||
shape = SubResource("RectangleShape2D_khltr")
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="4"]
|
||||
[node name="Behaviour" type="Node" parent="."]
|
||||
script = ExtResource("4_cjtyy")
|
||||
parameters = Array[String](["parameters/Tree/blend_position"])
|
||||
|
||||
[node name="FlashController" parent="." index="5"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_ladjs")
|
||||
[node name="FlashController" type="Node" parent="."]
|
||||
script = ExtResource("7_frxj2")
|
||||
shaderMaterial = ExtResource("2_mnh2m")
|
||||
|
||||
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]
|
||||
[connection signal="OnHPChanged" from="." to="Behaviour" method="OnHPChanged"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue