forked from TTalvenH/Myyra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.tscn
61 lines (50 loc) · 1.59 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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Sprites/myrä_falling.png" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=2]
[ext_resource path="res://Sprites/myrä_standing.png" type="Texture" id=3]
[ext_resource path="res://Sprites/myrä_hanging.png" type="Texture" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 11.5, 14 )
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 1 ) ],
"loop": true,
"name": "Falling",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "Hanging",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ), null ],
"loop": true,
"name": "Standing",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 12, 14.5 )
[node name="Player" type="KinematicBody2D"]
position = Vector2( 357, 215 )
collision_layer = 3
collision_mask = 3
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -14, 15.5 )
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( -14, 16 )
scale = Vector2( 1.5, 1.5 )
frames = SubResource( 2 )
animation = "Standing"
[node name="AudioStreamPlayer" type="AudioStreamPlayer2D" parent="."]
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( -14, 15.5 )
shape = SubResource( 3 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]