-
Notifications
You must be signed in to change notification settings - Fork 1
/
Player.tscn
108 lines (95 loc) · 3.38 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
[gd_scene load_steps=20 format=2]
[ext_resource path="res://assets/walkingsprites/right side idle.png" type="Texture" id=1]
[ext_resource path="res://assets/walkingsprites/front idle.png" type="Texture" id=2]
[ext_resource path="res://assets/walkingsprites/front left leg ahead.png" type="Texture" id=3]
[ext_resource path="res://assets/walkingsprites/front right leg ahead.png" type="Texture" id=4]
[ext_resource path="res://assets/walkingsprites/back idle.png" type="Texture" id=5]
[ext_resource path="res://assets/walkingsprites/right side left leg ahead.png" type="Texture" id=6]
[ext_resource path="res://assets/walkingsprites/back right leg ahead.png" type="Texture" id=7]
[ext_resource path="res://assets/walkingsprites/left side left leg ahead.png" type="Texture" id=8]
[ext_resource path="res://assets/walkingsprites/left side right leg ahead.png" type="Texture" id=9]
[ext_resource path="res://assets/walkingsprites/right side right leg ahead.png" type="Texture" id=10]
[ext_resource path="res://assets/walkingsprites/back left leg ahead.png" type="Texture" id=11]
[ext_resource path="res://assets/walkingsprites/left side idle.png" type="Texture" id=12]
[ext_resource path="res://Player/Player.gd" type="Script" id=13]
[ext_resource path="res://Interact.tscn" type="PackedScene" id=14]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 12 ) ],
"loop": false,
"name": "IdleLeft",
"speed": 0.0
}, {
"frames": [ ExtResource( 12 ), ExtResource( 8 ), ExtResource( 9 ) ],
"loop": true,
"name": "WalkLeft",
"speed": 8.0
}, {
"frames": [ ExtResource( 2 ) ],
"loop": false,
"name": "IdleFront",
"speed": 0.0
}, {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ],
"loop": true,
"name": "WalkFront",
"speed": 8.0
}, {
"frames": [ ExtResource( 1 ), ExtResource( 6 ), ExtResource( 10 ) ],
"loop": true,
"name": "WalkRight",
"speed": 8.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 11 ), ExtResource( 7 ) ],
"loop": true,
"name": "WalkBack",
"speed": 8.0
}, {
"frames": [ ExtResource( 1 ) ],
"loop": false,
"name": "IdleRight",
"speed": 0.0
}, {
"frames": [ ExtResource( 5 ) ],
"loop": false,
"name": "IdleBack",
"speed": 0.0
} ]
[sub_resource type="CircleShape2D" id=2]
radius = 7.1791
[sub_resource type="DynamicFontData" id=3]
font_path = "res://terminal-grotesque.grotesque-regular.ttf"
[sub_resource type="DynamicFont" id=4]
font_data = SubResource( 3 )
[sub_resource type="CircleShape2D" id=5]
[node name="Player" type="KinematicBody2D"]
position = Vector2( 173.354, 98.6465 )
script = ExtResource( 13 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( -1.65332, -0.353546 )
frames = SubResource( 1 )
animation = "IdleFront"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -3.95833, 15.6552 )
rotation = 1.5708
shape = SubResource( 2 )
[node name="Interact" parent="." instance=ExtResource( 14 )]
position = Vector2( -3.86826, 15.5648 )
[node name="Label" type="Label" parent="Interact"]
visible = false
margin_left = -51.6396
margin_top = -55.8699
margin_right = 65.3604
margin_bottom = -41.8699
custom_fonts/font = SubResource( 4 )
text = "Press E to Interact"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( -3.73085, 15.5883 )
shape = SubResource( 5 )