[gd_scene load_steps=8 format=2]

[ext_resource path="res://samagri/broke_brick/p4.png" type="Texture" id=1]
[ext_resource path="res://samagri/broke_brick/p2.png" type="Texture" id=2]
[ext_resource path="res://samagri/broke_brick/p1.png" type="Texture" id=3]
[ext_resource path="res://samagri/broke_brick/p3.png" type="Texture" id=4]
[ext_resource path="res://src/objects/BrokenBrick.gd" type="Script" id=5]
[ext_resource path="res://samagri/sfx/explode.wav" type="AudioStream" id=6]

[sub_resource type="Animation" id=1]
resource_name = "fall"
length = 1.5
tracks/0/type = "value"
tracks/0/path = NodePath("p1:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( -8, -8 ), Vector2( -26, -37 ), Vector2( -51, -55 ), Vector2( -72, -16 ), Vector2( -217, 628 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("p1:rotation_degrees")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.0, -15.0, -30.0, -74.9999, -120.0 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("p2:position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 8, -8 ), Vector2( 29, -37 ), Vector2( 47, -58 ), Vector2( 76, -20 ), Vector2( 245, 632 ) ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("p2:rotation_degrees")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.0, 15.0, 30.0, 59.9999, 105.0 ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("p3:position")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( -8, 8 ), Vector2( -14, -26 ), Vector2( -29, -52 ), Vector2( -50, -12 ), Vector2( -164, 632 ) ]
}
tracks/5/type = "value"
tracks/5/path = NodePath("p3:rotation_degrees")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.0, -13.0706, -20.6571, -5.02922, -128.673 ]
}
tracks/6/type = "value"
tracks/6/path = NodePath("p4:position")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 8, 8 ), Vector2( 16, -28 ), Vector2( 23, -53 ), Vector2( 48, -13 ), Vector2( 186, 633 ) ]
}
tracks/7/type = "value"
tracks/7/path = NodePath("p4:rotation_degrees")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 1.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.0, 15.0, 30.0, 44.9999, 89.9999 ]
}

[node name="BrokenBrick" type="Node2D"]
script = ExtResource( 5 )

[node name="p1" type="Sprite" parent="."]
position = Vector2( -217, 628 )
rotation = -2.0944
texture = ExtResource( 3 )

[node name="p2" type="Sprite" parent="."]
position = Vector2( 245, 632 )
rotation = 1.8326
texture = ExtResource( 2 )

[node name="p3" type="Sprite" parent="."]
position = Vector2( -164, 632 )
rotation = -2.24577
texture = ExtResource( 4 )

[node name="p4" type="Sprite" parent="."]
position = Vector2( 186, 633 )
rotation = 1.57079
texture = ExtResource( 1 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/fall = SubResource( 1 )

[node name="Timer" type="Timer" parent="."]
wait_time = 1.5
one_shot = true
autostart = true

[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 6 )
volume_db = -10.0

[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
