-
Notifications
You must be signed in to change notification settings - Fork 0
/
player1.tscn
84 lines (72 loc) · 2.73 KB
/
player1.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
[gd_scene load_steps=18 format=2]
[ext_resource path="res://assets/player/medium_frame_1.png" type="Texture" id=1]
[ext_resource path="res://assets/player/small_frame_3.png" type="Texture" id=2]
[ext_resource path="res://assets/player/small_frame_2.png" type="Texture" id=3]
[ext_resource path="res://assets/player/small_frame_1.png" type="Texture" id=4]
[ext_resource path="res://assets/player/medium_frame_3.png" type="Texture" id=5]
[ext_resource path="res://assets/player/medium_frame_2.png" type="Texture" id=6]
[ext_resource path="res://assets/player/large_frame_2.png" type="Texture" id=7]
[ext_resource path="res://assets/player/large_frame_1.png" type="Texture" id=8]
[ext_resource path="res://player1.gd" type="Script" id=9]
[ext_resource path="res://assets/player/large_frame_3.png" type="Texture" id=10]
[ext_resource path="res://Camera2D.gd" type="Script" id=11]
[ext_resource path="res://assets/player/jump.wav" type="AudioStream" id=12]
[ext_resource path="res://CollisionShape2D.gd" type="Script" id=13]
[ext_resource path="res://Area2D.gd" type="Script" id=14]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 6 ), ExtResource( 5 ) ],
"loop": true,
"name": "medium",
"speed": 10.0
}, {
"frames": [ ExtResource( 4 ), ExtResource( 3 ), ExtResource( 2 ) ],
"loop": true,
"name": "small",
"speed": 10.0
}, {
"frames": [ ExtResource( 8 ), ExtResource( 7 ), ExtResource( 10 ) ],
"loop": true,
"name": "large",
"speed": 10.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 117.052
height = 149.904
[sub_resource type="CapsuleShape2D" id=3]
radius = 107.445
height = 180.99
[node name="player1" type="KinematicBody2D" groups=[
"Player",
]]
scale = Vector2( 0.3, 0.3 )
z_index = 1
script = ExtResource( 9 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "small"
frame = 2
playing = true
[node name="Camera2D" type="Camera2D" parent="."]
current = true
limit_left = 0
limit_right = 1000
limit_smoothed = true
drag_margin_v_enabled = true
drag_margin_bottom = 0.9
script = ExtResource( 11 )
[node name="JumpSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 12 )
[node name="Area2D" type="Area2D" parent="."]
script = ExtResource( 14 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( -28.4629, 1.6743 )
shape = SubResource( 2 )
script = ExtResource( 13 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -24.1097, 12.5572 )
shape = SubResource( 3 )
[node name="Timer" type="Timer" parent="."]
wait_time = 3.0
[connection signal="body_entered" from="Area2D" to="." method="_on_player_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]