-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
72 lines (61 loc) · 1.82 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
[gd_scene load_steps=10 format=3 uid="uid://b32bqgjmfmd0h"]
[ext_resource type="Script" path="res://player.gd" id="1_sndap"]
[ext_resource type="Texture2D" uid="uid://cys57js4ku8k0" path="res://player.png" id="2_neqnv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_rg30o"]
atlas = ExtResource("2_neqnv")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_lnkd4"]
atlas = ExtResource("2_neqnv")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_3ua4n"]
atlas = ExtResource("2_neqnv")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_kpqce"]
atlas = ExtResource("2_neqnv")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_j6gug"]
atlas = ExtResource("2_neqnv")
region = Rect2(64, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_6ur5u"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_rg30o")
}],
"loop": true,
"name": &"jump",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_lnkd4")
}],
"loop": true,
"name": &"stand",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3ua4n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kpqce")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j6gug")
}],
"loop": true,
"name": &"walk",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r55uh"]
size = Vector2(16, 16)
[node name="Player" type="CharacterBody2D"]
scale = Vector2(5, 5)
script = ExtResource("1_sndap")
[node name="Sprite" type="AnimatedSprite2D" parent="."]
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_6ur5u")
animation = &"walk"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_r55uh")