-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.tscn
90 lines (79 loc) · 2.45 KB
/
player.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[gd_scene load_steps=11 format=3 uid="uid://1ru86tiurtxq"]
[ext_resource type="Script" path="res://player.gd" id="1_r64pk"]
[ext_resource type="Texture2D" path="res://art/player-run1.excalidraw.svg" id="1_sakkq"]
[ext_resource type="Texture2D" path="res://art/player-run2.excalidraw.svg" id="2_ylqup"]
[ext_resource type="Texture2D" path="res://art/player-run3.excalidraw.svg" id="3_o8gf2"]
[ext_resource type="Texture2D" path="res://art/player-run4.svg" id="4_5u4x6"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_cvjo8"]
radius = 157.0
height = 774.0
[sub_resource type="SpriteFrames" id="SpriteFrames_c8tj6"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_sakkq")
}, {
"duration": 1.0,
"texture": ExtResource("2_ylqup")
}, {
"duration": 1.0,
"texture": ExtResource("3_o8gf2")
}, {
"duration": 1.0,
"texture": ExtResource("4_5u4x6")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="Animation" id="Animation_7o85h"]
resource_name = "Idle"
length = 0.4
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("AnimatedSprite2D:animation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"update": 1,
"values": []
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AnimatedSprite2D:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3]
}
[sub_resource type="Animation" id="Animation_c56hj"]
resource_name = "new_animation"
[sub_resource type="AnimationLibrary" id="AnimationLibrary_20xsn"]
_data = {
"Idle": SubResource("Animation_7o85h"),
"new_animation": SubResource("Animation_c56hj")
}
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1_r64pk")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-3, -382)
shape = SubResource("CapsuleShape2D_cvjo8")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(8, -365)
sprite_frames = SubResource("SpriteFrames_c8tj6")
frame_progress = 0.848855
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2(-2, -380)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_20xsn")
}
autoplay = "new_animation"