[gd_scene load_steps=6 format=2]

[ext_resource path="res://Scenes/Player/PlayerBullet.gd" type="Script" id=1]
[ext_resource path="res://Assets/Player/PlayerBullet.png" type="Texture" id=2]
[ext_resource path="res://Scenes/Objects/Proyectile.tscn" type="PackedScene" id=3]

[sub_resource type="Animation" id=1]
resource_name = "Fire"
length = 0.1
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.05 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ 0, 1 ]
}
tracks/1/type = "method"
tracks/1/path = NodePath(".")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.05 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ true ],
"method": "set_process"
} ]
}

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

[node name="PlayerBullet" instance=ExtResource( 3 )]
script = ExtResource( 1 )

[node name="Sprite" parent="." index="0"]
texture = ExtResource( 2 )
hframes = 2
frame = 1

[node name="AnimationPlayer" parent="." index="2"]
autoplay = "Fire"
anims/Fire = SubResource( 1 )

[node name="Hitbox" parent="." index="3"]
collision_mask = 10

[node name="Collider" parent="Hitbox" index="0"]
shape = SubResource( 2 )

[editable path="Hitbox"]
