[gd_scene load_steps=7 format=2]

[ext_resource path="res://sprites/harvesteater.png" type="Texture" id=1]
[ext_resource path="res://scripts/mob.gd" type="Script" id=2]

[sub_resource type="Animation" id=1]
resource_name = "appear"
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Sprite:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}

[sub_resource type="Animation" id=2]
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}

[sub_resource type="Animation" id=3]
length = 0.4
loop = true
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.1, 0.2, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 4, 5, 6 ]
}

[sub_resource type="CircleShape2D" id=4]
radius = 51.8435

[node name="mob" type="Node2D"]
script = ExtResource( 2 )

[node name="Sprite" type="Sprite" parent="."]
position = Vector2( -0.0775909, -0.447006 )
texture = ExtResource( 1 )
offset = Vector2( -0.452148, -31.6017 )
vframes = 4
hframes = 4

[node name="anim" type="AnimationPlayer" parent="."]
autoplay = "walk"
anims/appear = SubResource( 1 )
anims/die = SubResource( 2 )
anims/walk = SubResource( 3 )

[node name="interract" type="Area2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="interract"]
position = Vector2( -0.529739, -17.4811 )
shape = SubResource( 4 )

[node name="spawn_time" type="Timer" parent="."]
one_shot = true
