[gd_scene load_steps=5 format=2]

[ext_resource path="res://sprites/objects/gun/turret.png" type="Texture" id=1]
[ext_resource path="res://objects/objects/gun/Turret.gd" type="Script" id=2]

[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 5, 3 )

[node name="Turret" type="AnimatedSprite"]
position = Vector2( 0, -8 )
frames = SubResource( 1 )
script = ExtResource( 2 )

[node name="FireLeft" type="Position2D" parent="."]
position = Vector2( -7, -6 )

[node name="StaticBody2D" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2( 0, 7 )
shape = SubResource( 2 )

[node name="FireTimer" type="Timer" parent="."]
wait_time = 0.1
autostart = true
[connection signal="timeout" from="FireTimer" to="." method="_on_FireTimer_timeout"]
