Plants flash and shovel alt

This commit is contained in:
Rendo 2025-07-23 16:07:55 +05:00
commit e4c25a1ca5
23 changed files with 451 additions and 195 deletions

View file

@ -1,7 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://b1hjjbdwf1rtc"]
[gd_scene load_steps=5 format=3 uid="uid://b1hjjbdwf1rtc"]
[ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_324sd"]
[ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_3uws4"]
[ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="2_e75pf"]
[ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="4_3uws4"]
[node name="PlantTemplate" type="Node2D" node_paths=PackedStringArray("_player", "_tree")]
script = ExtResource("1_324sd")
@ -9,7 +11,7 @@ _player = NodePath("AnimationPlayer")
_tree = NodePath("AnimationTree")
[node name="Sprite2D" type="Sprite2D" parent="."]
use_parent_material = true
material = ExtResource("2_3uws4")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
@ -21,3 +23,9 @@ entity = NodePath("..")
[node name="Hitbox" type="Area2D" parent="."]
collision_layer = 2
collision_mask = 0
[node name="FlashController" type="Node" parent="."]
script = ExtResource("4_3uws4")
shaderMaterial = ExtResource("2_3uws4")
[connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"]