/
Player.tscn
52 lines (43 loc) · 1.57 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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Resources/Player/2 WALK_003.png" type="Texture" id=1]
[ext_resource path="res://Player.gd" type="Script" id=2]
[ext_resource path="res://Resources/Player/2 WALK_004.png" type="Texture" id=3]
[ext_resource path="res://Resources/Player/2 WALK_002.png" type="Texture" id=4]
[ext_resource path="res://Resources/Player/2 WALK_001.png" type="Texture" id=5]
[ext_resource path="res://Resources/Player/2 WALK_000.png" type="Texture" id=6]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 6 ), ExtResource( 5 ), ExtResource( 4 ), ExtResource( 1 ), ExtResource( 3 ) ],
"loop": true,
"name": "walk",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 23.052
height = 34.2114
[sub_resource type="CapsuleShape2D" id=3]
radius = 54.6981
height = 105.906
[node name="Player" type="KinematicBody2D"]
position = Vector2( 20.9361, -6.68174 )
scale = Vector2( 0.5, 0.5 )
collision_mask = 6
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 322.276, 192.652 )
scale = Vector2( 0.5, 0.5 )
frames = SubResource( 1 )
animation = "walk"
frame = 4
[node name="WalkCollision" type="CollisionShape2D" parent="."]
light_mask = 4
position = Vector2( 296.919, 268.863 )
rotation = 1.5708
shape = SubResource( 2 )
[node name="HealthCollision" type="CollisionShape2D" parent="."]
light_mask = 2
position = Vector2( 290.175, 103.491 )
shape = SubResource( 3 )
[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 292.546, 195.03 )
current = true