[gd_scene load_steps=9 format=2]

[ext_resource path="res://scripts/actor.gd" type="Script" id=1]
[ext_resource path="res://sprites/actors/farmer.png" type="Texture" id=2]
[ext_resource path="res://sprites/icons.png" type="Texture" id=3]

[sub_resource type="Animation" id=1]
resource_name = "action_0"
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, 0.4, 0.5, 0.6 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 4, 5, 6, 7, 6, 5, 4 ]
}

[sub_resource type="Animation" id=2]
resource_name = "action_1"
length = 1.5
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, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 8, 9, 10, 11, 10, 11, 10, 11, 10, 11, 9, 8 ]
}

[sub_resource type="Animation" id=3]
resource_name = "idle"
length = 0.1
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 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ 0 ]
}

[sub_resource type="Animation" id=4]
resource_name = "speak"
length = 0.2
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 ),
"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.1 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [  ],
"method": "_play_sound"
} ]
}

[sub_resource type="CircleShape2D" id=5]
radius = 100.009

[node name="npc" type="YSort"]
script = ExtResource( 1 )

[node name="ico" type="Sprite" parent="."]
position = Vector2( 5.82706, -153.622 )
z_index = 10
texture = ExtResource( 3 )
hframes = 8

[node name="sprite" type="Sprite" parent="."]
position = Vector2( -1.40308, -3.43082 )
texture = ExtResource( 2 )
offset = Vector2( 5.1871, -57.1137 )
vframes = 4
hframes = 4

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
anims/action_0 = SubResource( 1 )
anims/action_1 = SubResource( 2 )
anims/idle = SubResource( 3 )
anims/speak = SubResource( 4 )

[node name="interract" type="Area2D" parent="."]
position = Vector2( -2.52269, -55.4992 )
monitoring = false

[node name="CollisionShape2D" type="CollisionShape2D" parent="interract"]
shape = SubResource( 5 )
