[gd_scene load_steps=14 format=3 uid="uid://yu50iyftoyaj"]

[ext_resource type="Script" path="res://riangle.gd" id="1_0404b"]
[ext_resource type="Texture2D" uid="uid://dm8o6cwq2jtaq" path="res://riangle.png" id="2_rgnr7"]
[ext_resource type="Script" path="res://Gun.gd" id="3_kffl0"]
[ext_resource type="PackedScene" uid="uid://c6ybtahxwpukd" path="res://bullet.tscn" id="4_tfncc"]

[sub_resource type="AtlasTexture" id="AtlasTexture_fb5mh"]
atlas = ExtResource("2_rgnr7")
region = Rect2(0, 0, 40, 40)

[sub_resource type="AtlasTexture" id="AtlasTexture_4gcy0"]
atlas = ExtResource("2_rgnr7")
region = Rect2(40, 0, 40, 40)

[sub_resource type="AtlasTexture" id="AtlasTexture_mhrqf"]
atlas = ExtResource("2_rgnr7")
region = Rect2(80, 0, 40, 40)

[sub_resource type="AtlasTexture" id="AtlasTexture_6cbkq"]
atlas = ExtResource("2_rgnr7")
region = Rect2(120, 0, 40, 40)

[sub_resource type="AtlasTexture" id="AtlasTexture_yud03"]
atlas = ExtResource("2_rgnr7")
region = Rect2(160, 0, 40, 40)

[sub_resource type="AtlasTexture" id="AtlasTexture_kn3w7"]
atlas = ExtResource("2_rgnr7")
region = Rect2(0, 40, 40, 40)

[sub_resource type="AtlasTexture" id="AtlasTexture_sn7s2"]
atlas = ExtResource("2_rgnr7")
region = Rect2(80, 40, 40, 40)

[sub_resource type="AtlasTexture" id="AtlasTexture_pssaw"]
atlas = ExtResource("2_rgnr7")
region = Rect2(40, 40, 40, 40)

[sub_resource type="SpriteFrames" id="SpriteFrames_p5dvv"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_fb5mh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4gcy0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_mhrqf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6cbkq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_yud03")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kn3w7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sn7s2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pssaw")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="Riangle" type="StaticBody2D" groups=["destructible", "enemy"]]
scale = Vector2(0.25, 0.25)
script = ExtResource("1_0404b")

[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(-21.5874, 1.58741)
rotation = 1.5708
scale = Vector2(5.50033, 5.50033)
sprite_frames = SubResource("SpriteFrames_p5dvv")
autoplay = "default"
frame = 6
frame_progress = 0.850246

[node name="Gun2" type="Marker2D" parent="."]
position = Vector2(-224, 284)
rotation = 2.0944
script = ExtResource("3_kffl0")
bullet = ExtResource("4_tfncc")

[node name="Gun3" type="Marker2D" parent="."]
position = Vector2(-224, -284)
rotation = 4.18879
script = ExtResource("3_kffl0")
bullet = ExtResource("4_tfncc")

[node name="Gun" type="Marker2D" parent="."]
position = Vector2(272, 0)
script = ExtResource("3_kffl0")
bullet = ExtResource("4_tfncc")

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

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2(-8, 0)
polygon = PackedVector2Array(-80, -104, 100, 0, -80, 104)

[connection signal="timeout" from="Timer" to="." method="destroy"]
[connection signal="timeout" from="Timer" to="Gun2" method="shoot"]
[connection signal="timeout" from="Timer" to="Gun3" method="shoot"]
[connection signal="timeout" from="Timer" to="Gun" method="shoot"]
