Explosions

This commit is contained in:
MaddoScientisto 2024-06-09 11:45:22 +02:00
commit e1d6afa512
21 changed files with 323 additions and 24 deletions

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://bgk7fgwiis425"]
[gd_scene load_steps=6 format=3 uid="uid://bgk7fgwiis425"]
[ext_resource type="Script" path="res://Scenes/Barrel.cs" id="1_flhlf"]
[ext_resource type="PackedScene" uid="uid://dpaobtgb3l4ft" path="res://Scenes/Box_Red_Broken.tscn" id="2_baxfl"]
[ext_resource type="Texture2D" uid="uid://c1djpk8lbgjfe" path="res://Sprites/Box_Red.png" id="2_g1pum"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
@ -9,10 +10,14 @@ size = Vector2(11, 14)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
size = Vector2(11, 14)
[node name="Barrel" type="Area2D" groups=["Destroyable"]]
[node name="Red Box" type="Area2D" groups=["Destroyable"]]
collision_layer = 64
collision_mask = 10
script = ExtResource("1_flhlf")
Health = 4.0
ExplosionRadius = 0.0
ExplosionDamage = 0.0
DebrisScene = ExtResource("2_baxfl")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]