forked from annas2727/Mental-Maze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
102 lines (88 loc) · 2.61 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
[gd_scene load_steps=13 format=3 uid="uid://byka7bkmtud12"]
[ext_resource type="Script" path="res://player.gd" id="1_n0yeq"]
[ext_resource type="Texture2D" uid="uid://n8ohc7onas8v" path="res://Character.png" id="2_c3qmv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_wn7rk"]
atlas = ExtResource("2_c3qmv")
region = Rect2(2, 36, 16, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_dy8vt"]
atlas = ExtResource("2_c3qmv")
region = Rect2(34, 36, 16, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_cjiu1"]
atlas = ExtResource("2_c3qmv")
region = Rect2(1, 54, 16, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_7inig"]
atlas = ExtResource("2_c3qmv")
region = Rect2(33, 54, 16, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_mhsis"]
atlas = ExtResource("2_c3qmv")
region = Rect2(2, 18, 16, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_kvsem"]
atlas = ExtResource("2_c3qmv")
region = Rect2(34, 18, 16, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_bqxl4"]
atlas = ExtResource("2_c3qmv")
region = Rect2(1, 0, 16, 18)
[sub_resource type="AtlasTexture" id="AtlasTexture_5h77f"]
atlas = ExtResource("2_c3qmv")
region = Rect2(33, 0, 16, 18)
[sub_resource type="SpriteFrames" id="SpriteFrames_alulf"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_wn7rk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dy8vt")
}],
"loop": true,
"name": &"walk_down",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_cjiu1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7inig")
}],
"loop": true,
"name": &"walk_left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_mhsis")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kvsem")
}],
"loop": true,
"name": &"walk_right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_bqxl4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5h77f")
}],
"loop": true,
"name": &"walk_up",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gs5fv"]
size = Vector2(19, 25)
[node name="Player" type="CharacterBody2D" groups=["player"]]
position = Vector2(0, 5)
collision_layer = 7
script = ExtResource("1_n0yeq")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(-1.43051e-06, 0)
scale = Vector2(1.912, 1.7)
sprite_frames = SubResource("SpriteFrames_alulf")
animation = &"walk_up"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0.5, 0.5)
shape = SubResource("RectangleShape2D_gs5fv")