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

@ -4,7 +4,7 @@
[ext_resource type="Texture2D" uid="uid://fd6drk2su0df" path="res://assets/sprites/gui/EmptyShovel.tres" id="2_pw2pj"]
[ext_resource type="Script" uid="uid://d4dbg0us5ngxy" path="res://scripts/gui/ShovelButton.cs" id="3_u6gir"]
[node name="ShovelButton" type="TextureButton"]
[node name="ShovelButton" type="TextureButton" node_paths=PackedStringArray("raycast")]
anchors_preset = -1
anchor_right = 0.085
anchor_bottom = 0.117
@ -18,5 +18,14 @@ texture_normal = ExtResource("1_46afk")
texture_pressed = ExtResource("2_pw2pj")
stretch_mode = 0
script = ExtResource("3_u6gir")
raycast = NodePath("RayCast2D")
[node name="RayCast2D" type="RayCast2D" parent="."]
exclude_parent = false
target_position = Vector2(0, 0)
collision_mask = 24
hit_from_inside = true
collide_with_areas = true
collide_with_bodies = false
[connection signal="focus_exited" from="." to="." method="OnFocusExited"]