[gd_scene load_steps=6 format=2]

[ext_resource path="res://Objects/Pig.gd" type="Script" id=1]
[ext_resource path="res://Assets/Pig.png" type="Texture" id=2]

[sub_resource type="CapsuleShape2D" id=1]
radius = 6.0
height = 8.0

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

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

[node name="Pig" type="Area2D"]
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
SPEED = 129

[node name="Sprite" type="Sprite" parent="."]
position = Vector2( -0.132351, 0.0703354 )
texture = ExtResource( 2 )
offset = Vector2( 0, -4 )
hframes = 3
frame = 2

[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2( 0, 0.125 )
rotation = 1.5708
shape = SubResource( 1 )

[node name="Animation" type="AnimationPlayer" parent="."]
playback_speed = 0.65
anims/Idle = SubResource( 2 )
anims/Run = SubResource( 3 )
[connection signal="area_entered" from="." to="." method="_on_Pig_area_entered"]
