234 lines
6.1 KiB
Plaintext
234 lines
6.1 KiB
Plaintext
[gd_scene load_steps=26 format=2]
|
|
|
|
[ext_resource path="res://Assets/spriteset test.png" type="Texture" id=1]
|
|
[ext_resource path="res://Scripts/Player.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 15.5015, 46.849 )
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
resource_name = "IdleDown"
|
|
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": [ 7 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=3]
|
|
resource_name = "IdleLeft"
|
|
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": [ 14 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=4]
|
|
resource_name = "IdleRight"
|
|
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=5]
|
|
resource_name = "IdleTop"
|
|
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": [ 21 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=6]
|
|
length = 0.7
|
|
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, 0.6 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 8, 9, 10, 11, 12, 13, 7 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=7]
|
|
length = 0.7
|
|
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, 0.6 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 15, 16, 17, 18, 19, 20, 14 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=8]
|
|
length = 0.7
|
|
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, 0.6 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 1, 2, 3, 4, 5, 6, 0 ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=9]
|
|
length = 0.7
|
|
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, 0.6 ),
|
|
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ 22, 23, 24, 25, 26, 27, 21 ]
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=10]
|
|
animation = "IdleLeft"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=11]
|
|
animation = "IdleDown"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=12]
|
|
animation = "IdleRight"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=13]
|
|
animation = "IdleTop"
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace2D" id=14]
|
|
blend_point_0/node = SubResource( 10 )
|
|
blend_point_0/pos = Vector2( -1.1, 0 )
|
|
blend_point_1/node = SubResource( 11 )
|
|
blend_point_1/pos = Vector2( 0, 1.1 )
|
|
blend_point_2/node = SubResource( 12 )
|
|
blend_point_2/pos = Vector2( 1, 0 )
|
|
blend_point_3/node = SubResource( 13 )
|
|
blend_point_3/pos = Vector2( 0, -1 )
|
|
min_space = Vector2( -1.1, -1 )
|
|
max_space = Vector2( 1, 1.1 )
|
|
blend_mode = 1
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=15]
|
|
animation = "RunLeft"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=16]
|
|
animation = "RunDown"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=17]
|
|
animation = "RunRight"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=18]
|
|
animation = "RunUp"
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace2D" id=19]
|
|
blend_point_0/node = SubResource( 15 )
|
|
blend_point_0/pos = Vector2( -1.1, 0 )
|
|
blend_point_1/node = SubResource( 16 )
|
|
blend_point_1/pos = Vector2( 0, 1.1 )
|
|
blend_point_2/node = SubResource( 17 )
|
|
blend_point_2/pos = Vector2( 1, 0 )
|
|
blend_point_3/node = SubResource( 18 )
|
|
blend_point_3/pos = Vector2( 0, -1 )
|
|
min_space = Vector2( -1.1, -1 )
|
|
max_space = Vector2( 1, 1.1 )
|
|
blend_mode = 1
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=20]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=21]
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id=22]
|
|
states/Idle/node = SubResource( 14 )
|
|
states/Idle/position = Vector2( 408, 64 )
|
|
states/Run/node = SubResource( 19 )
|
|
states/Run/position = Vector2( 632, 64 )
|
|
transitions = [ "Idle", "Run", SubResource( 20 ), "Run", "Idle", SubResource( 21 ) ]
|
|
start_node = "Idle"
|
|
|
|
[sub_resource type="AnimationNodeStateMachinePlayback" id=23]
|
|
|
|
[node name="KinematicBody2D" type="KinematicBody2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 1 )
|
|
hframes = 28
|
|
frame = 14
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0.263519, 0.0374289 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
anims/IdleDown = SubResource( 2 )
|
|
anims/IdleLeft = SubResource( 3 )
|
|
anims/IdleRight = SubResource( 4 )
|
|
anims/IdleTop = SubResource( 5 )
|
|
anims/RunDown = SubResource( 6 )
|
|
anims/RunLeft = SubResource( 7 )
|
|
anims/RunRight = SubResource( 8 )
|
|
anims/RunUp = SubResource( 9 )
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
tree_root = SubResource( 22 )
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
active = true
|
|
parameters/playback = SubResource( 23 )
|
|
parameters/Idle/blend_position = Vector2( -1.1, 0.0314158 )
|
|
parameters/Run/blend_position = Vector2( -0.0925897, 0.517895 )
|