Inheritance cleared
This commit is contained in:
parent
38dc6ec4d2
commit
76ab2727de
18 changed files with 3396 additions and 763 deletions
|
|
@ -1,20 +1,14 @@
|
|||
[gd_scene load_steps=15 format=3 uid="uid://bdhod5c6o53ha"]
|
||||
[gd_scene load_steps=16 format=3 uid="uid://bdhod5c6o53ha"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_vmbvr"]
|
||||
[ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_63okc"]
|
||||
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_kd62n"]
|
||||
[ext_resource type="Texture2D" uid="uid://coafh3mjharxo" path="res://assets/sprites/atlases/plants/spikeweed.png" id="2_ffrjr"]
|
||||
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_kd62n"]
|
||||
[ext_resource type="Script" uid="uid://co7ttejdo2qot" path="res://scripts/entities/plants/AreaAttack.cs" id="3_hqtbm"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://cen6ku4y01dyg" path="res://assets/animations/plants/spikeweed.res" id="3_nwshn"]
|
||||
[ext_resource type="Script" uid="uid://dqquodxaijmem" path="res://scripts/entities/plants/behaviours/SpikeweedBehaviour.cs" id="3_uhpn7"]
|
||||
[ext_resource type="Script" uid="uid://dw7v3s4kbu7ma" path="res://scripts/entities/AnimationStatistics.cs" id="5_yfuxj"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_yfuxj"]
|
||||
resource_local_to_scene = true
|
||||
shader = ExtResource("2_63okc")
|
||||
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://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="6_sqcsr"]
|
||||
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="9_lq7xg"]
|
||||
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_jleqa"]
|
||||
|
||||
|
|
@ -45,47 +39,54 @@ node_connections = [&"TimeScale", 0, &"Tree", &"output", 0, &"TimeScale"]
|
|||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1di76"]
|
||||
size = Vector2(49, 38)
|
||||
|
||||
[node name="Spikeweed" instance=ExtResource("1_vmbvr")]
|
||||
GetInternalID() = "spikeweed"
|
||||
[node name="Spikeweed" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
|
||||
script = ExtResource("1_kd62n")
|
||||
MaxHP = 30.0
|
||||
_player = NodePath("AnimationPlayer")
|
||||
_tree = NodePath("AnimationTree")
|
||||
|
||||
[node name="Sprite2D" parent="." index="0"]
|
||||
material = SubResource("ShaderMaterial_yfuxj")
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
material = ExtResource("2_kd62n")
|
||||
texture = ExtResource("2_ffrjr")
|
||||
hframes = 10
|
||||
vframes = 2
|
||||
frame = 6
|
||||
frame = 1
|
||||
|
||||
[node name="AnimationPlayer" parent="." index="1"]
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"spikeweed": ExtResource("3_nwshn")
|
||||
}
|
||||
|
||||
[node name="DPSStatistics" type="Node" parent="AnimationPlayer" index="0"]
|
||||
[node name="DPSStatistics" type="Node" parent="AnimationPlayer"]
|
||||
script = ExtResource("5_yfuxj")
|
||||
animationName = "spikeweed/attack"
|
||||
trackToFind = "Hitbox"
|
||||
|
||||
[node name="AnimationTree" parent="." index="2"]
|
||||
[node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")]
|
||||
tree_root = SubResource("AnimationNodeBlendTree_63okc")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/TimeScale/scale = 1.0
|
||||
parameters/Tree/blend_position = 0
|
||||
script = ExtResource("6_sqcsr")
|
||||
entity = NodePath("..")
|
||||
|
||||
[node name="Behaviour" type="Node" parent="." index="3"]
|
||||
[node name="Behaviour" type="Node" parent="."]
|
||||
script = ExtResource("3_uhpn7")
|
||||
|
||||
[node name="Hitbox" parent="." index="4"]
|
||||
[node name="Hitbox" type="Area2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 8
|
||||
script = ExtResource("3_hqtbm")
|
||||
_damage = 6
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
||||
position = Vector2(0.5, 9)
|
||||
shape = SubResource("RectangleShape2D_1di76")
|
||||
|
||||
[node name="FlashController" parent="." index="5"]
|
||||
shaderMaterial = SubResource("ShaderMaterial_yfuxj")
|
||||
[node name="FlashController" type="Node" parent="."]
|
||||
script = ExtResource("9_lq7xg")
|
||||
shaderMaterial = ExtResource("2_kd62n")
|
||||
|
||||
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]
|
||||
[connection signal="area_entered" from="Hitbox" to="Behaviour" method="OnHitboxEntered"]
|
||||
[connection signal="area_exited" from="Hitbox" to="Behaviour" method="OnHitboxExited"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue