This commit is contained in:
2026-05-14 13:17:23 +02:00
parent 37f4ea3b4e
commit 70bba45b8a
18 changed files with 293 additions and 71 deletions

View File

@@ -3,7 +3,6 @@
[ext_resource type="Script" uid="uid://cdbkkb2cpwkn1" path="res://scripts/Pip.cs" id="1_2foya"]
[ext_resource type="Texture2D" uid="uid://dkpk1ubnmbl68" path="res://assets/pip.png" id="2_46jm3"]
[ext_resource type="PackedScene" uid="uid://dn6jqa3wj40ir" path="res://scripts/components/health_component.tscn" id="3_46jm3"]
[ext_resource type="Script" uid="uid://bfi1cm0m4wuk2" path="res://Damager.cs" id="4_6fdkq"]
[node name="Pip" type="Area2D" unique_id=1889156888]
script = ExtResource("1_2foya")
@@ -16,13 +15,13 @@ polygon = PackedVector2Array(-18.5, -18.5, -18.5, 18.5, 18.5, 18.5, 18.5, -18.5)
texture = ExtResource("2_46jm3")
[node name="HealthComponent" parent="." unique_id=1360050278 node_paths=PackedStringArray("Gfx") instance=ExtResource("3_46jm3")]
visible = false
offset_left = -35.0
offset_top = -18.0
offset_right = -8.0
offset_bottom = 110.0
scale = Vector2(0.28840518, 0.28840518)
Gfx = NodePath("../Gfx")
Health = 5.0
MaxHealth = 5.0
[node name="Damager" type="Timer" parent="." unique_id=1839733483]
autostart = true
script = ExtResource("4_6fdkq")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]