-
Notifications
You must be signed in to change notification settings - Fork 1
/
Player.tscn
44 lines (37 loc) · 1.14 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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://GDNLib.tres" type="GDNativeLibrary" id=1]
[ext_resource path="res://art/playerGrey_up2.png" type="Texture" id=2]
[ext_resource path="res://art/playerGrey_up1.png" type="Texture" id=3]
[ext_resource path="res://art/playerGrey_walk2.png" type="Texture" id=4]
[ext_resource path="res://art/playerGrey_walk1.png" type="Texture" id=5]
[sub_resource type="NativeScript" id=1]
resource_name = "Player"
class_name = "Player"
library = ExtResource( 1 )
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 2 ) ],
"loop": true,
"name": "right",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 4 ) ],
"loop": true,
"name": "up",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=3]
radius = 27.0
height = 13.0
[node name="Player" type="Area2D"]
script = SubResource( 1 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 0.5, 0.5 )
frames = SubResource( 2 )
animation = "right"
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 3 )