[gd_scene load_steps=10 format=2]

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

[sub_resource type="Animation" id=1]
resource_name = "action_1"
length = 1.6
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, 1.2, 1.3 ),
"transitions": PoolRealArray( 1, 1, 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, 10, 11, 9, 8 ]
}

[sub_resource type="Animation" id=2]
length = 0.35
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, 0.25, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 12, 13, 14, 15 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("sprite/club:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.05, 0.25, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ Vector2( -44, -32 ), Vector2( -60, -116 ), Vector2( 56, -88 ), Vector2( 72, -48 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("sprite/club:rotation_degrees")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.05, 0.25, 0.3 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 1,
"values": [ 16.5757, -153.912, -41.9839, -1.20698 ]
}

[sub_resource type="Animation" id=3]
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 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("sprite/club:position")
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": 0,
"values": [ Vector2( -44, -32 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("sprite/club:rotation_degrees")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ 6.11903 ]
}

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

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

[node name="ogre" type="Node2D"]
script = ExtResource( 3 )
id = 6

[node name="ico" type="Sprite" parent="."]
position = Vector2( 0, -184 )
z_index = 10
texture = ExtResource( 4 )
hframes = 8
frame = 1
__meta__ = {
"_editor_description_": ""
}

[node name="sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
offset = Vector2( -4, -72 )
vframes = 4
hframes = 4

[node name="club" type="Sprite" parent="sprite"]
position = Vector2( -44, -32 )
rotation = 0.106797
texture = ExtResource( 1 )
offset = Vector2( 53.6779, 2.17716 )

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

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

[node name="CollisionShape2D" type="CollisionShape2D" parent="interract"]
position = Vector2( 0, -64 )
shape = SubResource( 5 )
