-
Notifications
You must be signed in to change notification settings - Fork 1
/
Player.tscn
37 lines (31 loc) · 1.22 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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://moonshot-assets/art/sheep/sheep4.png" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=2]
[ext_resource path="res://moonshot-assets/art/sheep/sheep3.png" type="Texture" id=3]
[ext_resource path="res://moonshot-assets/art/sheep/sheep1.png" type="Texture" id=4]
[ext_resource path="res://moonshot-assets/art/sheep/sheep2.png" type="Texture" id=5]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 4 ), ExtResource( 5 ), ExtResource( 3 ), ExtResource( 1 ) ],
"loop": true,
"name": "walk",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 28.8396
height = 0.0
[node name="Player" type="Area2D"]
position = Vector2( 151.635, 117.624 )
scale = Vector2( 0.5, 0.5 )
script = ExtResource( 2 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "walk"
frame = 3
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[connection signal="body_entered" from="." to="." method="_on_Player_body_enteredMoonLanding"]
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]