-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
213 lines (189 loc) · 5.78 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
[gd_scene load_steps=16 format=3 uid="uid://hyisjlhjpgme"]
[ext_resource type="Script" path="res://player.gd" id="1_tmsmg"]
[ext_resource type="Texture2D" uid="uid://bcpkypbsc4hr1" path="res://assets/Char.png" id="2_7kyg3"]
[ext_resource type="AudioStream" uid="uid://doqxlf4rq44hl" path="res://assets/ボヨン.mp3" id="3_4wnms"]
[ext_resource type="AudioStream" uid="uid://ckd6uhnngtljl" path="res://assets/小キック.mp3" id="3_w3vyi"]
[ext_resource type="AudioStream" uid="uid://ba46da3w0alkw" path="res://assets/ジャンプの着地.mp3" id="4_qda0y"]
[ext_resource type="Script" path="res://Shake.gd" id="6_kej5n"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_j6sf7"]
size = Vector2(12, 27)
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_tcgb0"]
emission_shape = 3
emission_box_extents = Vector3(8, 1, 1)
particle_flag_disable_z = true
direction = Vector3(0, -1, 0)
spread = 20.0
gravity = Vector3(0, 0, 0)
initial_velocity_min = 30.0
initial_velocity_max = 30.0
orbit_velocity_min = 0.0
orbit_velocity_max = 0.0
damping_min = 50.0
damping_max = 100.0
[sub_resource type="Animation" id="Animation_ghcqf"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Body/Sprite2D:frame")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_ymn1x"]
resource_name = "fall"
length = 0.4
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [6]
}
[sub_resource type="Animation" id="Animation_8vmlo"]
resource_name = "idle"
length = 0.6
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [0, 1]
}
[sub_resource type="Animation" id="Animation_a52of"]
resource_name = "jump"
length = 0.4
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [6]
}
[sub_resource type="Animation" id="Animation_8lfda"]
resource_name = "land"
length = 0.4
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.3),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.2, 0.8), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_p3ain"]
resource_name = "move"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Body/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [2, 3, 4, 5]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_hhtcq"]
_data = {
"RESET": SubResource("Animation_ghcqf"),
"fall": SubResource("Animation_ymn1x"),
"idle": SubResource("Animation_8vmlo"),
"jump": SubResource("Animation_a52of"),
"land": SubResource("Animation_8lfda"),
"move": SubResource("Animation_p3ain")
}
[node name="Player" type="CharacterBody2D"]
collision_layer = 2
script = ExtResource("1_tmsmg")
[node name="Body" type="Node2D" parent="."]
[node name="Sprite2D" type="Sprite2D" parent="Body"]
texture = ExtResource("2_7kyg3")
offset = Vector2(0, -16.025)
hframes = 7
[node name="Rect" type="ColorRect" parent="Body"]
visible = false
offset_left = -6.0
offset_top = -27.0
offset_right = 6.0
[node name="ColorRect2" type="ColorRect" parent="Body/Rect"]
layout_mode = 0
offset_left = 4.0
offset_top = 5.0
offset_right = 15.0
offset_bottom = 11.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -13.5)
shape = SubResource("RectangleShape2D_j6sf7")
disabled = true
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
position = Vector2(0, -21)
scale = Vector2(0.6, 0.6)
[node name="Jump" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_4wnms")
volume_db = -15.0
[node name="JumpLand" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_qda0y")
volume_db = -10.0
[node name="Hit" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_w3vyi")
volume_db = -5.0
[node name="Shake" type="Node" parent="."]
script = ExtResource("6_kej5n")
noise_shake_speed = 20.0
noise_shake_strength = 15.0
[node name="LandParticles" type="GPUParticles2D" parent="."]
modulate = Color(0.435294, 0.435294, 0.435294, 1)
emitting = false
amount = 6
process_material = SubResource("ParticleProcessMaterial_tcgb0")
lifetime = 0.5
one_shot = true
explosiveness = 1.0
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
libraries = {
"": SubResource("AnimationLibrary_hhtcq")
}
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]