Added splash damage

This commit is contained in:
2025-11-16 23:18:45 +03:00
parent 5adbdd6e54
commit cf7e6d13ef
19 changed files with 147 additions and 43 deletions
@@ -1,15 +1,10 @@
[gd_scene load_steps=15 format=3 uid="uid://dukgbg13ujkv2"]
[gd_scene load_steps=16 format=3 uid="uid://dukgbg13ujkv2"]
[ext_resource type="PackedScene" uid="uid://betr5ry5tc75e" path="res://game/entities/weapons/blast_projectile.tscn" id="1_0mcat"]
[ext_resource type="Script" uid="uid://dkvur5bdwg3sr" path="res://game/entities/weapons/launcher/launcher_projectile.gd" id="2_6hdsf"]
[ext_resource type="Script" uid="uid://dftb7hg5f06b5" path="res://game/health_system/damage/explosion_damage.gd" id="3_ycnsk"]
[ext_resource type="Texture2D" uid="uid://oj86smpsipw4" path="res://images/projectiles.png" id="4_kxgpk"]
[sub_resource type="Resource" id="Resource_kxgpk"]
script = ExtResource("3_ycnsk")
value = 24
metadata/_custom_type_script = "uid://dftb7hg5f06b5"
[sub_resource type="AtlasTexture" id="AtlasTexture_kxgpk"]
atlas = ExtResource("4_kxgpk")
region = Rect2(0, 32, 16, 16)
@@ -46,12 +41,19 @@ region = Rect2(48, 48, 16, 16)
radius = 1.0
height = 6.0
[sub_resource type="Resource" id="Resource_kos01"]
script = ExtResource("3_ycnsk")
value = 24
metadata/_custom_type_script = "uid://dftb7hg5f06b5"
[sub_resource type="CircleShape2D" id="CircleShape2D_kxgpk"]
radius = 16.0
[node name="LauncherProjectile" instance=ExtResource("1_0mcat")]
collision_layer = 0
collision_mask = 0
script = ExtResource("2_6hdsf")
rotation_speed = 90
damage = SubResource("Resource_kxgpk")
speed = 300
[node name="Sprite2D_E" type="Sprite2D" parent="." index="0"]
@@ -80,3 +82,7 @@ texture = SubResource("AtlasTexture_dl8vu")
[node name="CollisionShape2D" parent="." index="8"]
shape = SubResource("CapsuleShape2D_6hdsf")
[node name="Blast" parent="." index="10"]
damage = SubResource("Resource_kos01")
shape = SubResource("CircleShape2D_kxgpk")