-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.tscn
41 lines (31 loc) · 1.32 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
[gd_scene load_steps=4 format=3 uid="uid://s4w082uvmo4r"]
[ext_resource type="Script" path="res://player.gd" id="1_ng71l"]
[ext_resource type="SpriteFrames" uid="uid://xt87j71j3332" path="res://PlayerBlueSkin.tres" id="2_y8ovj"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ld22l"]
size = Vector2(12, 17)
[node name="Player" type="CharacterBody2D"]
collision_layer = 2
script = ExtResource("1_ng71l")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("2_y8ovj")
animation = &"Idle"
flip_h = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 3.5)
shape = SubResource("RectangleShape2D_ld22l")
[node name="Camera2D" type="Camera2D" parent="."]
position_smoothing_enabled = true
[node name="LadderCheck" type="RayCast2D" parent="."]
position = Vector2(0, -3)
target_position = Vector2(0, 14)
hit_from_inside = true
collide_with_areas = true
collide_with_bodies = false
[node name="JumpBufferTimer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true
[node name="CoyoteJumpTimer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true
[connection signal="timeout" from="JumpBufferTimer" to="." method="_on_jump_buffer_timer_timeout"]
[connection signal="timeout" from="CoyoteJumpTimer" to="." method="_on_coyote_jump_timer_timeout"]