[gd_scene load_steps=12 format=3 uid="uid://dux8pv1y8wkt0"]

[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_012qq"]
[ext_resource type="PackedScene" uid="uid://duaisem6rf56s" path="res://Scenes/Props/Broken_Capacitor.tscn" id="2_hnb2s"]
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_fms01"]
[ext_resource type="Resource" uid="uid://dk2rbf88a5irh" path="res://Resources/Bullets/Explosion_Harmless.tres" id="4_q7brp"]
[ext_resource type="Texture2D" uid="uid://5xl4cht2471h" path="res://Sprites/Props/Capacitor.png" id="6_2htjq"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
size = Vector2(11, 14)

[sub_resource type="AtlasTexture" id="AtlasTexture_y2ecd"]
atlas = ExtResource("6_2htjq")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_fc7w7"]
atlas = ExtResource("6_2htjq")
region = Rect2(16, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_jc6gn"]
atlas = ExtResource("6_2htjq")
region = Rect2(32, 0, 16, 16)

[sub_resource type="SpriteFrames" id="SpriteFrames_dcpu5"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_y2ecd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fc7w7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jc6gn")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
size = Vector2(11, 14)

[node name="Capacitor" type="Area2D" groups=["Destroyable"]]
collision_layer = 64
collision_mask = 138
script = ExtResource("1_012qq")
Health = 2.0
ExplosionRadius = 0.0
ExplosionDamage = 0.0
DebrisScene = ExtResource("2_hnb2s")
ExplosionParticles = ExtResource("3_fms01")
ExplosionData = ExtResource("4_q7brp")
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2(0.5, -1)
shape = SubResource("RectangleShape2D_2ewfl")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_dcpu5")
autoplay = "default"
frame = 2
frame_progress = 0.119855

[node name="RigidBody2D" type="RigidBody2D" parent="."]
collision_layer = 64
collision_mask = 10
gravity_scale = 0.0

[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
visible = false
position = Vector2(0.5, -1)
shape = SubResource("RectangleShape2D_ss2y0")
