2025-05-23 11:34:43 +02:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://bj28qiai2x2ar"]
|
2024-05-26 18:34:44 +02:00
|
|
|
|
2025-02-24 11:37:45 +01:00
|
|
|
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_avwdx"]
|
2025-01-21 15:17:26 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_f145b"]
|
2024-06-09 18:19:57 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_sm378"]
|
2025-02-21 16:27:57 +01:00
|
|
|
[ext_resource type="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_eyb2j"]
|
2025-05-23 11:34:43 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://du8xcvbnf30o2" path="res://ExternalMaterial/Barrel/Barrels.png" id="5_xyhjh"]
|
2024-05-26 18:34:44 +02:00
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
|
|
|
|
size = Vector2(11, 14)
|
|
|
|
|
|
2024-06-09 00:34:36 +02:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
|
|
|
|
size = Vector2(11, 14)
|
|
|
|
|
|
2025-04-09 11:43:44 +02:00
|
|
|
[node name="Barrel" type="Area2D" groups=["Destroyable", "navigation_polygon_source_geometry_group"]]
|
2024-05-26 18:34:44 +02:00
|
|
|
collision_layer = 64
|
2024-08-18 11:33:17 +02:00
|
|
|
collision_mask = 138
|
2024-06-09 00:34:36 +02:00
|
|
|
script = ExtResource("1_avwdx")
|
2024-06-09 11:45:22 +02:00
|
|
|
Health = 2.0
|
2025-02-09 21:34:50 +01:00
|
|
|
ExplosionRadius = 4.0
|
|
|
|
|
ExplosionDamage = 3.0
|
2024-06-09 11:45:22 +02:00
|
|
|
DebrisScene = ExtResource("2_f145b")
|
2024-06-09 18:19:57 +02:00
|
|
|
ExplosionParticles = ExtResource("3_sm378")
|
2025-02-21 16:27:57 +01:00
|
|
|
ExplosionData = ExtResource("4_eyb2j")
|
2024-05-26 18:34:44 +02:00
|
|
|
metadata/_edit_group_ = true
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
2024-06-02 23:35:28 +02:00
|
|
|
visible = false
|
2024-05-26 18:34:44 +02:00
|
|
|
position = Vector2(0.5, -1)
|
|
|
|
|
shape = SubResource("RectangleShape2D_2ewfl")
|
|
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
2025-03-05 10:09:07 +01:00
|
|
|
position = Vector2(0, -2)
|
2025-05-23 11:34:43 +02:00
|
|
|
texture = ExtResource("5_xyhjh")
|
|
|
|
|
hframes = 4
|
2024-06-09 00:34:36 +02:00
|
|
|
|
2025-04-09 11:43:44 +02:00
|
|
|
[node name="RigidBody2D" type="StaticBody2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
|
2024-06-09 00:34:36 +02:00
|
|
|
collision_layer = 64
|
|
|
|
|
collision_mask = 10
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
|
|
|
|
visible = false
|
|
|
|
|
position = Vector2(0.5, -1)
|
|
|
|
|
shape = SubResource("RectangleShape2D_ss2y0")
|
2025-03-25 10:54:19 +01:00
|
|
|
|
|
|
|
|
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
|
|
|
|
radius = 8.36
|
|
|
|
|
vertices = PackedVector2Array(-6, -10, 6, -10, 6, 5, -6, 5)
|