Added health system

This commit is contained in:
2025-11-08 14:31:32 +03:00
parent 8f7e7aa78f
commit 82058a0dee
28 changed files with 228 additions and 26 deletions
@@ -1,7 +1,13 @@
[gd_scene load_steps=5 format=3 uid="uid://cgi7wd84kjnyw"]
[gd_scene load_steps=7 format=3 uid="uid://cgi7wd84kjnyw"]
[ext_resource type="PackedScene" uid="uid://ybkqaynvpcjm" path="res://game/entities/weapons/abstract_projectile.tscn" id="1_20qwt"]
[ext_resource type="Script" uid="uid://dfdh0o88as054" path="res://game/entities/weapons/cannon/cannon_projectile.gd" id="2_x3axw"]
[ext_resource type="Script" uid="uid://dftb7hg5f06b5" path="res://game/health_system/damage/explosion_damage.gd" id="3_lb11p"]
[sub_resource type="Resource" id="Resource_bb01p"]
script = ExtResource("3_lb11p")
value = 50
metadata/_custom_type_script = "uid://dftb7hg5f06b5"
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_x3axw"]
size = Vector2(6, 6)
@@ -11,7 +17,7 @@ radius = 2.0
[node name="CannonProjectile" instance=ExtResource("1_20qwt")]
script = ExtResource("2_x3axw")
damage = 50
damage = SubResource("Resource_bb01p")
speed = 600
[node name="Sprite2D" parent="." index="0"]