2021-04-03 23:51:22 +02:00
|
|
|
[gd_scene load_steps=28 format=2]
|
2021-04-03 23:27:13 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://assets/Player/Player.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://script/player/Player.gd" type="Script" id=2]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
|
|
radius = 4.32415
|
|
|
|
height = 8.80055
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=8]
|
|
|
|
resource_name = "Idle_Left"
|
|
|
|
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": [ 12 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
|
|
resource_name = "Idle_Right"
|
|
|
|
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 = "Idle_Up"
|
|
|
|
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": [ 6 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=9]
|
|
|
|
resource_name = "Idle_down"
|
|
|
|
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": [ 18 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=4]
|
|
|
|
resource_name = "Walk_Down"
|
|
|
|
length = 0.6
|
|
|
|
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, 0.4, 0.5 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ 19, 20, 21, 22, 23, 18 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=5]
|
|
|
|
resource_name = "Walk_Left"
|
|
|
|
length = 0.6
|
|
|
|
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, 0.4, 0.5 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ 13, 14, 15, 16, 17, 12 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=6]
|
|
|
|
resource_name = "Walk_Right"
|
|
|
|
length = 0.6
|
|
|
|
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, 0.4, 0.5 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ 1, 2, 3, 4, 5, 0 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id=7]
|
|
|
|
resource_name = "Walk_Up"
|
|
|
|
length = 0.6
|
|
|
|
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, 0.4, 0.5 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ 7, 8, 9, 10, 11, 6 ]
|
|
|
|
}
|
|
|
|
|
2021-04-03 23:51:22 +02:00
|
|
|
[sub_resource type="AnimationNodeAnimation" id=10]
|
|
|
|
animation = "Idle_down"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=11]
|
|
|
|
animation = "Idle_Right"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=12]
|
|
|
|
animation = "Idle_Up"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=13]
|
|
|
|
animation = "Idle_Left"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id=14]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace2D" id=15]
|
|
|
|
blend_point_0/node = SubResource( 10 )
|
|
|
|
blend_point_0/pos = Vector2( 0, 1.1 )
|
|
|
|
blend_point_1/node = SubResource( 11 )
|
|
|
|
blend_point_1/pos = Vector2( 1, 0 )
|
|
|
|
blend_point_2/node = SubResource( 12 )
|
|
|
|
blend_point_2/pos = Vector2( 0, -1.1 )
|
|
|
|
blend_point_3/node = SubResource( 13 )
|
|
|
|
blend_point_3/pos = Vector2( -1, 0 )
|
|
|
|
blend_point_4/node = SubResource( 14 )
|
|
|
|
blend_point_4/pos = Vector2( 0, -1.1 )
|
|
|
|
min_space = Vector2( -1, -1.1 )
|
|
|
|
max_space = Vector2( 1, 1.1 )
|
|
|
|
blend_mode = 1
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=19]
|
|
|
|
animation = "Walk_Down"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=20]
|
|
|
|
animation = "Walk_Right"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=21]
|
|
|
|
animation = "Walk_Up"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=22]
|
|
|
|
animation = "Walk_Left"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace2D" id=23]
|
|
|
|
blend_point_0/node = SubResource( 19 )
|
|
|
|
blend_point_0/pos = Vector2( 0, 1.1 )
|
|
|
|
blend_point_1/node = SubResource( 20 )
|
|
|
|
blend_point_1/pos = Vector2( 1, 0 )
|
|
|
|
blend_point_2/node = SubResource( 21 )
|
|
|
|
blend_point_2/pos = Vector2( 0, -1.1 )
|
|
|
|
blend_point_3/node = SubResource( 22 )
|
|
|
|
blend_point_3/pos = Vector2( -1, 0 )
|
|
|
|
min_space = Vector2( -1, -1.1 )
|
|
|
|
max_space = Vector2( 1, 1.1 )
|
|
|
|
blend_mode = 1
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=24]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=25]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id=16]
|
|
|
|
states/Idle/node = SubResource( 15 )
|
|
|
|
states/Idle/position = Vector2( 629, 126 )
|
|
|
|
states/Walk/node = SubResource( 23 )
|
|
|
|
states/Walk/position = Vector2( 807, 126 )
|
|
|
|
transitions = [ "Idle", "Walk", SubResource( 24 ), "Walk", "Idle", SubResource( 25 ) ]
|
|
|
|
start_node = "Idle"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachinePlayback" id=17]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachinePlayback" id=18]
|
|
|
|
|
2021-04-03 23:27:13 +02:00
|
|
|
[node name="Player" type="KinematicBody2D"]
|
|
|
|
z_index = 1
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
|
|
position = Vector2( 0, -8.04334 )
|
|
|
|
texture = ExtResource( 1 )
|
|
|
|
hframes = 60
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
position = Vector2( -1.41422, 0.440334 )
|
|
|
|
rotation = -1.5708
|
|
|
|
shape = SubResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
anims/Idle_Left = SubResource( 8 )
|
|
|
|
anims/Idle_Right = SubResource( 2 )
|
|
|
|
anims/Idle_Up = SubResource( 3 )
|
|
|
|
anims/Idle_down = SubResource( 9 )
|
|
|
|
anims/Walk_Down = SubResource( 4 )
|
|
|
|
anims/Walk_Left = SubResource( 5 )
|
|
|
|
anims/Walk_Right = SubResource( 6 )
|
|
|
|
anims/Walk_Up = SubResource( 7 )
|
2021-04-03 23:51:22 +02:00
|
|
|
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
|
|
tree_root = SubResource( 16 )
|
|
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
|
|
active = true
|
|
|
|
parameters/playback = SubResource( 17 )
|
|
|
|
parameters/Idle/blend_position = Vector2( 0, 0 )
|
|
|
|
parameters/Idle/4/playback = SubResource( 18 )
|
|
|
|
parameters/Walk/blend_position = Vector2( 0, 0 )
|