forked from Miziziziz/SmallPlatformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.tscn
121 lines (105 loc) · 2.93 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[gd_scene load_steps=9 format=3 uid="uid://c6wvy0iyoktaf"]
[ext_resource type="Script" path="res://Player.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://dvbpo58fwgffb" path="res://character.png" id="2"]
[sub_resource type="CapsuleShape2D" id="5"]
radius = 7.0
height = 14.0
[sub_resource type="Animation" id="2"]
resource_name = "idle"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.4),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [1, 2]
}
[sub_resource type="Animation" id="3"]
resource_name = "jump"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [8]
}
[sub_resource type="Animation" id="4"]
resource_name = "walk"
length = 0.8
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [8, 9, 10, 11, 12, 13, 14, 15]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dt0ju"]
_data = {
"idle": SubResource("2"),
"jump": SubResource("3"),
"walk": SubResource("4")
}
[sub_resource type="ParticleProcessMaterial" id="6"]
emission_shape = 1
emission_sphere_radius = 2.1
gravity = Vector3(0, 98, 0)
color = Color(1, 0, 0, 1)
[node name="Player" type="CharacterBody2D"]
script = ExtResource("1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("5")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -1.23112)
texture = ExtResource("2")
hframes = 8
vframes = 2
frame = 11
region_rect = Rect2(0, 0, 32, 32)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
libraries = {
"": SubResource("AnimationLibrary_dt0ju")
}
[node name="Camera2D" type="Camera2D" parent="."]
current = true
zoom = Vector2(1.5, 1.5)
drag_top_margin = 0.5
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="RestartMessage" type="Label" parent="CanvasLayer"]
visible = false
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -84.5
offset_top = -75.1807
offset_right = 84.5
offset_bottom = -61.1807
text = "You died press R to restart"
[node name="Panel" type="Panel" parent="CanvasLayer/RestartMessage"]
show_behind_parent = true
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
[node name="Blood" type="GPUParticles2D" parent="."]
emitting = false
amount = 64
lifetime = 0.5
preprocess = 0.1
process_material = SubResource("6")